Official nomination
Twitter misidentifying context
Escaping quotes is not enough inside a JavaScript event attribute, because HTML entities are decoded before the script runs. Twitter escaped the literal quote characters in an onclick handler, but the named and numeric entity spellings of an apostrophe, including unterminated ones, still closed the string and injected code. Escape entities too, using hex escapes.
Preserved copies · Gareth Heyes · Original publication ↗
Record
- Researcher
- Gareth Heyes
- Published by
- thespanner.co.uk
- Topic
- Other
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.