CVE-2021-41773: Path Traversal Zero-Day in Apache HTTP Server Exploited
A path traversal flaw in Apache HTTP Server 2.4.49 allowed a remote attacker to access files outside the document root, potentially leaking sensitive information such as CGI script source. The vulnerability was exploited in the wild as a zero-day.
tenable.com
Published on tenable.com
Subscribe
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 flaw in path normalisation introduced in version 2.4.49 that failed to properly restrict access to files outside the document root when the 'require all denied' access control was disabled.
Impact
A remote attacker could read arbitrary files outside the document root, including the source of CGI scripts, which may contain sensitive information useful for further attacks; exploitation was observed in the wild.
What the attacker needed
Apache HTTP Server version 2.4.49; access control 'require all denied' disabled
The fix
The vulnerability was fixed in Apache HTTP Server 2.4.50, but because that release did not fully address it, version 2.4.51 was later released as a complete fix.
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.
A path traversal bug lets an attacker use special characters in a web request to climb out of the folder the web server is supposed to serve files from. In this case, a mistake in how Apache handled file paths meant an attacker could read files elsewhere on the server, like configuration files or scripts, which might contain passwords or other secrets.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.