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.

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=""&gt;&lt;script&gt;alert(document.cookie);&lt;/scrip
t&gt;post&amp;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

References

phpBB Privmsg.PHP Cross-Site Scripting Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report