Skip to main content
Menu
Advisories

PYTHON-6073 Authentication identity smuggling via NUL-byte injection in SASL PLAIN payload

GHSA-24H2-R54J-CV24Published Updated GitHub

Description

Someone who controls a login username or password can use NUL-byte injection to smuggle extra hidden fields into the authentication message and potentially log in as a different identity, on LDAP/PLAIN setups.

Details

See jira.mongodb.org/browse/SECBUG-4280.

Proof of concept

See jira.mongodb.org/browse/SECBUG-4280 for full details. Requires a deployment using LDAP/PLAIN and an application that does not validate against NUL bytes in credentials.

Impact

An unauthenticated party supplying login input to a PLAIN/LDAP pass-through application can re-segment the authentication message so the server authenticates an identity (and checks a password) different from what the application validated. Identity smuggling and audit-attribution corruption, up to full authentication bypass depending on the receiver's NUL handling.

Affected versions

References

GitHub · mongodb/mongo-python-driver