moderate: Apache HTTP Server proxy encoding problem (CVE-2024-38473)
An encoding problem in Apache HTTP Server's mod_proxy allowed request URLs with incorrect encoding to be sent to backend services, potentially bypassing authentication via crafted requests. This affects configurations where mechanisms other than ProxyPass/ProxyPassMatch or RewriteRule with the 'P' flag are used to configure proxying, such as SetHandler or inadvertent proxying via CVE-2024-39573.
Originally disclosed on HackerOne
- Fixed in 8 days
- Paid in 8 days
- Disclosed after 9 days
Summary by the program
###moderate: Apache HTTP Server proxy encoding problem (CVE-2024-38473)
Encoding problem in mod_proxy in Apache HTTP Server 2.4.59 and earlier allows request URLs with incorrect encoding to be sent to backend services, potentially bypassing authentication via crafted requests. This affects configurations where mechanisms other than ProxyPass/ProxyPassMatch or RewriteRule with the 'P' flag are used to configure a request to be proxied, such as SetHandler or inadvertent proxying via CVE-2024-39573. Note that these alternate mechanisms may be used within .htaccess.
Users are recommended to upgrade to version 2.4.60, which fixes this issue.
Acknowledgements: finder: Orange Tsai (@orange_8361) from DEVCORE
Reported to security team: 2024-04-01 fixed by r1918559, r1918666, r1918600, r1918625, r1918668 in 2.4.x: 2024-07-01 Update 2.4.60 released: 2024-07-01 Affects: 2.4.0 through 2.4.59
The report
I reported this vulnerability through the official Apache HTTP Server security email on April 1, 2024, and received a fix along with a CVE number on July 1, 2024. You can check detailed information from there:
Impact
Encoding problem in mod_proxy in Apache HTTP Server 2.4.59 and earlier allows request URLs with incorrect encoding to be sent to backend services, potentially bypassing authentication via crafted requests.
Users are recommended to upgrade to version 2.4.60, which fixes this issue.
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 the proxy module did not properly normalise or validate URL encoding before forwarding requests to backend services, allowing crafted encoded URLs to bypass authentication.
Impact
An attacker could potentially bypass authentication on backend services when the server is configured to proxy requests using certain non-standard mechanisms.
What the attacker needed
Apache HTTP Server 2.4.0-2.4.59; Proxy configured via SetHandler or similar; Not using ProxyPass/ProxyPassMatch or RewriteRule P
The fix
The issue was fixed in Apache HTTP Server version 2.4.60; 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.
A flaw in how it handled encoded characters in URLs meant a crafted request could potentially reach a backend service in a form that bypassed authentication checks. This affected specific proxy configurations, not the default ones.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.