Possible to create user with invalid role.

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.3.2
    • Component/s: Security
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      db.addUser({user:'admin', pwd:'password', roles:['nonsenseRole']})
      

      succeeds and inserts the document into system.users. Authenticating with that user will also succeed, though no privileges will be granted (in the logs there's a message "Privilege acquisition failed for admin@admin in database admin: No such role, nonsenseRole, in database admin (BadValue)")

              Assignee:
              Spencer Brody (Inactive)
              Reporter:
              Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: