WebHackList

Additional research

Bypassing CSP using polyglot JPEGs

The article constructs a file that is simultaneously a valid JPEG and executable JavaScript, including a compact variant for upload limits. When uploaded to a same-origin path permitted by CSP, the polyglot can be loaded as script to bypass the policy.

Preserved copies · Gareth Heyes · Original publication ↗

GitHub MD fileGitHub PDF file

Record

Researcher
Gareth Heyes
Published by
PortSwigger Research
Date
Topic
XSS

In the archive

Tags

This page is the archive's own catalogue record. The research is the work of Gareth Heyes, first published at the original source. Preserved copies are kept so the citation survives its host.