Jinx – a Greasemonkey XSS tool
I recently open-sourced a little project that helps finding XSS flaws. It is called Jinx and can be found at BitBucket.
Jinx is a javascript-based tester for cross site scripting. Currently based on GreaseMonkey, but can be easily decoupled to be used without GM support. It is a ‘quick-n-dirty’ way of testing a page you are on, not an exhaustive way of testing an entire domain.
What it does is that it gathers all the links from the page you are at (including document.location), and the ones that contain parameters are then permutated so a payload is injected into the parameters, one at a time. If you select “Quick check”, then the payload tries to inject the characters ‘ ” and < and get them reflected into the page. Any of these three characters often signal lack of filtering and probable XSS exploitation.
For example "test?a=b&c=d" generates two requests : "test?a=b
It is a pretty nice way to do some basic testing and often finds interesting stuff – I test all kinds of pages every now and then, it is staggering how many flaws are out there.