Description
PHP-Charts v1.0 contains a PHP code execution vulnerability in wizard/url.php, where user-supplied GET parameter names are passed directly to eval() without sanitization. A remote attacker can exploit this flaw by crafting a request that injects arbitrary PHP code, resulting in command execution under the web server's context. The vulnerability allows unauthenticated attackers to execute system-level commands via base64-encoded payloads embedded in parameter names, leading to full compromise of the host system.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PHP-Charts | PHP-Charts | 1.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
PHP-Charts v1.0 PHP Code Execution Vulnerability
exploit/unix/webapp/php_charts_exec
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/php_charts_exec.rb exploit
- https://www.exploit-db.com/exploits/24201 exploit
- https://www.exploit-db.com/exploits/24273 exploit
- https://web.archive.org/web/20130120234844/http://php-charts.com/ product
- https://www.vulncheck.com/advisories/php-charts-php-code-execution third-party-advisory