-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Server Security
-
Fully Compatible
-
ALL
-
v8.2, v8.0, v7.0
-
Server Security 2025-09-12
-
(copied to CRM)
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Context:
There is an inconsistency in audit logging for failed password authentication attempts. When using mongosh, authentication failures due to incorrect passwords (which fail during the SaslContinue phase with "storedKey mismatch") are not being logged to the audit log.
However the same scenario works correctly with the legacy mongo shell (logs with result code 18). Other authentication results like successful logins and invalid usernames are properly audited when using mongosh.
We should also investigate why SERVER-96269 did not fix it.
Investigation:
In markFailed we were checking if _lastStep == SaslContinue expecting this was updated when doStep failed. _lastStep does not get updated until the guard destructor call happens, after markFailed and doStep finish.
- is related to
-
SERVER-96269 Modify speculative authentication auditing
-
- Closed
-
- related to
-
SERVER-96269 Modify speculative authentication auditing
-
- Closed
-