Skip to content

Latest commit

 

History

History
executable file
·
32 lines (27 loc) · 5.33 KB

XSS.md

File metadata and controls

executable file
·
32 lines (27 loc) · 5.33 KB
  • 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-Type Format Browsers PoC
text/html html Chrome Firefox EdgeHTML Safari link
application/xhtml+xml xml Chrome Firefox EdgeHTML Safari link
application/xml xml Chrome Firefox EdgeHTML Safari link
text/xml xml Chrome Firefox EdgeHTML Safari link
image/svg+xml xml Chrome Firefox EdgeHTML Safari link
text/xsl xml Chrome Safari link
text/xsl (UPD 2024) html Chrome link
application/vnd.wap.xhtml+xml xml Firefox Safari link
multipart/x-mixed-replace multipart html Firefox Safari link
text/rdf xml Firefox link
application/rdf+xml xml Firefox link
application/mathml+xml xml Firefox link
text/vtt html EdgeHTML link
text/cache-manifest html EdgeHTML link

Response Content-Type Tricks

Trick Separators Example Browsers PoC
Multiple Content-Type , Fetch Spec: Example Extract a Mime Type
Content-Type: text/plain; x=x, text/html, foobar
Chrome Firefox link
Mime-type separators 0x09 ( Content-Type: text/html(xxx Chrome Firefox 0x09 0x28
Mime-type separators 0x20 Content-Type: text/html xxx Chrome Firefox EdgeHTML 0x20
Mime-type separators , ; Content-Type: text/html,xxx Chrome Firefox EdgeHTML Safari 0x2C