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. Comment by ?????? on February 12, 2007 8:31 am

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

  2. Comment by yusuff wasiu adekunl on October 22, 2007 7:32 am

    i whant to become a member

  3. Comment by re4 on October 27, 2007 4:22 pm

    kurcine jedne jebacke i sektovacke

  4. Comment by sajin on November 26, 2007 6:51 am

    love

Comments RSS TrackBack Identifier URI

Leave a comment

 

User contributed tags for this post:

1