Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32941

applyOps command inserts documents without ever calling fixDocumentForInsert()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Replication
    • Labels:
    • Operating System:
      ALL
    • Linked BF Score:
      15

      Description

      The applyOperation_inlock() function calls Collection::insertDocuments() directly. Since the "applyOps" command doesn't call the fixDocumentForInsert() function on its operations of type op='i' as part of its validation, this means (among other things) it is possible to insert documents with $-prefixed fields names, exceed the maximum depth for user storage, or use bad BSON types for the "_id" field.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-repl Backlog - Replication Team
              Reporter:
              max.hirschhorn Max Hirschhorn
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated: