Web Hack List

Collected research

Redefining Impossible: XSS without arbitrary JavaScript

An injection restricted to letters, digits, quote, plus, dot and backticks can still call methods through tagged templates, building an oracle that reveals whether a character of document.cookie matches a guess. Execution time, and later window.stop plus location.assign observed through an iframe load event, leak the cookie character by character.

Record

Researcher
Luan Herrera
Published by
PortSwigger Research
Date
Topic
XSS

In the archive

Related sources

Tags

This page is the archive's own catalogue record. The research is the work of Luan Herrera, first published at the original source. Preserved copies are kept so the citation survives its host; this one was last captured on .