Pentesting Web
Cross Site Scripting
Pentesting-Web
Tools
Most tools are also suitable for blind XSS attacks:
- XSSStrike: Very popular but unfortunately not very well maintained
- xsser: Utilizes a headless browser to detect XSS vulnerabilities
- Dalfox: Extensive functionality and extremely fast thanks to the implementation in Go
- XSpear: Similar to Dalfox but based on Ruby
- domdig: Headless Chrome XSS Tester
XSS in HTML/Applications
Common Payloads
XSS using HTML5 tags
XSS using a remote JS
XSS in hidden input
DOM based XSS
Based on a DOM XSS sink.
XSS in JS Context
XSS in wrappers javascript and data URI
XSS with javascript:
XSS with data:
XSS with vbscript: only IE
XSS in files
** NOTE:** The XML CDATA section is used here so that the JavaScript payload will not be treated as XML markup.
XSS in XML
XSS in SVG
XSS in SVG (short)
XSS in Markdown
XSS in SWF flash application
more payloads in ./files
XSS in SWF flash application
XSS in CSS
XSS in PostMessage
If the target origin is asterisk * the message can be sent to any domain has reference to the child page.