Skip to content
DoS Disclosed report Beginner

[DOS] denial of service using code snippet on brave browser

A code snippet that repeatedly appends characters to the URL causes the Brave browser to hang and eventually crash the renderer. An attacker could use this to deny service to users who visit a malicious page.

tikoo_sahil Follow

Originally disclosed on HackerOne

  • Triaged in 7 days
  • Fixed in 5 months
  • Paid in 10 days
  • Disclosed after 18 months

Summary:

brave browser hangs due to no validation for a code snippet causing denial of service to users.

Products affected:

latest brave browser in linux

Steps To Reproduce:

code snippet:-

  1. <script>window.location+='?\u202a\uFEFF\u202b';</script>

OR

  1. <iframe style="width:0;height:0;border:0" src="data:text/html;charset=utf-8,<script>window.location+='?'+window.location.toString().split('');</script>">

Note :- both these issues have been fixed in google chrome and firefox gives some delay time to close tabs.

This is a variation of "a = a + a" that creates a very long URL. on my machine the renderer eventually is killed when the URL gets too large.

Supporting Material/References:

i have attached both html files you can open them up and see browser hang.

The original report as published on HackerOne, by tikoo_sahil. 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 the browser does not limit how large the URL can become when a script repeatedly appends to it, leading to resource exhaustion.

What the attacker needed

Victim uses Brave browser on Linux; victim visits a malicious page

The fix

The issue could be addressed by adding validation or limits to prevent unbounded URL growth, as other browsers have done.

How it was found

  1. Open the provided HTML file in Brave browser on Linux.
  2. The script inside the file repeatedly appends characters to the current URL.
  3. The URL grows very large, causing the browser to hang and the renderer to be killed.

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.

This report shows that a simple script can make a web browser freeze by making the address bar grow endlessly. When the browser tries to handle the ever-growing address, it runs out of resources and stops working, which is 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.

More by tikoo_sahil

View all

4 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.