New issue
Advanced search Search tips

Issue 877811 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 27
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: ----
Type: Bug



Sign in to add a comment

Security: Iframe Breaker with Redirect

Reported by tirasoft...@gmail.com, Aug 26

Issue description

I've found the way to redirect on any URL from the web page (in example from iframe). "Redirect blocked" does not appear at the URL field in browser.

VERSION
Chrome Version: Version 68.0.3440.106 (Official Build) (64-bit)
Operating System: Windows 10

Example:

File #1: open-iframe.html
<iframe src="iframe-breaker.html"></iframe>

File #2: iframe-breaker.html
<script>
function myFunction() {
	self.top.location.href = "https://www.yahoo.com/";
} 
if ((self.parent && !(self.parent === self)) && (self.parent.frames.length != 0)){
	window.onclick = myFunction;
	myFunction();
	document.getElementById('elementID').click();
} 
</script>


Best regards,

Pavel Voronov
admin@tirasoft.com



 
iframe-breaker.html
295 bytes View Download
open-iframe.html
43 bytes View Download
Components: UI>Browser>PopupBlocker
Labels: -Type-Bug-Security OS-Chrome OS-Linux OS-Mac OS-Windows Type-Bug
Status: Assigned (was: Unconfirmed)
Owner: csharrison@chromium.org
Status: WontFix (was: Assigned)
This is WAI, our redirect blocking only works for cross origin iframes.

I wrote up an example here, where we have an iframe to https://cr.kungfoo.net/bugs/framebust/iframe-breaker.html.

http://cr.kungfoo.net/bugs/framebust/open-iframe.html --> This should trigger the blocker because we are cross origin to the parent.
https://cr.kungfoo.net/bugs/framebust/open-iframe.html --> This should go through because we are same origin to the parent.
Cc: japhet@chromium.org
japhet FYI
Project Member

Comment 5 by sheriffbot@chromium.org, Dec 4

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment