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

Possible to create user with invalid role.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.3.2
    • Security
    • None
    • ALL

    Description

      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)")

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: