Skip to content
Access control Advisory Intermediate CVE-2025-12436

Policy bypass in Extensions (CVE-2025-12436)

The tabCapture permission did not block capture when a tab was redirected to a local file, allowing an attacker to leak the file's contents even without file permission. An attacker could exfiltrate local file contents to their server.

Luan Herrera Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 4.7 years

VULNERABILITY DETAILS
The "tabCapture" permission allows capturing the visible area of a given tab, but doesn't seem to block the capture when the tab gets redirected to a local file - which allows an attacker to leak its contents even though the file permission was not given.

VERSION
Chrome Version: 88.0.4324.150 (Official Build) (64-bit)
Operating System: Windows 10

REPRODUCTION CASE

  1. Download extension.zip and load it into Chrome.
  2. Make sure you have the file permission disabled for the extension.
  3. Click on the extension's icon on the Chrome toolbar.
  4. After a few seconds, the contents of file:///C:/ will be shown inside a video tag. This information can be exfiltrated to the attacker's server.

Here's an unlisted video demonstrating the issue:
https://youtu.be/sKfKbhOLDKo

CREDIT INFORMATION
Reporter credit: Luan Herrera (@lbherrera_)

The original report as published on the Chromium issue tracker, by Luan Herrera (@lbherrera_). Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

Chrome extensions can request the tabCapture permission, which allows an extension to capture the visible area of a given tab. The permission model around extensions is meant to be layered: a capture permission should not, on its own, grant access to content the extension has not otherwise been authorised to read. In particular, an extension that has not been granted file access should not be able to read the contents of file:// pages.

This report describes a policy bypass in which tabCapture did not block capture when a tab was redirected to a local file. The result was that an extension without the file permission could still leak the contents of a local file. The issue was tracked as CVE-2025-12436 and rated medium severity, with a bounty of 2000.00 USD under the Chrome VRP. It was disclosed on 2025-10-28.

Setup

The researcher tested on:

  • Chrome Version: 88.0.4324.150 (Official Build) (64-bit)
  • Operating System: Windows 10

The precondition for the bypass is that the extension holds the tabCapture permission but does not hold the file permission. The reproduction requires loading a test extension and confirming that file access is disabled for it before triggering the capture.

Finding it

The researcher noticed that tabCapture allows capturing the visible area of a given tab, but does not seem to block the capture when the tab gets redirected to a local file. That behaviour is wrong because the capture permission is being used to read content that the file permission was supposed to gate. The extension never received the file permission, yet the captured tab ends up displaying a file:// page whose contents are then available to the extension.

Exploitation

Step 1: Load the extension

Download extension.zip and load it into Chrome. The archive is not reproduced here; the report only names it as the artefact to load.

Step 2: Disable the file permission

Make sure the file permission is disabled for the extension. This is the condition that makes the behaviour a bypass: the extension is deliberately left without access to file:// content.

Step 3: Trigger the capture

Click on the extension's icon on the Chrome toolbar. This starts the capture flow.

Step 4: Observe the leaked file contents

After a few seconds, the contents of file:///C:/ are shown inside a video tag. The report states that this information can be exfiltrated to the attacker's server.

The researcher recorded a demonstration of the issue:

Or watch on YouTube
From the original on Chromium issue tracker

Root cause

The report attributes the behaviour to tabCapture not blocking capture when the tab is redirected to a local file. The report does not describe the specific code path or the check that is missing.

Impact

An extension that holds tabCapture but not the file permission can capture the visible area of a tab after it is redirected to a local file, and can then send that content to a remote server. In the demonstrated case the captured page was file:///C:/, the root of the system drive on Windows. The report frames the impact as leaking the contents of a local file despite the file permission not being granted. The severity assigned by the program was medium.

Fix

The report does not state what was changed to address the issue.

  • Redirect a captured tab to other file:// paths and check whether their contents appear in the capture. A positive result is any local file content rendered inside the extension's video element while the file permission is disabled.
  • Test other schemes that are gated by a separate permission and reachable through a redirect, and check whether capture follows the redirect without re-checking the permission. A positive result is captured content from a scheme the extension is not authorised to read.
  • Vary the timing between starting the capture and the redirect. A positive result is a capture that still shows the local file after the navigation completes.

