XSS.md

June 29, 2025 ยท View on GitHub

  • In 2020 EdgeHTML was rebuilt as a Chromium-based browser Edge and now has the same results as Chrome

Content-Type that can be used for XSS

Conditions:

  • X-Content-Type-Options: nosniff
Content-TypeFormatBrowsersPoC
text/htmlhtmlChrome Firefox EdgeHTML Safarilink
application/xhtml+xmlxmlChrome Firefox EdgeHTML Safarilink
application/xmlxmlChrome Firefox EdgeHTML Safarilink
text/xmlxmlChrome Firefox EdgeHTML Safarilink
image/svg+xmlxmlChrome Firefox EdgeHTML Safarilink
text/xslxmlChrome Safarilink
text/xsl (UPD 2024)htmlChromelink
application/vnd.wap.xhtml+xmlxmlFirefox Safarilink
multipart/x-mixed-replacemultipart htmlFirefox Safarilink
text/rdf (UPD 2024)xmlFirefoxlink
application/rdf+xmlxmlFirefoxlink
application/mathml+xmlxmlFirefoxlink
text/vtthtmlEdgeHTMLlink
text/cache-manifesthtmlEdgeHTMLlink

Response Content-Type Tricks

TrickSeparatorsExampleBrowsersPoC
Multiple Content-Type,Fetch Spec: Example Extract a Mime Type
Content-Type: text/plain; x=x, text/html, foobar
Chrome Firefoxlink
Mime-type separators0x09 (Content-Type: text/html(xxxChrome Firefox0x09 0x28
Mime-type separators0x20Content-Type: text/html xxxChrome Firefox EdgeHTML0x20
Mime-type separators, ;Content-Type: text/html,xxxChrome Firefox EdgeHTML Safari0x2C