Private browsing browser traces (android) in browser.db and wal file
Private browsing mode on Firefox for Android left traces of visited domains in the browser.db and browser.db-wal files. An attacker with root access could recover these domains, undermining the privacy guarantee of incognito mode.
- Fixed in 22 days
- Paid in 32 days
- Disclosed after 22 days
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Firefox for Android
Steps to reproduce:
I visited some sites (9gag.com, google.com, etc.) in inkognito mode on my Firefox client on Android (Ver. 48.0), 'grep'ed those domains from all files in "/data/data/org.mozilla.firefox/files/mozilla/****.default/" and got binary mathes in the files "browser.db" and "browser.db-wal". Although this requires root, still incognito mode should provide some protection, at least it shouldn't leave traces in persistant files.
Actual results:
root@A0001:/data/data/org.mozilla.firefox/files/mozilla/baro4nyl.default # grep 9gag* Binary file browser.db-wal matches root@A0001:/data/data/org.mozilla.firefox/files/mozilla/baro4nyl.default #
Expected results:
root@A0001:/data/data/org.mozilla.firefox/files/mozilla/baro4nyl.default # grep 9gag* root@A0001:/data/data/org.mozilla.firefox/files/mozilla/baro4nyl.default #
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's history database (browser.db) and its write-ahead log (WAL) were not properly cleared or excluded when private browsing sessions ended, leaving domain names in persistent storage.
What the attacker needed
Root access to the device; use of private browsing mode
How it was found
- Visit websites in private browsing mode on Firefox for Android.
- Use grep to search for the visited domains in all files under the Firefox profile directory.
- Observe that the domains appear in browser.db and browser.db-wal.
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.
Private browsing (incognito) is supposed to leave no record of the websites you visit. This report shows that on Firefox for Android, the names of sites visited in private mode were still saved in a database file on the phone. Someone with deep access to the phone (root) could read that file and see which sites were visited.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.