This kind of bug tends to hide where one permission grants a capability (here, capturing a tab) and a second permission is supposed to restrict what that capability can reach (here, file access). The interesting question during review is whether the restriction is re-evaluated after a navigation or redirect, or only at the point where the capability is first granted.

Signals during recon include extensions whose permissions combine a broad capture or read capability with a narrower content permission, and any flow where a tab can be navigated to a restricted scheme after capture has started. The researcher showed impact by loading a real extension, disabling the file permission, triggering the capture from the toolbar, and demonstrating that file:///C:/ appeared inside a video tag, with the note that the content could be exfiltrated to an attacker's server. That combination of a concrete restricted resource and a working end-to-end demonstration is what made the case for the program.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

What happened, in plain words

Chrome lets you install small add-on programs called extensions. Each extension has to ask for permissions, which are like keys to different rooms in a building. One key, called tabCapture, lets an extension take a video-style snapshot of whatever is visible in a browser tab. Another key, the file permission, lets an extension read files stored on your own computer, such as pages opened with a file:// address.

The idea is that these keys are separate. Having the snapshot key should not also give you the file key. But the researcher found that if a tab was redirected to a local file, the snapshot key still worked: the extension could capture the local file's contents even though it had never been given the file key. That is a policy bypass: the rule that says "no file access without the file permission" was skipped.

The issue was tracked as CVE-2025-12436, rated medium severity, and paid a bounty of 2000.00 USD under the Chrome VRP. It was disclosed on 2025-10-28.

The pieces involved

What an extension is

An extension is a bundle of files (HTML, JavaScript, images, a manifest describing what it may do) that Chrome loads and runs alongside your browsing. Think of it as a small app that lives inside the browser. When you install one, Chrome shows you the permissions it requests, and you agree to them.

What a permission is

A permission is a named capability. Chrome checks permissions before letting an extension do something sensitive, such as reading the pages you visit or touching files on disk. Permissions are meant to be independent: granting one should not silently grant another.

What tabCapture does

tabCapture is the permission that lets an extension capture the visible area of a given tab. In everyday terms, it is like being allowed to point a camera at one browser tab and record what is on screen. The extension can then put that recording into a <video> element on its own page.

What the file permission does

By default, an extension cannot read pages whose address starts with file://. Those are pages loaded straight from your computer's disk, not from the internet. The file permission is the extra key that unlocks them. Without it, an extension should not be able to see the contents of a local file.

What a file:// URL is

A URL is the address you type in the address bar. http:// and https:// mean a page on a web server. file:// means a file on the machine itself. On Windows, file:///C:/ points at the root of the C: drive, the top level of the main disk.

What a redirect is

A redirect is when one address sends the browser to another address automatically. You click or load one thing, and the browser ends up somewhere else. The researcher's point is that the capture started on an ordinary tab, and then the tab was redirected to a local file.

What exfiltration means

Exfiltration is simply sending data out to somewhere else. Here it means the extension could take the captured picture of the local file and upload it to a server controlled by an attacker.

The setup

The researcher tested on:

  • Chrome Version: 88.0.4324.150 (Official Build) (64-bit)
  • Operating System: Windows 10

The important precondition is that the extension has tabCapture but does not have the file permission. That combination is what makes the result a bypass rather than normal behaviour. The reproduction needs a test extension loaded into Chrome, with file access confirmed to be off for it, before the capture is triggered.

Finding it

The researcher noticed that tabCapture allows capturing the visible area of a given tab, but does not seem to block the capture when the tab gets redirected to a local file. That is wrong because the capture permission is being used to read content that the file permission was supposed to gate. The extension never received the file permission, yet the captured tab ends up displaying a file:// page whose contents are then available to the extension.

Exploitation

Step 1: Load the extension

