seamless bait-and-switch

From: Michal Zalewski <>
To: bugtraq <>
Subject: seamless bait-and-switch

Hello world,

Another whimsical browser proof-of-concept:

It seems that relatively few people realize that holding a JavaScript
handle to another window (either because we opened it, or because the
window was at some point displaying our content) allows the attacker
to tamper with the location and history objects at will, largely
bypassing the usual SOP controls. With some minimal effort and the
help of data: / javascript: URLs or precached pages, this can be
leveraged to replace content in a manner that will likely escape even
fairly attentive users.


PS. Obligatory plug:

Copyright © 1995-2021 All rights reserved.