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

Coverity analysis defect 119556: Untrusted loop bound

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Security 2021-05-17, Security 2021-05-31

    Description

      Untrusted loop bound

      An attacker could control the number of times the loop iterates. An unscrutinized value from an untrusted source used as a loop bound
      /src/mongo/db/mongod_main.cpp:892: TAINTED_SCALAR 119556 Calling function "operator >>" taints argument "pid".
      /src/mongo/db/mongod_main.cpp:893: TAINTED_SCALAR 119556 Checking lower bounds of signed scalar "pid" by taking the true branch of "pid > 9999".

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: