PHP & URL Encoding Evasion
The text describes honeypot logs showing attempts to exploit CVE-2021-41773/42013 (Apache path traversal) and CVE-2017-9841 (PHPUnit eval-stdin.php RCE). The attacker could read files outside the web root or execute code if the target were vulnerable.
medium.com
Published on medium.com
As I looked through web logs, I found some strange URLs coming from several IP addresses. The first instance of this happening was on September 5th from 165[.]232[.]183[.]195.
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 the attacks target known vulnerabilities: Apache's path normalisation flaw and an exposed PHPUnit eval-stdin.php file.
Impact
If the target were vulnerable, an attacker could read files outside the web root or execute code, but the honeypot was not affected.
What the attacker needed
Target runs vulnerable Apache or PHPUnit; attacker sends crafted HTTP requests
The fix
Update Apache, disable the CGI module if not needed, and remove or block access to the PHPUnit vendor folder.
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 honeypot is a decoy server that logs attacks. The author saw requests trying to trick a web server into reading files it should not (path traversal) or running code through a test file (PHPUnit). The honeypot was not vulnerable, so the attacks failed.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.