New issue
Advanced search Search tips

Issue 662994 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 6773
Owner: ----
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows , Mac
Pri: ----
Type: Bug



Sign in to add a comment

Denial of service attack(window object) on Google Chrome browser

Reported by amarwagh...@gmail.com, Nov 7 2016

Issue description

VULNERABILITY DETAILS
The Google Chrome browser is vulnerable to window object based denial of
service attack. The Google Chrome browser fails to sanitize a check when window.close()
function is called in number of dynamically generated events.The function is called in a suppressed manner and kills the parent window directly by default which makes it vulnerable to denial of service attack.

When an attacker sends an html file to victim :-

<html>
<title>Google Chrome Window Object Remote Denial of Service.</title>
<head></head>

<body><br><br>
<h1><center>Google Chrome Window Object Remote Denial of Service</center></h1><br><br>
<h2><center>Proof of Concept</center></br></br> </h2>

<center>
Click the below link to Trigger the Vulnerability..<br><br>
<hr></hr>

<hr></hr>
<b><center><a href="javascript:window.close(self);">Google Chrome Window Object DoS Test POC</a></center>

</center>
</body>

</html>

Here window.close() method should be sanitized and should not close the current window.I tested it in Firefox(Linux and windows) and chrome(Linux platform) and this window object is validated there and current window doesn't close.

This security issue is a result of design flaw in the browser.Scripts must not close windows that were not opened by script,if script specific code is designed.
There must be a parent window confirmation check prior to close of window.
VERSION
Chrome Version: Version 54.0.2840.87 m (64-bit) + [stable]
Operating System: [Windows 10]

REPRODUCTION CASE
The attached HTML file code goes here (Or you can find attachment):


<html>
<title>Google Chrome Window Object Remote Denial of Service.</title>
<head></head>

<body><br><br>
<h1><center>Google Chrome Window Object Remote Denial of Service</center></h1><br><br>
<h2><center>Proof of Concept</center></br></br> </h2>

<center>
Click the below link to Trigger the Vulnerability..<br><br>
<hr></hr>

<hr></hr>
<b><center><a href="javascript:window.close(self);">Google Chrome Window Object DoS Test POC</a></center>

</center>
</body>

</html>







P.S : please let me know if you are not able to reproduce it.




 
Google_Chrome(window).html
492 bytes View Download
Cc: elawrence@chromium.org
Components: Blink>DOM
Labels: -Type-Bug-Security -Restrict-View-SecurityTeam OS-Windows Type-Bug
Thanks for the report. I'm removing security labels because we don't consider denial of service a security bug (https://www.chromium.org/Home/chromium-security/security-faq#TOC-Are-denial-of-service-issues-considered-security-bugs-).

I can't reproduce on Mac. Eric, do you think you could try on Windows?

elawrence, do you think you could confirm the repro on Windows?
I can't repro on Mac or on Windows with Chrome 55.2883 or 56.2912. The console shows the following note: "Scripts may close only the windows that were opened by it."
Correction: I can sometimes repro if the tab was opened via middle-click. That repro would be dupe of Issue 6773
Summary: Denial of service attack(window object) on Google Chrome browser (was: Security: Denial of service attack(window object) on Google Chrome browser)
Alternate repro (works on Windows and Mac):

1. Left-click on the "View" link in comment #1; This will open the POC HTML in a new tab (we're only doing this to get a new tab that was opened with a _blank target)
2. In that new tab, navigate to https://bayden.com/test/selfclose.htm
3. In that page, observe that the back arrow is active.
4. Click the "Test POC" link

Observe: Window closes, despite the fact that the back stack was not empty
Labels: OS-Mac
Status: Untriaged (was: Unconfirmed)
Hi guyz, Have u got the security issue?
Can you elaborate specifically on every step you used to reproduce the issue? How did you load the markup in question? Did you open it in a new tab?

Chrome does not triage Denial-of-Service issues as security bugs: https://www.chromium.org/Home/chromium-security/security-faq#TOC-Are-denial-of-service-issues-considered-security-bugs-

... and as such this has been classified as a functionality bug. It may have the same underlying cause as Issue 6773.
Yes I gusse its same that of 6773.

Comment 9 Deleted

Comment 10 by tkent@chromium.org, Nov 11 2016

Mergedinto: 6773
Status: Duplicate (was: Untriaged)
 Issue 680546  has been merged into this issue.
Here Is the proof 
GOOGLE(window) (1).html
489 bytes View Download
zzz.webm
8.1 MB View Download

Sign in to add a comment