It occured to me today to make a greasemonkey script to help people find XSS flaws in various forms. My idea so far:
Run through every form and insert an image like

at the start of every form.
Everything is then done through a menu that appears when you click that icon.
The options on that menu would be:
1. Show details of form - Show the action of the form, as well as the method and any hidden elements, also it'd show the name of every field.
2. Duplicate form - this would open a new tab to the current page and fill the form in as it is currently filled in (I'm not sure if the filling in part is possible, but I'd try).
3. Fill in every text field with an entry from the XSS cheat sheet (the script would dynamically load and parse the file, good thing the xml version was made). Which entry to fill it in with would be picked from a sub menu.
4. Create link to PoC - If the form uses GET this would create a link to the target page with the flaws as querystrings, if POST is used it'll auto generate the url to my script, but that would be changeble in the options.
I realise a lot of this is int he web developer extension, but I don't have that and I think keeping it with this makes sense.
What do you guys think? Can you think of what should be added, removed or changed?
Edit: I'd also allow users to create their own XSS injections to be included into the list.
Edit2: Instead of always running the script I'll do:
GM_registerMenuCommand("Start XSSing forms", start);
GM_registerMenuCommand("Stop XSSing forms", stop); which will let the user start and stop XSSing at will.
Don't forget our IRC: irc://irc.irchighway.net/#slackers
-
WhiteAcid - your friendly, very lazy, web developer
Edited 2 time(s). Last edit at 10/19/2006 01:02PM by WhiteAcid.