Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

go-ldap/ldap
master @ 8a98971
2
Fixes
1
CVEs
HIGH
Peak severity
Highlights
Cryptographic Issues: 1 prior fix. Scrutinize any change in this area.
v3/bind.go: most-fixed (2 issues). Treat as high-risk during review.
0 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Injection: Improper escaping of special characters like backslashes and double quotes in username, realm, nonce, and URI parameters allowed parameter injection within DIGEST-MD5 bind responses. This could lead to authentication subversion depending on the LDAP directory service behavior.
Cryptographic Issues: The use of the cryptographically insecure math/rand package for generating client nonces (cnonce) in Digest-MD5 authentication compromised the unpredictability of authentication handshakes, making them susceptible to prediction attacks.
Improper Authentication: Accepting empty passwords during the Bind function allows unauthenticated binds on LDAP servers configured to permit them. If client applications rely solely on the absence of a Bind error, they may mistakenly authorize unauthenticated users.