Skip to content
DoS Disclosed report Beginner

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.

jackb898 Follow

Originally disclosed on HackerOne

  • 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:

  1. Open Brave
  2. Run the JS code confirm() somehow (Ex. go to my website I made that runs it: pentesting.x10host.com)
  3. Brave will crash

If you have questions or comments please reply here.

Thanks, kicker and smelt

The original report as published on HackerOne, by jackb898. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Open Brave
  2. Run the JavaScript code confirm() (for example by visiting a website that runs it)
  3. 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.

More by jackb898

View all

9 more disclosed reports, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.