Skip to content
Info disclosure Disclosed report Intermediate CVE-2026-16373

Firefox for Android — Private Browsing Clipboard IS_SENSITIVE Leak

Firefox for Android copies URLs from private browsing tabs to the Android clipboard without marking them as sensitive, so the URLs are kept in clipboard history and synced clipboard services. Anyone with brief physical access to the device could recover tokens or reset links from that history.

Satoki Tsuji Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 2 months

Summary

Firefox for Android contains multiple UI code paths that copy the current page URL from a private browsing tab into the Android clipboard without setting the android.content.extra.IS_SENSITIVE flag. As a result, private-tab URLs can be permanently recorded in Android clipboard history, OEM clipboard managers, and cloud-synced clipboard services.

This is an incomplete fix variant of CVE-2024-11702 (Bug 1918884). The Bug 1918884 fix was applied only to Clipboard.java in the GeckoView engine layer. Two Fenix UI layer copy paths were not addressed.

  • Affected versions: Firefox for Android stable (including versions current as of March 2026)
  • Verified on device: AQUOS SH-M24 / Android 14 (API 34) / Firefox stable
  • CWE: CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor)
  • Related: Incomplete fix of CVE-2024-11702 / Bug 1918884

Difference from Bug 1918884 (CVE-2024-11702)

Understanding how this finding differs from the known CVE is critical.

Axis Bug 1918884 / CVE-2024-11702 This finding
Fixed Yes (Firefox 133) Not fixed
Layer GeckoView (engine layer) Fenix (UI layer)
Triggering action In-page text selection → Copy URL bar Copy / Share sheet Copy link
Vulnerable file Clipboard.java BrowserToolbarMiddleware.kt / ShareController.kt
IS_SENSITIVE handling Pre-fix: absent → Post-fix: true Path 1: explicitly false / Path 2: absent (no extras at all)

Why the fix is incomplete

The Bug 1918884 fix added isPrivateData → IS_SENSITIVE=true handling inside Clipboard.java's setText() method. This fix only covers the GeckoView "in-page text selection copy" path.

The Fenix UI toolbar copy and Share sheet copy are independent code paths that do not go through Clipboard.java. The Bug 1918884 fix was never propagated to these paths.


Technical Details

Vulnerable path 1 — BrowserToolbarMiddleware.kt (URL bar Copy)

File: android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarMiddleware.kt

When the user long-presses the toolbar and selects "Copy", the following code executes:

Kotlin
is CopyToClipboardClicked -> {
    val selectedTab = browserStore.state.selectedTab
    val url = selectedTab?.readerState?.activeUrl ?: selectedTab?.content?.url
    clipboard.text = url   // no check of selectedTab?.content?.private
}

clipboard is a ClipboardHandler instance. The clipboard.text setter is implemented as:

File: android/android-components/components/support/utils/src/main/java/mozilla/components/support/utils/ClipboardHandler.kt

Kotlin
var text: String?
    get() { ... }
    set(value) {
        val clipData = ClipData.newPlainText("", value)
        // IS_SENSITIVE is hardcoded to false
        clipData.description.extras = PersistableBundle().apply {
            putInt(EXTRA_IS_SENSITIVE, 0)   // ← explicitly set to false
        }
        clipboardManager.setPrimaryClip(clipData)
    }

There is no check of selectedTab.content.private, and IS_SENSITIVE is always written as false.

Vulnerable path 2 — ShareController.kt (Share sheet Copy link)

File: android/fenix/app/src/main/java/org/mozilla/fenix/share/ShareController.kt

When the user opens the share sheet from a private tab and selects "Copy link to clipboard":

Kotlin
private fun copyClipboard() {
    val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
    val clipData = ClipData.newPlainText(getShareSubject(), getShareText())
    clipboardManager.setPrimaryClip(clipData)
    // no extras at all — IS_SENSITIVE flag is completely absent
}

This path does not even use ClipboardHandler. It calls raw ClipboardManager.setPrimaryClip() directly, so no extras are set on the ClipDescription and the IS_SENSITIVE flag is entirely absent. There is also no check of whether the session is private.

IS_SENSITIVE usage across the codebase

Comparing how IS_SENSITIVE is applied elsewhere in the same codebase makes the inconsistency clear.

Data type IS_SENSITIVE File
Passwords true (protected) SavedLoginsStorageController.kt:292
Passwords (login flow) true (protected) LoginsMiddleware.kt:170
Private tab in-page text selection copy true (protected) Clipboard.java:175 (Bug 1918884 fix)
Private tab URL (toolbar Copy) false (vulnerable) BrowserToolbarMiddleware.kt → ClipboardHandler.kt:51
Private tab URL (Share sheet Copy) absent (vulnerable) ShareController.kt

Passwords and in-page text from private tabs are correctly protected, yet the URL of the same private tab is not protected when copied through the UI toolbar or share sheet.


Root Cause

  1. Missing private-context check: Neither BrowserToolbarMiddleware nor ShareController checks whether content.private == true for the active tab before writing to the clipboard.

  2. Inconsistent IS_SENSITIVE application: The Bug 1918884 fix introduced isPrivateData → IS_SENSITIVE linkage in Clipboard.java, but that design was not propagated to other copy paths.

  3. ShareController bypasses ClipboardHandler: Because ShareController.copyClipboard() calls the raw system API directly, it does not benefit from any centralized sensitive-data handling that ClipboardHandler might provide.


Device Verification Results

Test environment

  • Device: AQUOS SH-M24
  • OS: Android 14 (API 34)
  • Browser: Firefox for Android stable

