DoS in Brave browser for iOS
The Brave browser for iOS crashed when a page created an object element with a text/html type. An attacker could make the browser unusable by loading such a page, as the crashed page would be reloaded on restart.
- Triaged in 11 days
- Fixed in 3 months
- Paid in 42 days
- Disclosed after 4 months
Summary:
Attacker could initiate DoS during page loading.
Products affected:
1.6 (18.05.17.13) Device iPhone 6s (iOS 11.3.1)
Steps To Reproduce:
PoC:
<body>
<script>
let o = document.body.appendChild(document.createElement('object'));
// application/json or application/pdf are valid values too
o.type = 'text/html' // <-- triggers DoS
</script>
</body>
The problem is the way Brave handles <object> tag with specific type attribute's values.
Looks like unsupported mimeTypes or non-string values don't trigger crash, so I assume, that only valid mimeTypes could be used. Image mimeTypes don't trigger DoS.
Supporting Material/References:
As I understood, Brave browser for iOS is a fork of Mozilla Firefox for iOS. Firefox isn't vulnerable, what makes this bug eligible.
Crash log attached. Screencast attached.
Impact
The first page loaded after the browser crash is the crashed page. The PoC is immediate and doesn't require any additional interaction, so it could make browser broken, until the tab will be closed in offline.
I suggest remembering the crashed page and ignoring it during browser opening. Probably, it could make all DoS attacks less dangerous.
I'm not sure that the trick with tab closing in offline is obvious for most users.
Attachments
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 mishandled object elements with certain MIME types, leading to a crash.
Impact
The browser could be made broken because the crashed page is reloaded on startup, and the attack requires no user interaction beyond loading the page.
What the attacker needed
Victim loads a malicious page; Brave browser for iOS
The fix
The reporter suggested remembering the crashed page and ignoring it when reopening.
How it was found
- Create an object element and add it to the page body.
- Set the object's type attribute to text/html.
- Load the page in Brave for iOS, which triggers a 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 web page can include an object element to show other content. In this browser, setting its type to text/html caused the browser to crash. After a crash, the browser reopened the same page, so the crash repeated until the tab was closed while offline.
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.