Skip to content
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

Fix CVE-2024-28820 #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Grissess
Copy link

An attacker who can control the challenge/response password field could, with a valid LDAP username, pass a string with more than 14 colons into this field, causing a buffer overflow. This happens before the number of tokens is checked for validity below.

This commit ensures that the loop bails before attempting to write past the end of tokenIndexes; as of the currently-published protocol, any response with more than 15 fields is certainly invalid (and will be rejected below).

An attacker who can control the challenge/response password field could, with a
valid LDAP username, pass a string with more than 14 colons into this field,
causing a buffer overflow. This happens before the number of tokens is checked
for validity below.

This commit ensures that the loop bails before attempting to write past the end
of tokenIndexes; as of the currently-published protocol, any response with more
than 15 fields is certainly invalid (and will be rejected below).
bob-beck pushed a commit to openbsd/ports that referenced this pull request Jul 1, 2024
@jrddunbr
Copy link

jrddunbr commented Jul 1, 2024

@samskivert I see that you are previously one of the most active committers to this repository. I just wanted to bring this critical CVE to your attention. I'm guessing that this project is abandoned, and as such it may be pertinent to put a warning banner on the readme file to discourage future use of this project if that is the case. Additionally, the business that is said to provide support per the readme has closed and the security contact email address on the readme was unreachable during the CVE notification process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants