Description
phgstats.inc.php in phgstats before 0.5.1, if register_globals is enabled, allows remote attackers to include arbitrary files and execute arbitrary PHP code by modifying the PHGDIR variable.
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.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- PostNuke Module phgstats 0.5 - 'phgdir' Remote File Inclusion EDB-3454 · webapps · Mar 11, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- http://sourceforge.net/project/shownotes.php?release_id=384232
- 22302 vdb-entry
- ADV-2006-0123 vdb-entry
- phgstats-php-file-include(24062) vdb-entry
- 17469 vdb-entry
- 18346 third-party-advisory