Re: [Full-disclosure] Firefox onUnload + document.write() memory

看板Bugtraq作者時間19年前 (2007/02/28 00:49), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/5 (看更多)
On Tue, 27 Feb 2007, Richard Moore wrote: > <html> > <body onunload="location = self.location"> > <a href="http://slashdot.org/" rel="nofollow">http://slashdot.org/">http://slashdot.org/</a> > </body> > </html> Yeah, and the other way round: http://lcamtuf.coredump.cx/ietrap/, when used with FF 2.0.0.2, puts you on a page that: 1) Has URL bar data and favicon from the target site, 2) Views source of what you added with document.write(), 3) Displays as blank. Moreover, repeatedly setting document.location = "xxx"; on departure may land you at slashdot.org/xxx instead (meaning the update is being performed in the context of the new page). Although this looks like a Really Bad Thing (tm), I didn't succeed in modifying /ietrap/ to display a malicious payload (though feels like it's sooo close), nor in manipulating DOM in the latter example to do anything other than annoying the user (because 2.0.0.1 kept crashing ;-). Still, I'm not gonna sleep well until this is fixed. /mz
文章代碼(AID): #15v64100 (Bugtraq)
討論串 (同標題文章)
文章代碼(AID): #15v64100 (Bugtraq)