Firefox Denial of Service due to infinite while loop and console.log.
Categories
(Firefox :: Security, defect, P3)
Tracking
()
People
(Reporter: Mahtoshivnath709, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Hi There!
I hope you are well.
I found that In normal case when a tab keeps slowing down the browser.
Firefox will give an option to close or kill the tab.
But i found that when we run infinite while loop along with console.log, The Firefox doesn't show any sort of warning as well as memory usage keeps increasing.
Steps to reproduce the issue.
- Visit https://ac5dc81ed1f6db19224aba63562a3eee.m.pipedream.net
- click on
Click-Me
- You will Notice, your browser getting crashed.
For POC, Check attachment.
Thanks
Best Regards
r3dpars3c
Updated•11 months ago
|
Comment 1•11 months ago
|
||
A video is a video, it's not a Proof of Concept¹. Your linked pipedream.net testcase is a PoC.
The initial page is just a launch pad with a button that opens the second stage in a popup window so there are no surprises (very polite, thank you!). The popup file is simply:
<script>while(true){console.log(1)}</script>
The first time I tried this I did get the slow-script info bar and I used it to stop the script. The second time I tried it I never got that infobar. Memory is climbing rapidly in both parent and child processes, with at least 4x more memory being used in the parent (currently at 28Gb and 8Gb). Despite the looping script being console.log(1)
there is nothing being shown on the dev tools console. When I killed the child process the parent process slowly got rid of its excess memory use and became functional again. I didn't see a crash, but maybe on a Windows machine with lower amounts of memory it would get there faster.
¹ unless the security bug is in video processing
Reporter | ||
Comment 2•11 months ago
|
||
Right.
But when i tried to reproduce this on MAC, Mac seems to have safer memory writing methods, That still allowed to use the Firefox without closing and restarting.
Also, If you let the windows opened for a while, You will Notice, Firefox has crashed message. I saw this once when i just left Firefox opened.
Reevaluate this again.
Comment 3•11 months ago
|
||
The severity field is not set for this bug.
:serg, could you have a look please?
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Updated•8 months ago
|
Reporter | ||
Comment 5•8 months ago
|
||
Is this bug being patched or being left ignored ?
Comment 6•8 months ago
|
||
This issue is not being ignored, but put in our backlog. There are many DoS issues like this, e.g. Bug 1520489, Bug 1543318.
I can reproduce on Ubuntu. I do get a slow script warning, the browser freezes for a bit and then the tab crashes. After that the browser fully recovers and is responsive again.
Reporter | ||
Comment 7•8 months ago
|
||
will this issue be eligible for bounty or not ?
Comment 8•8 months ago
|
||
I'm not sure if DoS issues are in-scope for bounty. I've set the flag so the security team can take a look though.
Comment 9•7 months ago
|
||
DOS issues are out of scope for the bug bounty
Reporter | ||
Comment 10•7 months ago
|
||
but incase of browser it should've been rewarded.
Description
•