Directory Traversal and Local File Inclusion in Simple PHP Blog install05.php
CVE-2006-1243 is a directory traversal vulnerability in install05.php of Simple PHP Blog (SPB) 0.4.7.1 and earlier. The vulnerability exists due to insufficient sanitization of the blog_language parameter, which allows attackers to use directory traversal sequences and a NUL (%00) byte to include and execute arbitrary local files. This can be exploited by injecting PHP code into a log file (such as Apache's access_log), which is then included and executed by install05.php when referenced via the vulnerable parameter.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary code with the privileges of the web server, leading to full compromise of the affected system. Attackers can gain remote code execution by injecting PHP code into a log file and then including it via the vulnerable script.
If you can’t patch tonight, do this now.
Restrict access to install05.php after installation, sanitize all user input, and configure the web server to prevent writing to log files from web-accessible locations. Employ web application firewalls to detect and block directory traversal and local file inclusion attempts.
Patch, then assume compromise.
Upgrade to a version of Simple PHP Blog that properly sanitizes user input in install05.php, specifically ensuring that directory traversal sequences and NUL bytes are filtered from the blog_language parameter. Additionally, avoid including files based on user-supplied input whenever possible.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.