CVE-2024–40725 and CVE-2024–40898: Critical Vulnerabilities in Apache HTTP Server
The article describes two Apache HTTP Server vulnerabilities: CVE-2024-40725, a regression that allows source code disclosure via legacy content-type configuration, and CVE-2024-40898, an SSRF in mod_rewrite on Windows that can extract NTLM hashes. It also incorrectly describes them as HTTP request smuggling and SSL verification bypass, and provides PoCs that do not match the actual flaws.
The Apache Software Foundation recently disclosed two critical vulnerabilities, CVE-2024–40725 and CVE-2024–40898, affecting versions 2.4.0 through 2.4.61 of the Apache HTTP Server.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a regression in a previous fix for CVE-2024-39884 that mishandles legacy content-type configurations, and a separate SSRF flaw in mod_rewrite on Windows.
Impact
These flaws could expose sensitive source code and, on Windows, allow attackers to extract NTLM hashes via SSRF, though the article's claims about request smuggling and SSL bypass are not supported by the official descriptions.
What the attacker needed
Apache HTTP Server 2.4.0 to 2.4.61; mod_rewrite enabled (for CVE-2024-40898); Windows system (for CVE-2024-40898)
The fix
The vulnerabilities were fixed in Apache HTTP Server version 2.4.62.
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 write-up has not been written yet. The Original tab links to the source.
This article talks about two security bugs in Apache, a very common web server program. One bug could let an attacker see source code files that should be hidden, and the other could let an attacker trick the server into making requests to other systems and leak password hashes on Windows. However, the article mixes up the details and gives example code that does not actually test these bugs correctly.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.