Skip to content
Access control Advisory Advanced CVE-2026-78967

Missing authorization in BFCache (CVE-2026-78967)

The clipboard Mojo interface in Chromium does not check whether the calling document is active, so a page kept in the back/forward cache can still call clipboard methods. A compromised renderer could then read the clipboard after the user interacts with the new page, silently overwrite it, or keep receiving clipboard change notifications.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Flapjack, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A compromised renderer in the Back/Forward Cache (BFCache) can potentially read, write, or monitor the system clipboard. The ClipboardHostImpl Mojo interface lacks active document checks, and background pages can exploit tab-wide user interaction states to bypass clipboard read permissions.

Affected files:

  • content/browser/renderer_host/clipboard_host_impl.cc

Estimated timestamp from git blame: 2021-02-12

Description

The ClipboardHostImpl class (content/browser/renderer_host/clipboard_host_impl.cc) handles clipboard-related Mojo IPCs from renderer processes. It inherits from DocumentService, which ties the Mojo connection to a RenderFrameHost. However, when a document enters the Back/Forward Cache (BFCache), the RenderFrameHost is preserved, and the Mojo connection is not severed or paused.

Because ClipboardHostImpl does not verify if the calling document is actively displayed (e.g., using render_frame_host().IsActive()), a compromised renderer can continue to invoke clipboard methods from the background.

This lack of lifecycle checking exposes three distinct potential attack vectors:

  1. Bypassing Paste Restrictions (Read): Operations like ReadText require a user gesture. The browser checks this via IsRendererPasteAllowed(), which delegates to ChromeContentBrowserClient::IsClipboardPasteAllowed(). This function checks WebContents::HasRecentInteraction(). Crucially, interaction state is tracked at the tab (WebContents) level. If the user interacts with the newly loaded, active page in the same tab, the BFCached document inherits this interaction state and can silently read the clipboard.
  2. Silent Clipboard Writes: Methods like WriteText and CommitWrite lack both user interaction checks and active document checks in the browser process. A background page can silently overwrite the user's clipboard.
  3. Silent Clipboard Monitoring: A background page can call RegisterClipboardListener(). Because there are no active checks during registration or when events fire (OnClipboardDataChanged), the BFCached renderer receives continuous, asynchronous notifications whenever the user copies new data across the OS.

Suggested Attacker Steps

Note: These are potential steps based on code analysis; a working proof of concept has not been executed.

  1. An attacker lures the victim to a malicious website.
  2. The attacker exploits a separate memory corruption vulnerability to gain Remote Code Execution (RCE) within the sandboxed renderer process.
  3. The victim navigates away to a legitimate site in the same tab. Chrome places the malicious page into the BFCache.
  4. The attacker uses their RCE to bypass the renderer's application-level freeze, keeping their threads alive.
  5. To steal clipboard data (Read): The user clicks or types on the new, legitimate page. Within 5 seconds, the attacker's BFCached renderer sends a ReadText Mojo IPC. The browser process checks the tab's interaction state, sees the recent interaction, and returns the clipboard contents to the attacker.
  6. To monitor the clipboard: The attacker sends a RegisterClipboardListener IPC from the BFCache and silently receives all subsequent clipboard changes.

Suggested Fix

The most direct fix is to ensure ClipboardHostImpl does not process IPCs for inactive documents. Add checks at the beginning of all IPC entry points in content/browser/renderer_host/clipboard_host_impl.cc:

C++
if (!render_frame_host().IsActive()) {
  // Run callback with empty/default data or report a bad message.
  return;
}

Alternatively, consider evaluating if the Mojo Binder Policy for ClipboardHost should be updated to defer or cancel messages when a document enters the BFCache, similar to how it handles Prerendering.

Evaluated with Chrome root at commit: b7d0c4d810da1b31400f198c70d9720fc8f0e5a0


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 clipboard service ties its connection to a frame but never checks whether that frame's document is still active, so cached pages keep full clipboard access.

Impact

A compromised renderer could read clipboard contents within the interaction window, silently overwrite the clipboard, or monitor future copies; the report notes no working proof of concept was executed.

What the attacker needed

Compromised renderer (separate RCE); victim visits attacker page; victim navigates away in same tab; user interacts with new page (for read)

The fix

The clipboard service should reject calls from inactive documents, or the Mojo binder policy should defer or cancel messages when a document enters the back/forward cache.

How it was found

  1. Lure the victim to a malicious website.
  2. Exploit a separate memory corruption bug to run code inside the sandboxed renderer.
  3. Have the victim navigate to a legitimate site in the same tab so the malicious page goes into the back/forward cache.
  4. Use the code execution to keep the cached page's threads alive past the freeze.
  5. After the user interacts with the new page, send a clipboard read request from the cached page.
  6. Alternatively register a clipboard listener from the cached page to receive later clipboard changes.

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 you leave a page, the browser may keep it in memory so going back is fast; this is called the back/forward cache. The report says such a hidden page can still talk to the browser's clipboard service, because the service never checks that the page is the one currently on screen. The catch is that the attacker first needs to break into the browser's sandboxed page process, which is a separate, serious bug.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.