-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mongodb ops manager diagnostic archive info disclosure (cve-2023-0342) #18936
Conversation
modules/auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info.rb
Outdated
Show resolved
Hide resolved
…e_info.rb Co-authored-by: Brendan <bwatters@rapid7.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @h00die for this module. I just left a few minor comments before it lands. I tested against v6.0.11 on Ubuntu 22.04.2.
modules/auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info.rb
Outdated
Show resolved
Hide resolved
modules/auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info.rb
Outdated
Show resolved
Hide resolved
modules/auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info.rb
Outdated
Show resolved
Hide resolved
modules/auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info.rb
Outdated
Show resolved
Hide resolved
Thanks for updating this @h00die ! Everything looks good to me now. I tested against v6.0.11 on Ubuntu 22.04.2 and verified the SAML SSL Pem Key File Password had been retrieved. I'll go ahead and land it.
|
Release NotesThis adds an auxiliary module that leverages an information disclosure vulnerability (CVE-2023-0342) in MongoDB Ops Manager v5.0 prior to 5.0.21 and v6.0 prior to 6.0.12 to retrieve the SAML SSL Pem Key File Password, which is stored in plaintext in the application's Diagnostics Archive. |
MongoDB Ops Manager Diagnostics Archive does not redact SAML SSL Pem Key File Password
field (
mms.saml.ssl.PEMKeyFilePassword
) within app settings. Archives do not includethe PEM files themselves. This module extracts that unredacted password and stores
the diagnostic archive for additional manual review.
This issue affects MongoDB Ops Manager v5.0 prior to 5.0.21 and
MongoDB Ops Manager v6.0 prior to 6.0.12.
API credentials with the role of
GLOBAL_MONITORING_ADMIN
orGLOBAL_OWNER
are required.Successfully tested against MongoDB Ops Manager v6.0.11.
While the vuln disclosure doesn't mention the exact field, I tested all the PEM password fields, this was the only one which was not redacted. Also installed 6.0.12 and confirmed it redacted
mms.saml.ssl.PEMKeyFilePassword
, so its definitely the one in question.I was also unable to find any public PoCs for this, so this may be the first!
Verification
use auxiliary/gather/mongodb_ops_manager_diagnostic_archive_info
set API_USERNAME [api_username]
set API_PASSWORD [api_password]
run
Found ubuntu22-0-bgrid's unredacted mms.saml.ssl.PEMKeyFilePassword: FINDME