50+ Ways Good HTML Can Go Bad

Via Brad Neuberg: RSnake’s XSS (Cross Site Scripting) Cheatsheet: Esp: for filter evasion.

Limitations on cross site scripting (XSS hereafter) have been troubling me as I try to write enhancements to our library catalog, but the reasons for the prohibition are sound. Without them I could snort your browser cookies (RSnake lists: “cookie/credential stealing/replay/session riding” among the threats, but a well-planned attack could also fetch resources from internal webservers and deliver them to external data thieves).
It turns out you can insert JavaScript in <img> tags (among many, many others) and obfuscate it with Unicode, hex, and other less-readable encodings or by inserting tab characters (“&#x09;”) or newlines (“&#x0A;”). It would be impossible for me to list every possible attack vector, but RSnake takes a good stab at it.

If you allow users to insert HTML in comments, you should be aware of this….

tags: , , , , , , , , , , , ,

4 Comments

  1. اااااااااااااخ بس على الكفرة

  2. i whant to become a member

  3. kurcine jedne jebacke i sektovacke

  4. love


Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

4 pig com (985) - WWW 4 PIG COM (128) - www.4 pig.com (71) - www.worldsx.com (63) - www.4pig.com (49) - 4pig (41) - 4 pig (39) - www.4.pig.com (39) - 3 pig com (35) - www 4pig com (28) - WWW 4 PIG (27) - xss (24) - feed the pig com (24) - RSnake (17) - 4pig.com (16) - 4pig com (15) - 4.pig.com (15) - pig com (13) - would (11) - http://www google com do/ (11) - www world sx com (11) - www4 pig com (10) - www 4 pig ro (9) - worLdsx.com (9) - cheatsheet (8) -