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

mongos does not validate port and accepts values outside of valid range

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin, Usability
    • Labels:
    • Operating System:
      ALL

      Description

      mongos does not validate port and accepts values outside of valid range.

      This was found when I added port validation to MMS (there are users running with values outside the normal range in production).

      I started mongos using:

      • mongos --port 87161 --configdb localhost:27022

      mongos> db.mongos.find().pretty();
      {
      	"_id" : "my.local:27017",
      	"mongoVersion" : "2.4.4",
      	"ping" : ISODate("2013-07-02T19:10:40.901Z"),
      	"up" : 256,
      	"waiting" : true
      }
      {
      	"_id" : "my.local:27030",
      	"mongoVersion" : "2.4.4",
      	"ping" : ISODate("2013-07-02T19:10:40.445Z"),
      	"up" : 252,
      	"waiting" : true
      }
      {
      	"_id" : "my.local:87161",
      	"mongoVersion" : "2.4.4",
      	"ping" : ISODate("2013-07-02T19:10:41.305Z"),
      	"up" : 184,
      	"waiting" : true
      }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: