[DOS] Browser hangs on loading the code snippet
A web page that repeatedly calls location.reload() and opens a new window causes the Brave browser on Linux to hang, preventing the user from closing the tab. The attacker could use this to cause a denial of service on the victim's browser.
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 4 months
- Paid in 9 days
- Disclosed after 18 months
Summary:
Basically the function location.reload() is causing browser to hang as browser is not able to handle multiple reloads but similar issue cannot be seen in Firefox and chrome as i am able to close the current tab.
Products affected:
Latest brave browser in linux.
Steps To Reproduce:
Use the below code and save it as html file and then open it up on browser :-
<script> open(""); setInterval('location.reload()',1); </script>Or
open up pop.html that i have attached
Supporting Material/References:
i have attached html file that contains the code causing denial of service,
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the browser does not limit or throttle rapid repeated page reloads combined with window.open calls, leading to resource exhaustion.
Impact
The browser becomes unresponsive and the user cannot close the tab, causing a denial of service; the issue was not observed in Firefox or Chrome.
What the attacker needed
Victim opens a malicious HTML file; uses Brave browser on Linux
How it was found
- Save the provided HTML code as a file.
- Open the file in the Brave browser on Linux.
- Observe that the browser hangs and the tab cannot be closed.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A simple web page can freeze Brave on Linux by reloading itself very quickly after opening a window, so the user cannot close the tab, causing a denial of service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.