Skip to content
Info disclosure Disclosed report Beginner CVE-2024-37406

Brave Android: Incorrect URL Eliding in Brave Shields Pop Up

The Brave Shields pop-up on Android did not elide long subdomains from the front of the displayed URL, unlike the desktop version. An attacker could use a long subdomain to confuse users about the actual domain they are interacting with.

jayateerthag Follow

Originally disclosed on HackerOne

  • Triaged in 25 hours
  • Fixed in 26 days
  • Paid in 26 days
  • Disclosed after 4 months

Summary:

Reference: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/url_display_guidelines/url_display_guidelines.md#simplify

Urls should be elided from front when displaying anywhere in the user interface as per standard security guidelines for most browsers in order to avoid url spoofing or confusing users with actual domain name, when long domain/subdomain is used. The desktop version(Windows) of Brave is working properly and url is elided correctly, while in android it's not. (Refer POC images for reference)

Products affected:

Brave for Android: 1.62.165 Chromium: M121

Steps To Reproduce:

  1. Open https://long-extended-subdomain-name-containing-many-letters-and-dashes.badssl.com/ in Brave Browser (Android)
  2. Click on the Brave Icon in the URL Bar/Omnibox to enable/disable Brave Shield for the website
  3. Notice that in the Brave shield UI which appears, the long subdomain is not elided from front properly in android which might lead to URL Confusion to the users.
  4. Although I have reported for Brave Shields only I suspect that this might affect in places like Brave Rewards too where URL might not be properly elided. (I am currently unable to test this feature as I am located in India which does not support Uphold Wallet integration)

Incorrect URL Eliding in Brave Rewards UI might be very severe vulnerability as users might get confused when donating BAT tokens to website. [I request Brave team to test point 4 & fix if vulnerable in the same ticket]

Note: As android is affected, IOS might also be affected, Kindly check & fix the same in all Mobile OS

Supporting Material/References:

https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/url_display_guidelines/url_display_guidelines.md#simplify

Impact

URL confusion/spoof when user want to enable/disable Brave shields in Android

Attachments

URLElideVulnerabilityAndroid.jpg
URLElideVulnerabilityAndroid.jpg From the original on HackerOne
Screenshot_(41).png
Screenshot_(41).png

The original report as published on HackerOne, by jayateerthag. 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 Android UI component that displays the URL in the Shields pop-up does not apply the same front-eliding logic as the desktop version.

Impact

Users could be confused about which domain they are enabling or disabling Shields for, and the reporter suspects a similar issue may affect Brave Rewards, potentially leading to mistaken donations.

What the attacker needed

Brave for Android; Victim visits a site with a long subdomain

How it was found

  1. Open a test site with a very long subdomain in Brave on Android.
  2. Tap the Brave icon in the address bar to open the Shields menu.
  3. Observe that the long subdomain is not shortened from the front in the Shields UI.

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.

When a browser shows a web address, it should shorten very long subdomains so the real domain is easy to see. Here, the Android version of Brave showed the full long subdomain in its Shields menu, which could trick someone into thinking they are on a different site. This is a user-interface problem, not a way to steal data directly.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by jayateerthag

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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.