CRV2 RevCodeXSS

From OWASP
Revision as of 08:44, 2 May 2013 by EoinKeary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Where can XSS occur??

HTML Body Context
<span>UNTRUSTED DATA</span>
HTML Attribute Context
<input type="text" name="fname" value="UNTRUSTED DATA"> attack: "><script>/* bad stuff */</script>

HTTP GET Parameter Context
<a href="/site/search?value=UNTRUSTED DATA">clickme</a>
attack: " onclick="/* bad stuff */"

URL Context
<a href="UNTRUSTED URL">clickme</a> <iframe src="UNTRUSTED URL" />
attack: javascript:/* BAD STUFF */