labs
Reflected XSS
Lab - 1: Reflected XSS into HTML context with nothing encoded
<script>
alert("1");
</script>Stored XSS
Lab - 2: Stored XSS into HTML context with nothing encoded
POST /post/comment HTTP/1.1
...
Origin: https://0a9c00f604e0a6f0c00e599c007c00b2.web-security-academy.net
Referer: https://0a9c00f604e0a6f0c00e599c007c00b2.web-security-academy.net/post?postId=2
...
csrf=uY2QyKgwlEKbIVZ48E3IhL7SDUKM0yug&postId=2&comment=%3Cscript%3Ealert%282%29%3B%3C%2Fscript%3E&name=Test&email=test%40gmail.com&website=DOM XSS
Lab - 3: DOM XSS in document.write sink using source location.search
Lab - 4: DOM XSS in document.write sink using source location.search inside a select element
Lab - 5: DOM XSS in innerHTML sink using source location.search
Lab - 6: DOM XSS in jQuery anchor href attribute sink using location.search source
Lab - 7: DOM XSS in jQuery selector sink using a hashchange event
Lab - 8: DOM XSS in AngularJS expression with angle brackets and double quotes HTML-encoded
Lab - 9: Reflected DOM XSS
Lab - 10: Stored DOM XSS
XSS Context - between HTML tags
Lab - 11: Reflected XSS into HTML context with most tags and attributes blocked
Lab - 12: Reflected XSS into HTML context with all tags blocked except custom ones
Lab - 13: Reflected XSS with event handlers and href attributes blocked (E)
Lab - 14: Reflected XSS with some SVG markup allowed
XSS in HTML tag attributes
Lab - 15: Reflected XSS into attribute with angle brackets HTML-encoded (A)
Lab - 16: Stored XSS into anchor href attribute with double quotes HTML-encoded
Lab - 17: Reflected XSS in canonical link tag
XSS into JS
Lab - 18: Reflected XSS into a JavaScript string with single quote and backslash escaped (P)
Lab - 19: Reflected XSS into a JavaScript string with angle brackets HTML encoded (A)
Lab - 20: Reflected XSS into a JavaScript string with angle brackets and double quotes HTML-encoded and single quotes escaped (P)
Lab - 21: Reflected XSS in a JavaScript URL with some characters blocked (E)
Lab - 22: Stored XSS into onclick event with angle brackets and double quotes HTML-encoded and single quotes and backslash escaped (P)
Lab - 23: Reflected XSS into a template literal with angle brackets, single, double quotes, backslash and backticks Unicode-escaped (P)
Lab - 24: Reflected XSS protected by very strict CSP, with dangling markup attack (E)
Last updated