ExportXMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 3.1.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Atlas Stream Processing Engine
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      related to https://jira.mongodb.org/browse/HELP-98973

       

      https://github.com/mongodb/mongo-kafka/blob/f0577a39cd2ee62cbe9f8a92a9c4ee3acce225cf/src/main/java/com/mongodb/kafka/connect/source/MongoCopyDataManager.java#L76

       

      This template allows users to supply a collection name with a `'` character which terminates the string. After the `'` character, users are able to inject arbitrary code which can overwrite/modify/falsify the input changestream documents.

       

      Instead of using string interpolation here, we should use a BSON builder to build up the BSON document to avoid this bug

            Assignee:
            Andrew Chen
            Reporter:
            Andrew Chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: