Skip to content
Info disclosure Write-up Beginner

Content provider injection in Xiaomi stock browser

The Xiaomi stock browser exposed a content provider that any third-party app could query to read the user's browser search history. An attacker with a malicious app installed could access that history without permission.

Vishwaraj Bhattrai Follow

Published on vishwarajbhattrai.wordpress.com

The original lives on vishwarajbhattrai.wordpress.com

We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the browser's search history content provider was exported without a permission check, allowing any installed app to query it.

What the attacker needed

Xiaomi stock browser 10.2.4.g; attacker app installed on the device

The fix

The issue was fixed in a newer version of the browser after the vendor reproduced it.

How it was found

  1. Use Drozer to query the browser's search history content provider.

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 write-up has not been written yet. The Original tab links to the source.

Android apps can share data with other apps through components called content providers. This browser left one of those providers open, so any other app on the phone could ask it for the user's browsing history. The fix was to restrict who can query that provider.

What is Info disclosure?

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

More by Vishwaraj Bhattrai

View all

4 more disclosed reports, best first.

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.