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.
Originally disclosed on HackerOne
- Triaged in 25 hours
- Fixed in 26 days
- Paid in 26 days
- Disclosed after 4 months
Summary:
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:
- Open https://long-extended-subdomain-name-containing-many-letters-and-dashes.badssl.com/ in Brave Browser (Android)
- Click on the Brave Icon in the URL Bar/Omnibox to enable/disable Brave Shield for the website
- 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.
- 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:
Impact
URL confusion/spoof when user want to enable/disable Brave shields in Android
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 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
- Open a test site with a very long subdomain in Brave on Android.
- Tap the Brave icon in the address bar to open the Shields menu.
- 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.