GHSL-2023-010_GHSL-2023-014: Denial of Service (DoS) and memory corruption in gss-ntlmssp - CVE-2023-25563, CVE-2023-25564, CVE-2023-25565, CVE-2023-25566, CVE-2023-25567
Multiple memory-safety bugs in the gss-ntlmssp library, including out-of-bounds reads, a memory leak, and incorrect freeing, can be triggered by remote attackers via NTLM authentication tokens. These can cause denial-of-service or memory corruption in applications using the library.
Originally disclosed on GitHub Security Lab
Multiple vulnerabilities in the gss-ntlmssp library can allow remote attackers to trigger a denial-of-service or memory corruption in applications using NTLM authentication.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The root cause is missing or incorrect validation of input lengths and pointers when parsing NTLM tokens, leading to out-of-bounds reads, memory leaks, and invalid frees.
Impact
An attacker could cause a denial-of-service (crash) or potentially memory corruption in applications using the library, though some issues require tokens larger than 4GB.
What the attacker needed
Application uses gss-ntlmssp; attacker can send NTLM tokens; for some issues, tokens >4GB
The fix
The issues were fixed in version 1.2.0.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes several programming mistakes in a library that handles NTLM authentication. An attacker can send specially crafted authentication messages that make the library read or write memory it shouldn't, which can crash the application or, in some cases, corrupt memory. The bugs are in how the library parses usernames and token fields.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.