views:

182

answers:

1

Hello,

Firstly, I do not have any malicious intent out of this question. I would like to know what text to copy paste and test in my text areas and text boxes to see if they are stripped correctly.

Currently I use something as limited as:

<script>
alert('xss');
</script>
<a href="www.test.com" onclick="javascript:alert('xss');">test</a>
<img src="http://localhost/logo.gif" onclick="alert('xss');">

Can someone provide or suggest a comprehensive list of tests to check if my site is XSS-proof.

Thank you for your time.

+3  A: 

Parse all the <code> tags from http://ha.ckers.org/xssAttacks.xml.

MiffTheFox
Interesting set of XSS attacks, seems to be a good resource for developing anti-XSS code.
Esko
You can use the human readable format at http://ha.ckers.org/xss.html. The XML sheet is for CAL9000 and similar tools.
Vineet Reynolds