Official nomination
Bypassing CSP for fun, no profit
A Content Security Policy bypass using UTF-7 and JSON. Any site with a JSON feed an attacker can influence can carry fully UTF-7 encoded script, because the encoding conceals quotes and other string characters from correct JSON escaping. Referencing the feed with a script tag and charset=utf-7 executes it as same-origin code, so CSP's restrictions do not apply.
Preserved copies · Gareth Heyes · Original publication ↗
Record
- Researcher
- Gareth Heyes
- Published by
- thespanner.co.uk
- Topic
- XSS
In the archive
- Nominated for the 2009 Top 10 Web Hacking Techniques · Open this archive record
Announcement provenance and preserved copies
Jeremiah Grossman · Source identity checked 2026-11-18; live availability may change. Historical material does not establish that nominations or voting are open.
Official results · Earlier publication URL ↗ · Preserved results (PDF)
Official nomination material · Earlier publication URL ↗
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.