mod_userdir CRLF injection (CVE-2016-4975)
Apache's mod_userdir module allowed CR or LF characters to be injected into outbound headers such as Location, which could enable HTTP response splitting attacks on sites using that module. An attacker could potentially manipulate responses served to users of affected sites.
- Fixed in 18 days
- Paid in 18 days
- Disclosed after 18 days
Possible CRLF injection allowing HTTP response splitting attacks for sites which use mod_userdir. This issue was mitigated by changes made in 2.4.25 and 2.2.32 which prohibit CR or LF injection into the "Location" or other outbound header key or value.
Reported to security team 24th July 2016 Issue public 14th August 2018 Update Released 20th December 2016 Affects 2.4.23, 2.4.20, 2.4.18, 2.4.17, 2.4.16, 2.4.12, 2.4.10, 2.4.9, 2.4.7, 2.4.6, 2.4.4, 2.4.3, 2.4.2, 2.4.1
https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2016-4975 https://httpd.apache.org/security/vulnerabilities_22.html#CVE-2016-4975
Impact
CRLF Injection
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 mod_userdir code built outbound headers, such as Location, from input without rejecting CR or LF characters.
Impact
Sites using mod_userdir could be exposed to HTTP response splitting attacks, though the text only calls this 'possible'.
What the attacker needed
Site uses mod_userdir; affected Apache version
The fix
It was fixed in Apache 2.4.25 and 2.2.32 by prohibiting CR or LF characters in outbound header keys and values.
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.
Web servers send responses made of a status line, headers and a body, and headers are separated by special line-break characters (CR and LF). If a user-supplied value containing those characters reaches a header, an attacker can sneak in extra headers or even a whole second response, which is called response splitting. This report says Apache's mod_userdir module (which serves per-user web directories) did not block those characters.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.