[SERVER-17125] Password credentials created for $external users causing fatal assertion Created: 30/Jan/15  Updated: 18/Sep/15  Resolved: 06/Feb/15

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: 3.0.0-rc7
Fix Version/s: 3.0.0-rc9, 3.1.0

Type: Bug Priority: Major - P3
Reporter: Kamran K. Assignee: Andreas Nilsson
Resolution: Done Votes: 0
Labels: 28qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-17318 mongod terminates from assert when cr... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: Security [00-02-20-15]
Participants:

 Description   

Fatal Assertion 17494
 
#0  0x00007ffff7bcc20b in raise (sig=5) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:37
#1  0x00000000018c2fce in mongo::breakpoint () at src/mongo/util/debugger.cpp:63
#2  0x00000000018b8085 in mongo::fassertFailed (msgid=17494) at src/mongo/util/assert_util.cpp:165
#3  0x00000000011ea18c in mongo::fassert (msgid=17494, testOK=false) at src/mongo/util/assert_util.h:213
#4  0x00000000011f93b6 in mongo::scram::HMACIteration (input=0x7ffff77af3f8 <std::string::_Rep::_S_empty_rep_storage+24> "", inputLen=0, 
    salt=0x7ffff7fcaf00 "!}\223\364\307[Ss\023dI7H0", <incomplete sequence \352>, saltLen=16, iterationCount=10000, 
    output=0x7ffff7fcae00 "x\255\374\367\377\177") at src/mongo/crypto/mechanism_scram.cpp:71
#5  0x00000000011f9503 in mongo::scram::generateSaltedPassword (hashedPassword=..., 
    salt=0x7ffff7fcaf00 "!}\223\364\307[Ss\023dI7H0", <incomplete sequence \352>, saltLen=16, iterationCount=10000, 
    saltedPassword=0x7ffff7fcae00 "x\255\374\367\377\177") at src/mongo/crypto/mechanism_scram.cpp:103
#6  0x00000000011f9598 in mongo::scram::generateSecrets (hashedPassword=..., 
    salt=0x7ffff7fcaf00 "!}\223\364\307[Ss\023dI7H0", <incomplete sequence \352>, saltLen=16, iterationCount=10000, 
    storedKey=0x7ffff7fcafb0 "Я\374\367\377\177", serverKey=0x7ffff7fcafd0 "\240B@\003") at src/mongo/crypto/mechanism_scram.cpp:121
#7  0x00000000011f976d in mongo::scram::generateCredentials (hashedPassword=..., iterationCount=10000)
    at src/mongo/crypto/mechanism_scram.cpp:168
#8  0x00000000012f41a3 in mongo::CmdCreateUser::run (this=0x286a5e0 <mongo::cmdCreateUser>, txn=0x7ffff7fcc7d0, dbname=..., cmdObj=..., 
    options=0, errmsg=..., result=..., fromRepl=false) at src/mongo/db/commands/user_management_commands.cpp:443
#9  0x000000000133258f in mongo::_execCommand (txn=0x7ffff7fcc7d0, c=0x286a5e0 <mongo::cmdCreateUser>, dbname=..., cmdObj=..., 
    queryOptions=0, errmsg=..., result=..., fromRepl=false) at src/mongo/db/dbcommands.cpp:1273
#10 0x000000000133350c in mongo::Command::execCommand (txn=0x7ffff7fcc7d0, c=0x286a5e0 <mongo::cmdCreateUser>, queryOptions=0, 
    cmdns=0x33f5014 "$external.$cmd", cmdObj=..., result=..., fromRepl=false) at src/mongo/db/dbcommands.cpp:1489
#11 0x0000000001333deb in mongo::_runCommands (txn=0x7ffff7fcc7d0, ns=0x33f5014 "$external.$cmd", _cmdobj=..., b=..., anObjBuilder=..., 
    fromRepl=false, queryOptions=0) at src/mongo/db/dbcommands.cpp:1561
#12 0x0000000001535d2a in mongo::runCommands (txn=0x7ffff7fcc7d0, ns=0x33f5014 "$external.$cmd", jsobj=..., curop=..., b=..., 
    anObjBuilder=..., fromRepl=false, queryOptions=0) at src/mongo/db/query/find.cpp:137
#13 0x0000000001537d52 in mongo::runQuery (txn=0x7ffff7fcc7d0, m=..., q=..., nss=..., curop=..., result=..., fromDBDirectClient=false)
    at src/mongo/db/query/find.cpp:606
#14 0x000000000143defa in mongo::receivedQuery (txn=0x7ffff7fcc7d0, c=..., dbresponse=..., m=..., fromDBDirectClient=false)
    at src/mongo/db/instance.cpp:220
#15 0x000000000143f0a4 in mongo::assembleResponse (txn=0x7ffff7fcc7d0, m=..., dbresponse=..., remote=..., fromDBDirectClient=false)
    at src/mongo/db/instance.cpp:403
#16 0x000000000113f4f8 in mongo::MyMessageHandler::process (this=0x30b80f8, m=..., port=0x30df7a0, le=0x33fc370) at src/mongo/db/db.cpp:206
#17 0x00000000018e11c2 in mongo::PortMessageServer::handleIncomingMsg (arg=0x30df7a0) at src/mongo/util/net/message_server_port.cpp:229
#18 0x00007ffff7bc4182 in start_thread (arg=0x7ffff7fcd700) at pthread_create.c:312
#19 0x00007ffff6cc500d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111


Version: 94cb08d1d1a14733ebe



 Comments   
Comment by Githook User [ 06/Feb/15 ]

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-17125 Avoid creating password credentials for $external

(cherry picked from commit 8b6c594ca13a689c65c29a645ae6f4af97b1f9bd)
Branch: v3.0
https://github.com/mongodb/mongo/commit/2b1a0f4cd4564d52b6605d802f30fe8958eaa9f7

Comment by Githook User [ 06/Feb/15 ]

Author:

{u'username': u'agralius', u'name': u'Andreas Nilsson', u'email': u'andreas.nilsson@10gen.com'}

Message: SERVER-17125 Avoid creating password credentials for $external
Branch: master
https://github.com/mongodb/mongo/commit/8b6c594ca13a689c65c29a645ae6f4af97b1f9bd

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