Download extension.zip and load it into Chrome. The archive is not reproduced here; the report only names it as the artefact to load. Loading it puts the test extension into the browser so it can be triggered.

Step 2: Disable the file permission

Make sure the file permission is disabled for the extension. This is the condition that makes the behaviour a bypass: the extension is deliberately left without access to file:// content. If the file permission were on, capturing a local file would be expected, and there would be nothing to demonstrate.

Step 3: Trigger the capture

Click on the extension's icon on the Chrome toolbar. This starts the capture flow. The toolbar icon is the normal way a user launches an extension's action, so clicking it is how the researcher made the extension begin capturing the tab.

Step 4: Observe the leaked file contents

After a few seconds, the contents of file:///C:/ are shown inside a video tag. The report states that this information can be exfiltrated to the attacker's server. In other words, the extension's own page ends up displaying a recording of the local disk root, and that recording could then be sent off the machine.

The researcher recorded a demonstration of the issue:

Or watch on YouTube
From the original on Chromium issue tracker

Why it works

The report attributes the behaviour to tabCapture not blocking capture when the tab is redirected to a local file. The report does not describe the specific code path or the check that is missing.

Impact

An extension that holds tabCapture but not the file permission can capture the visible area of a tab after it is redirected to a local file, and can then send that content to a remote server. In the demonstrated case the captured page was file:///C:/, the root of the system drive on Windows. The report frames the impact as leaking the contents of a local file despite the file permission not being granted. The severity assigned by the program was medium.

Fix

The report does not state what was changed to address the issue.

  • Redirect a captured tab to other file:// paths and check whether their contents appear in the capture. A positive result is any local file content rendered inside the extension's video element while the file permission is disabled.
  • Test other schemes that are gated by a separate permission and reachable through a redirect, and check whether capture follows the redirect without re-checking the permission. A positive result is captured content from a scheme the extension is not authorised to read.
  • Vary the timing between starting the capture and the redirect. A positive result is a capture that still shows the local file after the navigation completes.

This kind of bug tends to hide where one permission grants a capability (here, capturing a tab) and a second permission is supposed to restrict what that capability can reach (here, file access). The interesting question during review is whether the restriction is re-evaluated after a navigation or redirect, or only at the point where the capability is first granted.

Signals during recon include extensions whose permissions combine a broad capture or read capability with a narrower content permission, and any flow where a tab can be navigated to a restricted scheme after capture has started. The researcher showed impact by loading a real extension, disabling the file permission, triggering the capture from the toolbar, and demonstrating that file:///C:/ appeared inside a video tag, with the note that the content could be exfiltrated to an attacker's server. That combination of a concrete restricted resource and a working end-to-end demonstration is what made the case for the program.

Glossary

  • Extension: a small add-on program installed into Chrome that adds features and runs with permissions the user approves.
  • Permission: a named capability Chrome checks before letting an extension do something sensitive.
  • tabCapture: the Chrome extension permission that allows capturing the visible area of a tab.
  • File permission: the Chrome extension permission that allows reading file:// pages, which are files on the local computer.
  • file:// URL: an address that points to a file on the local machine rather than to a web server.
  • file:///C:/: on Windows, the address of the root of the C: drive.
  • Redirect: an automatic hand-off from one address to another while the browser is loading.
  • Policy bypass: a bug where a security rule exists but is not applied in some path, so the restriction can be avoided.
  • Exfiltration: sending data out to another location, typically a server controlled by an attacker.
  • Video tag: an HTML element (<video>) used to display video; here it is where the captured tab content appears.
  • CVE: a public identifier assigned to a specific security vulnerability.
  • Chrome VRP: Google Chrome's Vulnerability Reward Program, which pays researchers for reporting bugs.
  • Bounty: the money paid to a researcher for a valid report.
  • Severity: a rating of how serious a vulnerability is; here, medium.
  • Recon: the exploratory phase of security work where you look for promising targets and patterns.
  • Scheme: the first part of a URL, such as http, https or file, which says how the address should be handled.

More by Luan Herrera

View all

30 more disclosed reports, best first.

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.