Cross-site scripting (XSS)
XSS (cross-site scripting).
Methods to load XSS payload
Perfecting payload
1. Input within <h2> tag with no filter (THM level 1)
2. Input used as value attribute of <input> tag (THM level 2)
3. Input used as value within <textarea> tag (THM level 3)
4. Input used as value to innerHTML in a script (within a <script> tag) (THM level 4)
5. Filter that removes the word script (THM level 5)
6. Input used as value for the src attribute of the img tag, with HTML opening/closing tags removed (< and >) (level 6)
< and >) (level 6)8. IMG tag
Polygots
General XSS payloads
Blind XSS payloads
Bypass restrictions/filters, etc.
Vulnerability assessment automation
Practice
Last updated