Procedure

  1. Open Firefox and create a private tab.
  2. Navigate to https://example.com/reset?token=secret123.
  3. Long-press the URL bar and select "Copy".
  4. Navigate to a different URL and copy some other text (overwriting the clipboard).
  5. Open Android clipboard history.

Result

After step 4 overwrote the clipboard, the private-tab URL (https://example.com/reset?token=secret123 including the token) was still present in clipboard history. With IS_SENSITIVE=true, the OS would exclude the entry from clipboard history. Because IS_SENSITIVE is false or absent, that protection does not apply.

IS_SENSITIVE confirmation via ClipboardMonitor app

The bundled PoC/app/ Android project (ClipboardMonitor) observes clipboard metadata in real time. Both the toolbar Copy and the share sheet Copy link were confirmed to show IS_SENSITIVE=false or IS_SENSITIVE=ABSENT in the monitor. Red entries in the app indicate vulnerable writes.


Impact

Affected users

  • Users on Android 13 (API 33) or higher with clipboard history enabled
  • Users of OEM clipboard managers that log history (Samsung, AQUOS, Xiaomi extended clipboards, etc.)
  • Users with cloud-synced clipboard features enabled (Gboard, SwiftKey, etc.)

Types of data exposed

Any URL that was open in a private tab at the time of the copy operation is exposed. Cases of elevated severity:

  • Password reset links (?token=xxxxx)
  • Invitation URLs (?invite=xxxxx)
  • URLs containing authentication tokens or session identifiers
  • Internal/intranet URLs that reveal network topology
  • URLs embedding personal information in query parameters

Concrete attack scenario

  1. A user opens a password reset email link in a private tab to keep it off the regular browsing history.
  2. The user long-presses the URL bar and copies the link to paste it elsewhere.
  3. That action records the URL (including the reset token) in clipboard history.
  4. Another person who briefly has physical access to the device can retrieve the reset token from clipboard history and take over the account.

Proof of Concept Usage

Method 1: ClipboardMonitor app (recommended, no root required)

Build the Android project in PoC/app/ with Android Studio and install it on a test device.

cd PoC/
./gradlew assembleDebug
adb install app/build/outputs/apk/debug/app-debug.apk

Launch the app and keep it in the foreground. Copy a URL from a private tab in Firefox. The app will display the IS_SENSITIVE status in real time. A red entry means the data was written without sensitive protection and will appear in clipboard history.

Method 2: run_poc.sh (guided adb script)

Run PoC/run_poc.sh to open the test URL in Firefox via adb and display step-by-step instructions.

Bash
chmod +x PoC/run_poc.sh
./PoC/run_poc.sh

Method 3: ClipCheck.java (rooted device only — direct IS_SENSITIVE inspection)

Compile PoC/ClipCheck.java and execute it on a rooted device via app_process to directly read and print the IS_SENSITIVE flag of the current clipboard item.


Recommended Fixes

Fix for Path 1 (BrowserToolbarMiddleware.kt)

Check whether the active tab is private and use ClipboardHandler.sensitiveText accordingly.

Kotlin
is CopyToClipboardClicked -> {
    val selectedTab = browserStore.state.selectedTab
    val url = selectedTab?.readerState?.activeUrl ?: selectedTab?.content?.url
    val isPrivate = selectedTab?.content?.private ?: false
    if (isPrivate) {
        clipboard.sensitiveText = url   // writes with IS_SENSITIVE=true
    } else {
        clipboard.text = url
    }
}

Fix for Path 2 (ShareController.kt)

Check the session's private state and attach IS_SENSITIVE=true extras when copying from a private tab.

Kotlin
private fun copyClipboard() {
    val clipboardManager = context.getSystemService(Context.CLIPBOARD_SERVICE) as ClipboardManager
    val clipData = ClipData.newPlainText(getShareSubject(), getShareText())
    if (isPrivateSession) {
        clipData.description.extras = PersistableBundle().apply {
            putInt("android.content.extra.IS_SENSITIVE", 1)
        }
    }
    clipboardManager.setPrimaryClip(clipData)
}

Systemic improvements

  1. Add an officially supported private-mode-aware API to ClipboardHandler and route all copy paths through it so the check cannot be bypassed by omission.
  2. Establish a lint rule or mandatory code-review checklist item ensuring that any new clipboard write path must explicitly handle the private-mode / IS_SENSITIVE case.
  3. When applying future fixes analogous to Bug 1918884, conduct a cross-cutting security review to identify all sibling code paths that require the same treatment.

The original report as published on Mozilla's Bugzilla, by Satoki Tsuji. 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

Root cause

Likely the private-mode handling added to the engine's clipboard code was never applied to the two UI-layer copy paths, one of which hardcodes the sensitive flag to false and the other bypasses the shared clipboard helper entirely.

Impact

Private-tab URLs, including password reset tokens and invitation links, could be recovered by someone with brief physical access to the device, though only on Android versions or clipboard managers that keep history.

What the attacker needed

Android 13+ or a clipboard-history app; user copies a private-tab URL; attacker has brief device access

The fix

The copy paths should check whether the tab is private and set the sensitive flag on the clipboard entry when it is; the text does not say a fix has shipped.

How it was found

  1. Open Firefox and create a private tab.
  2. Navigate to a test URL containing a token.
  3. Long-press the URL bar and select Copy.
  4. Copy other text elsewhere to overwrite the clipboard.
  5. Open Android clipboard history and observe the private URL is still stored.

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 an app puts text on the clipboard, Android lets it add a small label saying the content is private. If that label is set, the system keeps the text out of clipboard history and out of syncing tools. Here, two copy buttons in Firefox for Android forget to add the label for private tabs, so a private page address can linger where other people or apps can read it later.

What is Info disclosure?

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

More by Satoki Tsuji

View all

8 more disclosed reports, best first.

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.