New issue
Advanced search Search tips

Issue 673178 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 674649
Owner: ----
Closed: Dec 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 2
Type: Bug



Sign in to add a comment

Security: Cannot close browser tab on iOS while showing modal alert

Reported by dmb...@gmail.com, Dec 11 2016

Issue description

Popup dialog box from an injection ad on Chrome for iOS cannot be closed without clicking the ad's "okay" button which loads malicious content. (If there is a way to close the dialogue without visiting the advertiser's website first, it is not obvious.)

See attached screen capture
 
IMG_1412.PNG
75.7 KB View Download
Labels: OS-iOS
Summary: Security: Cannot close browser tab on iOS while showing modal alert (was: Security: injection ad allows malicious content to be loaded on iOS)
To be clear, the attacker could have just sent you directly to the other page containing malware first. He shows the alert() prompt first only in the hopes of better tricking the reader into doing something unsafe on the upcoming the malicious page.

So the potential feature request here is "Allow the browser to dismiss a modal dialog AND block further script execution at the same time."

Comment 2 by dmb...@gmail.com, Dec 12 2016

Yes, thank you for clarifying. I agree. 

Comment 3 by wrengr@chromium.org, Dec 12 2016

Labels: Team-Security-UX Security_Severity-Medium Pri-1
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam -Security_Severity-Medium Type-Bug
Definitely not something we'd usually track as a vulnerability, but leaving it open in case anyone from Security UX thinks there's work to do here.

Comment 5 by baxley@chromium.org, Dec 15 2016

Mergedinto: 263326
Status: Duplicate (was: Unconfirmed)
This is a duplicate of another bug which was recently fixed. Thanks!
Labels: -Pri-1 Pri-2
Mergedinto: -263326 674649
This is actually different from  Issue 263326 .  That bug is for when pages are showing alerts in a loop, which prevented the user from being able to close the Tab and continue browsing.

The solution here of stopping JavaScript execution for a malicious ad is not feasible on iOS, as WKWebView does not expose API to stop a specific frame; only the entire web view.  Issue 674649 was created to track non-modal JavaScript dialogs, which will allow the user to close a Tab without having to interact with the JavaScript dialog, but this requires a bit of refactoring and cross-team communication, so will take some time to implement.  As elawrence pointed out though, if a malicious ad is already capable of displaying a JavaScript alert, interacting with the alert does not give the ad any extra permissions or information.

Sign in to add a comment