New issue
Advanced search Search tips

Issue 660716 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android , All
Pri: 3
Type: Bug



Sign in to add a comment

Combination of beforeunload and navigation in setTimeout blocks browser UI

Reported by mishra.d...@gmail.com, Oct 30 2016

Issue description

Hey Team , 

The bug i want to mention here is a denial of service attack that will not allow any kind of redirection on a page crafted by attacker where we have used hyper-links(ahref). 
The bug can be maliciously used by crafting an HTML file by an attacker and then sending it to the victim clearly showing there is a hyper-link that redirects to lets say (google.com) through status bar but it will not , instead cause denial of service , Chrome browser's also hang up and Crashes.
I have tested it on the Very Lasted Version of the Chrome from Android attached screen shot for References 

Reason:
The following script stops the page from being redirected:
window.onbeforeunload = function(){
//Unredirectable Page
setTimeout("window.location=document.location;",0);
}

Demo URL : http://hackies.in/Unredirect-Browsers-Test.html

Actual results:

It should redirect me to the new page , where as it don't redirect to a new page and the browsers Hangs up.


Expected results:

So dependency of JavaScript objects(window.document) on Href attribute should not be there.
Attached POC for References
 
POC_JS_Chrome.zip
113 KB Download
Labels: OS-Android
Cc: tedc...@chromium.org klo...@chromium.org
Status: Available (was: Unconfirmed)
Is this Android only? Can you repro on desktop Chrome?
Hi , 

I have tested this on desktop chrome, the browser does not crash however, the CPU process increases tremendously.

Further, i have tested this issue on various other versions of android chrome (Beta, Dev and canary), this issue impacts all the android chrome browsers.
Instead of creating new threads for other  browsers, i would like to include them in this thread itself.

Kindly consider.
Hereby, attaching screenshots for your perusal.

Thank you 
About-Phone.jpeg
292 KB View Download
Chrome-Android.jpeg
172 KB View Download
Chrome-Beta.jpeg
173 KB View Download
Chrome-Canary.jpeg
161 KB View Download
Chrome-Dev.jpeg
173 KB View Download
Desktop-Chrome.PNG
68.8 KB View Download
Desktop-Version-Chrome.PNG
21.9 KB View Download
Cc: danno@chromium.org
Components: Infra>Client>V8
Labels: -OS-Android OS-All
To be clear, you got "application not responding" dialog, Chrome didn't crash. This means something caused Chrome browser UI thread really busy.

danno@, can you help to take a look as it is JS related?


Hi , 
Sure no issues.

However I have tested the issue in Chrome for Ubuntu OS.
The browser seems to be crashing while testing.
Please suggest if I should create a new thread for this issue.
Also, attaching screenshot for your reference.

Thank You 
Ubuntu-Version.png
23.4 KB View Download
POC-Chrome-Not-Responding.png
117 KB View Download
Chrome-Crashes-ubuntu.png
82.4 KB View Download
Dear Team , 

Any updates on the above issue , please let me know !

Thank you 
Project Member

Comment 8 by sheriffbot@chromium.org, Dec 11 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Infra>Client>V8 Blink>JavaScript
Components: -Blink>JavaScript Blink
Labels: OS-Android
V8 already offers a hook to intercept the execution of endless loops. Maybe Clank should provide a better UI here?
Components: -Blink UI>Browser>Navigation Blink>Loader
Summary: Combination of beforeunload and navigation in setTimeout blocks browser UI (was: Dependency of JavaScript objects is Misconfigured Google Chrome Crashes.)
Labels: android-fe-triaged
Status: Available (was: Untriaged)

Sign in to add a comment