Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Bugtraq
[Top] [All Lists]

W-Agora 4.20 XSS

Subject: W-Agora 4.20 XSS
Date: 29 Apr 2006 19:27:57 -0000
PLEASE NOTE: I am not sure if HTML is an option. I looked through the 
Administration panel and did not see an option for it, and the fact that there 
is no BBcode leads me to believe that this is the method of BBCode/etc.

W-Agora is a fairly 'nice' bulletin board written in PHP. It allows multiple 
'boards' (i.e. one with my forums and then one with yours) and has a nice 
administration panel.

EXPLANATION:

Also, W-Agora allows users to post HTML - not everything you'd think, as things 
like script, frame, body, html, etc are stripped. It also strips out 'on' 
anything, so you'd think that you cannot execute code -- right?

No. The regex to clean out 'on'anything is like this:
[code]' on([a-zA-Z]*)?=(.*)?'[/code]

If you don't see the problem, let me explain:
The filter expects that the = will come RIGHT after the On*! Therefore, if we 
put a space between it and the =, we do not match up against it and it will let 
it pass!

Example:
[code]<b onMouseOver =eval('alert(/xss/)')>hi</b>[/code]

This renders both in IE & Firefox. =D



USAGE:
Since W-Agora can be configured to either set all userinfo in cookies or 
completely rely on sessions, this is mixed. If you find a site that uses 
cookies, you could use this to steal them.

Shouts: digi7al64 - PrOtOn - Lockdown - WhiteAcid

Video @ http://dynxss.whiteacid.org/videos/w-agora420xss.rar :: 899kb

<Prev in Thread] Current Thread [Next in Thread>
  • W-Agora 4.20 XSS, r0xes . ratm <=