Description
cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, does not set the --enable-discard-path option, which causes php to use the SCRIPT_FILENAME variable to find and execute a script instead of the PATH_TRANSLATED variable, which allows local users to execute arbitrary PHP code as other users via a URL that references the attacker's script after the user's script, which executes the attacker's script with the user's privileges, a different vulnerability than CVE-2004-0529.
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.
Exploit-DB 1
- cPanel 5 < 9 - Local Privilege Escalation EDB-24141 · local · May 24, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 10407 vdb-entry
- cpanel-modphpsuexec-execute-commands(16239) vdb-entry
- http://bugzilla.cpanel.net/show_bug.cgi?id=664
- http://bugzilla.cpanel.net/show_bug.cgi?id=283
- 20040524 cPanel mod_phpsuexec Vulnerability mailing-list
- http://www.securiteam.com/tools/5TP0N15CUA.html
- http://www.a-squad.com/audit/explain10.html