XSS scanner

XSS (or Cross Site Scripting) is a very common web programmer's mistake.

Some days ago I wrote xss.rb , a tool that test a website against XSS errors (MIT License).It is recursive, all links and variables of the website will be checked, the only thing you need to pass it as argument is the hostname and an optional path.

It detects common non-persistent XSS only, please feel free to improve it.

As demonstration, let's try my tool against a famous mexican hackers team:

$ ruby xss.rb icenetx.net | grep EE
EE index.php?gallery=<webshark>
EE index.php?contenido=<webshark>&gallery=<webshark>
EE index.php?contenido=<webshark>&action=<webshark>&gallery=<webshark>&image=<webshark>
EE index.php?startat=<webshark>&contenido=<webshark>&action=<webshark>&gallery=<webshark>&image=<webshark>
EE index.php?control=<webshark>&contenido=<webshark>&action=<webshark>&gallery=<webshark>&image=<webshark>

It ends up showing some urls, the “<webshark>” thing is the place where we can inject some code. Now we know that their gallery script is vulnerable to XSS as we can see here .

Related topics

{ hacking, english }

About the author

xiam

José Carlos Nieto is a nerd that pretends to be a Math student (UNAM), he works with his friends creating amazing stuff at Astrata Software.

Comments

Sunday January 6, 2008 @ 14:51

maop

ruby … te hemos perdido ='(

Sunday January 6, 2008 @ 17:28

marioly

tu no haces “videos demostrativos” ?

Monday January 7, 2008 @ 01:05

k001

Ruby µ.u como dice maop te hemos perdido. Ruby rulz

Sunday March 9, 2008 @ 01:18

Mzof

Hola xiam.

en lo referente a la web de icenetx, todos los XSS que encontró tu web son de singapore (galería de imagenes).

Por otro lado, el link que pusiste de ejemplo. No funciona


Welcome