Simon Willison’s Weblog

Subscribe
Atom feed for quipt

1 item tagged “quipt”

2008

quipt (via) Extremely clever idea: Cache JavaScript in window.name (which persists between page views and can hold several MB of data), but use document.referrer to check that an external domain hasn’t loaded the cache with malicious code for an XSS attack. UPDATE: Jesse Ruderman points out a fatal flaw in the comments.

# 4th July 2008, 3:49 pm / security, referrer, quipt, caching, optimisation, javascript, windowname, xss