[SERVER-15819] fassert due to missing privilege checks for currentOpCtx command Created: 27/Oct/14  Updated: 11/Jul/16  Resolved: 31/Oct/14

Status: Closed
Project: Core Server
Component/s: Concurrency, Security
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc0

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-16054 Add currentOpCtx command to the auth ... Closed
Operating System: ALL
Participants:

 Description   

#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



 Comments   
Comment by Githook User [ 31/Oct/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15819: fix privilege check on currentOpCtx
Branch: master
https://github.com/mongodb/mongo/commit/bfcf5cc618e478697b272cae1ae642d4c38039e4

Generated at Thu Feb 08 03:39:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.