Hacker News new | past | comments | ask | show | jobs | submit login
XSS (Cross Site Scripting) Cheat Sheet (ckers.org)
39 points by nickb on April 9, 2008 | hide | past | favorite | 9 comments



This thing is oooooold, but useful ;)


"Also as a consequence of the introduction of new bugs, program maintenance requires far more system testing per statement written than any other programming. Theoretically, after each fix one must run the entire batch of test cases previously run against the system, to ensure that it has not been damaged in an obscure way. In practice, such regression testing must indeed approximate this theoretical idea, and it is very costly." -- Fred Brooks, The Mythical Man Month (p 122)


Updated for IE7 and FF2 though.


Surely a checklist is missing the whole point.

Don't go through the list checking for each one, treat everything as evil, and only allow through what you know is good.


That's a much better general principle, but oftentimes you have to use third-party software which you're not sure is safe. A checklist gives you a bunch of tests that you can quickly run to see if the developers were paying attention to XSS issues or not. You can decide whether or not to use the library based on the results.

Spez said recently that over half of Reddit's XSS issues were caused by Markdown. It's not unusual for websites to require 3rd-party forums or comment engines or skinning systems, too.


Good point. Relying on other peoples code is horrible. Has to be done sometimes though ;)


That's what's great about open source: I can monkey with the security to do custom checks.


Guess this is in light of Google's App Engine page getting hacked?





Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: