Description
viewtopic.php in phpBB 2.x before 2.0.11 improperly URL decodes the highlight parameter when extracting words and phrases to highlight, which allows remote attackers to execute arbitrary PHP code by double-encoding the highlight value so that special characters are inserted into the result, which is then processed by PHP exec, as exploited by the Santy.A worm.
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
-
phpBB viewtopic.php Arbitrary Code Execution
exploit/unix/webapp/phpbb_highlight
Exploit-DB 4
- phpBB - 'viewtopic.php' Arbitrary Code Execution (Metasploit) EDB-16890 · webapps · Jul 3, 2010 · verified
- PHP-Nuke 7.0/8.1/8.1.35 - Wormable Remote Code Execution EDB-12510 · webapps · May 5, 2010
- phpBB 2.0.10 - Remote Command Execution EDB-647 · webapps · Nov 22, 2004 · verified
- phpBB 2.0.x - 'viewtopic.php' PHP Script Injection EDB-24274 · webapps · Jul 12, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 10701 vdb-entry
- GLSA-200411-32 vendor-advisory
- 20041220 phpBB Worm mailing-list
- phpbb-view-sql-injection(18052) vdb-entry
- http://www.phpbb.com/phpBB/viewtopic.php?t=240513
- VU#497400 third-party-advisory
- TA04-356A third-party-advisory
- 13239 third-party-advisory
- 20041118 EXEC exploit in phpBB - fix mailing-list
- 20041222 Re: phpBB Worm mailing-list
- 20041112 phpBB Code EXEC (v2.0.10) mailing-list