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

fassert due to missing privilege checks for currentOpCtx command

    • ALL

      #0  0x00007ffff7bcc20b in raise (sig=5) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
      #1  0x000000000187c920 in mongo::mongo_breakpoint () at src/mongo/util/debug_util.cpp:58
      #2  0x00000000018734be in mongo::breakpoint () at src/mongo/util/debug_util.h:73
      #3  0x000000000187242f in mongo::fassertFailed (msgid=16940) at src/mongo/util/assert_util.cpp:153
      #4  0x000000000125e3d8 in mongo::Command::addRequiredPrivileges (this=0x26dfea0 <mongo::(anonymous namespace)::currentOpContexts>, dbname=..., cmdObj=..., out=0x7ffff7fcc760) at src/mongo/db/commands.h:205
      #5  0x0000000001265d7b in mongo::Command::checkAuthForCommand (this=0x26dfea0 <mongo::(anonymous namespace)::currentOpContexts>, client=0x2f915d0, dbname=..., cmdObj=...) at src/mongo/db/commands.cpp:255
      #6  0x000000000126604a in mongo::_checkAuthorizationImpl (c=0x26dfea0 <mongo::(anonymous namespace)::currentOpContexts>, client=0x2f915d0, dbname=..., cmdObj=..., fromRepl=false) at src/mongo/db/commands.cpp:281
      #7  0x0000000001266427 in mongo::Command::_checkAuthorization (c=0x26dfea0 <mongo::(anonymous namespace)::currentOpContexts>, client=0x2f915d0, dbname=..., cmdObj=..., fromRepl=false) at src/mongo/db/commands.cpp:309
      #8  0x00000000012f83b0 in mongo::Command::execCommand (txn=0x3789cc0, c=0x26dfea0 <mongo::(anonymous namespace)::currentOpContexts>, queryOptions=0, cmdns=0x3696414 "test.$cmd", cmdObj=..., result=..., fromRepl=false)
          at src/mongo/db/dbcommands.cpp:1295
      #9  0x00000000012f93f3 in mongo::_runCommands (txn=0x3789cc0, ns=0x3696414 "test.$cmd", _cmdobj=..., b=..., anObjBuilder=..., fromRepl=false, queryOptions=0) at src/mongo/db/dbcommands.cpp:1448
      #10 0x00000000015115f6 in mongo::runCommands (txn=0x3789cc0, ns=0x3696414 "test.$cmd", jsobj=..., curop=..., b=..., anObjBuilder=..., fromRepl=false, queryOptions=0) at src/mongo/db/query/new_find.cpp:125
      #11 0x0000000001512fb3 in mongo::newRunQuery (txn=0x3789cc0, m=..., q=..., curop=..., result=..., fromDBDirectClient=false) at src/mongo/db/query/new_find.cpp:529
      #12 0x00000000013ff8f1 in mongo::receivedQuery (txn=0x3789cc0, c=..., dbresponse=..., m=..., fromDBDirectClient=false) at src/mongo/db/instance.cpp:272
      #13 0x0000000001400a12 in mongo::assembleResponse (txn=0x3789cc0, m=..., dbresponse=..., remote=..., fromDBDirectClient=false) at src/mongo/db/instance.cpp:445
      #14 0x0000000001115a50 in mongo::MyMessageHandler::process (this=0x2f34198, m=..., port=0x2f4e530, le=0x2f4fc50) at src/mongo/db/db.cpp:184
      #15 0x00000000018988d5 in mongo::PortMessageServer::handleIncomingMsg (arg=0x2f38220) at src/mongo/util/net/message_server_port.cpp:234
      #16 0x00007ffff7bc4182 in start_thread (arg=0x7ffff7fce700) at pthread_create.c:312
      #17 0x00007ffff6cc4fbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
      

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: