Disclosing wifi password via content provider injection in Xiaomi
A content provider on a Xiaomi device may have exposed saved Wi-Fi passwords without root access.
Published on vishwarajbhattrai.wordpress.com
The saved Wi-Fi passwords in Android are stored in the data\misc\wifi directory which can only be accessed if you have root access. So in general you cannot list or access the /data directory until and unless you have root access or the files are world readable writable .
The full write-up lives on its author's site
It belongs to its author, 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 content provider was exported without proper permission checks, allowing any app to query it.
Impact
Saved Wi-Fi credentials may have been retrievable without root, potentially exposing network access.
What the attacker needed
Xiaomi device with vulnerable provider
The fix
The provider should be protected so Wi-Fi passwords are not exposed without root access.
How it was found
- The query may reveal saved Wi-Fi password details.
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 through content providers. Wi-Fi passwords are normally in a protected area only root can access; here a provider may have exposed them.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.