Skip to content
SSRF Disclosed report Intermediate CVE-2024-40898

important: Apache HTTP Server: SSRF with mod_rewrite in server/vhost context on Windows (CVE-2024-40898)

A server-side request forgery flaw exists in Apache HTTP Server on Windows when mod_rewrite is used in server or virtual host context. An attacker could potentially cause the server to send requests to a malicious host and leak NTLM hashes.

xi4o7unj1e Follow

Originally disclosed on HackerOne

Bounty$4,263 High View original
  • Triaged in 6 days
  • Fixed in 36 days
  • Paid in 36 days
  • Disclosed after 39 days

Summary by the program

important: Apache HTTP Server: SSRF with mod_rewrite in server/vhost context on Windows (CVE-2024-40898) SSRF in Apache HTTP Server on Windows with mod_rewrite in server/vhost context, allows to potentially leak NTLM hashes to a malicious server via SSRF and malicious requests.

Users are recommended to upgrade to version 2.4.62 which fixes this issue.

Acknowledgements:

finder: Smi1e (DBAPPSecurity Ltd.) finder: xiaojunjie (DBAPPSecurity Ltd.)

Security Advisory: https://httpd.apache.org/security/vulnerabilities_24.html

The report

I reported this vulnerability through the official Apache HTTP Server security email on 2024-07-12, and received a CVE number on 2024-07-17. You can check detailed information from here: https://httpd.apache.org/security/vulnerabilities_24.html

Impact

SSRF in Apache HTTP Server on Windows with mod_rewrite in server/vhost context, allows to potentially leak NTLM hashes to a malicious server via SSRF and malicious requests.

The original report as published on HackerOne, by xi4o7unj1e. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely, mod_rewrite in server or virtual host context on Windows does not properly restrict outbound requests, allowing attacker-controlled URLs to trigger NTLM authentication to a malicious server.

Impact

An attacker could potentially leak NTLM hashes to a malicious server.

What the attacker needed

Apache HTTP Server on Windows; mod_rewrite in server/vhost context; attacker controls a server

The fix

The issue was fixed in Apache HTTP Server version 2.4.62; users should upgrade.

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 is a server-side request forgery bug. The web server can be tricked into making requests to an attacker-chosen server. On Windows, those requests may leak NTLM hashes to that server.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from Internet Bug Bounty

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.