Web Hack List

Later archive addition

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.

Record

Researcher
Gareth Heyes
Published by
PortSwigger Research
Date

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.