Here’s a cool site where you can test some of your XSS skills. You’ll have to go through all the stages of this workshop, if you’re able to inject a javascript through XSS to get the password to the next stage.
See how many stages you canĀ complete : XSS Workshop – Stage 1
