Javascript confirm() crashes Brave on PC
Calling the JavaScript confirm() function in Brave on Windows causes the browser to crash. An attacker could host a page that calls confirm() to crash a visitor's browser.
- Disclosed after 3 days
Summary by the researcher
Glad this kick-started my interest in penetration testing! Pretty interesting bug somewhere deep in the source code.
The report
Hello Brave, https://hackerone.com/smelt and I found a glitch for Brave on Windows.
Summary:
If you run the javascript code confirm(), Brave will crash. This is major for a glitch, because people may be visiting websites that have confirm messages and Brave will suddenly and unexpectedly crash for them.
Products affected:
Doesn't effect Mobile Tested and crashed Windows Brave browser
Steps To Reproduce:
- Open Brave
- Run the JS code confirm() somehow (Ex. go to my website I made that runs it: pentesting.x10host.com)
- Brave will crash
If you have questions or comments please reply here.
Thanks, kicker and smelt
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 a memory-safety or handling flaw in the browser's native code that processes the confirm() dialog.
Impact
A malicious or compromised website could crash a visitor's Brave browser on Windows; mobile versions were not affected.
What the attacker needed
Victim uses Brave on Windows; Victim visits a page that calls confirm()
How it was found
- Open Brave
- Run the JavaScript code confirm() (for example by visiting a website that runs it)
- Brave will crash
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 website can run small programs called JavaScript. One built-in function, confirm(), normally shows a pop-up asking you to click OK or Cancel. In this version of the Brave browser on Windows, calling that function made the whole browser close unexpectedly.
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.