Skip to content
Info disclosure Disclosed report Intermediate

Firefox Focus (iOS): Recovery of previous searches across app closure/Browser Clear

Firefox Focus on iOS could recover previous search terms after the app was closed or data cleared, by manipulating the back/forward navigation and scroll position. An attacker with physical access could see past searches that should have been erased.

Matthew Remacle Follow

Originally disclosed on Mozilla

  • Fixed in 46 days
  • Paid in 53 days
  • Disclosed after 46 days
Text
How was this issue discovered:
- Walking up the stairs to my house I noticed a search term that I had looked up during a conversation with a coworker 3 days prior. I knew full well that I had cleared my history several times since that point in time. Took a screenshot and knew there had to be a way to reproduce the bug. 6 hours to first reproduction of bug, each time got easier and faster. 20h total. I can now consistently reproduce every time.

Hardware: iPhone 6 (16GB)
Software: Firefox Focus (Newest @ 8.1.1 via "About Firefox Focus") running on iOS 12.1.2

Summary: After performing a search for "Term X" and fully closing the app or clearing data through native button, Term X is recoverable in a later session

Steps to Reproduce (see video attachment for context):
1. Open Firefox Focus app
2. Tap on the text input bar at the top of the page
3. Input "donotrecover" and execute search (Actual search term is arbitrary)
4. Click on a search result
5. Wait for the page for search result to load
6. Tap the native app "Back" button to navigate to the previous page
7. Wait for the search for "donotrecover" to reload
8. Tap the native app "Forward" button to return navigation to the search result we selected
9. Wait for page to load
10. Double press the "Home" button on your iOS device in rapid succession
11. "Flick" the Firefox Focus app off the top of the screen to close it
//This process should clear all history and searches.
12. Open the Firefox Focus app
13. Tap on the text input bar at the top of the page
15. Input "jennifer aniston" and execute search (Actual search term is arbitrary)
16. Click on a search result
17. Wait for the page for search result to load
18. Tap the native app "Back" button to navigate to the previous page
19. When scrolling down the text bar at the top of the page collapses. When scrolling up the text bar reappears. Using one hand swipe up and down until you find the "sweet spot" where you can catch the text bar in a a middle-state where it appears slightly faded (see video attachment). Continue to hold the app in this scroll position with your first hand.
20. Slowly move you hand controlling the scroll position upward until the "Back navigation" button becomes visible
21. While keeping the first hand in place, rapidly tap the native navigate "Forward" and "Back" in an alternating order
22. Note that the search term "donotrecover" is populated into the text bar

Additional Details:
-Search results utilized are arbitrary, but some are harder to reproduce than others.
-Slow network conditions and large download sizes for search results make reproducing easier
-Using 2 hands to tap screen at same time is not necessary, just more consistent (anecdotally) in reproduction
-Text input box reads "donotrecover", but upon tapping to see actual URL shows a typical google search for "jennifer aniston".
-Recovery of search terms is not limited to n-1, I have achieved as far back as 4 x search-clear-searches
-Sometimes upon reproduction of bug the recovered search term is displayed in the text bar and the words "Frame Load Interrupted" are displayed in the browser window with a blue button containing the words "Try Again" located below it. Tapping "Trying again" has never resulted in any changes.
-Not reproducible in Firefox Focus Android. Upon performing a search the full search URL populates the text bar instead of a user friendly representation of what was typed.

The original report as published on Mozilla's Bugzilla, by Matthew Remacle. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

What the attacker needed

Physical access to the device; Firefox Focus on iOS; specific navigation and scroll actions

How it was found

  1. Open Firefox Focus and search for a term.
  2. Tap a search result and wait for it to load.
  3. Use the app's back button to return to the search results, then forward to the result again.
  4. Close the app completely by swiping it away from the app switcher.
  5. Reopen the app, perform a new search, and navigate to a result.
  6. Use back navigation, then rapidly alternate tapping forward and back while holding a specific scroll position to reveal the old search term.

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.

Firefox Focus is a privacy-focused browser that claims to clear your history when you close it. This report shows that under certain conditions, old search terms can reappear in the address bar even after you think they are gone. Someone with access to your unlocked phone could potentially see what you searched for previously.

What is Info disclosure?

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

More from Mozilla

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.