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

Missing authorization in Extensions (CVE-2026-113231)

A Chrome extension with certain permissions could read arbitrary local files and capture full desktop screenshots without requiring local file access. The attack used chrome://feedback as an intermediary to obtain activeTab permission and extract embedded screenshots.

Luan Herrera Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Medium View original
  • Fix shipped in 9 months

VULNERABILITY DETAILS

It was discovered that a Chrome extension that is granted the permissions activeTab, pageCapture, and either declarativeNetRequest or downloads can read arbitrary local files and capture full desktop screenshots without requiring local file access.

This issue is a variant of the local file read issue described in https://issues.chromium.org/issues/40061772. But instead of directly attempting to capture file:// URLs via activeTab, this attack chain uses chrome://feedback as an intermediary.

The chrome://feedback page automatically captures a screenshot of the user's entire desktop and embeds it into the DOM, which the extension can then exfiltrate.

At a high level, the attack leverages the following behaviors:

  1. When an extension keyboard shortcut is triggered, the activeTab permission can be granted even if the corresponding window is off-screen (issue 477327257). Alternatively, by foregrounding a window at the same moment the user completes the shortcut, the same result can be achieved.
  2. Extensions are allowed to open chrome:// URIs, and activeTab can be granted to them.
  3. The chrome://feedback page automatically captures the user's entire desktop and embeds it into the DOM.
  4. The pageCapture.saveAsMHTML() function serializes the full page, including embedded blob: resources.
  5. Embedded desktop screenshots can be extracted from the resulting MHTML archive, yielding a full desktop capture without the appropriate permissions.
  6. An extension can open arbitrary file:// URLs without file access permissions using either declarativeNetRequest or the downloads / downloads.open APIs.

Obtaining activeTab on a chrome://feedback page

To capture internal Chrome pages, the extension must cause chrome://feedback to be the active tab at the moment an extension command is triggered, thereby granting the activeTab permission to it.

I identified two methods to accomplish this.

Method A: Off-screen window bypass (issue 477327257)

The PoC uses an off-screen window bypass to load chrome://feedback outside of the visible display area. Due to integer division in WindowBoundsIntersectDisplays, a window can be moved completely outside of all displays while still being considered visible.

This allows chrome://feedback to load and remain active without user awareness. When the extension command is triggered, activeTab is granted to this hidden window.

Method B: Timed windows focus

Even without relying on the off-screen window issue, the same outcome can be achieved via precise timing.

  1. The extension opens chrome://feedback as a minimized window.
  2. The extension listens for partial key presses (e.g. Ctrl+Shift).
  3. When detected, it brings the chrome://feedback window to the foreground.
  4. When the user completes the shortcut (e.g. presses S), activeTab is granted to chrome://feedback.

The activeTab permission allows capture of chrome:// pages

Once chrome://feedback becomes the active tab, the activeTab permission allows access to Chrome internal pages by design.

The CanCaptureVisiblePage logic explicitly permits capture of chrome:// origins when activeTab is present.

C++
// extensions/common/permissions/permissions_data.cc
bool allowed_with_active_tab =
    origin_url.SchemeIs(content::kChromeUIScheme) ||
    origin_url.SchemeIs(kExtensionScheme) ||
    document_url.SchemeIs(url::kDataScheme) ||
 extension_urls::IsWebstoreOrigin(origin);

if (!allowed_with_active_tab) {
  if (error)
    *error = access_error;
  return false;
}

if (has_active_tab)
  return true;

As a result, once either of the methods above succeeds in activating chrome://feedback, the extension can invoke APIs such as pageCapture against it.

The chrome://feedback embeds a full desktop screenshot

The chrome://feedback page automatically captures the user's entire desktop using getUserMedia with chromeMediaSource: "screen".

C++
// chrome/browser/resources/feedback/js/take_screenshot.ts
FeedbackBrowserProxyImpl.getInstance().getUserMedia({
    video: {
        mandatory: {
            chromeMediaSource: 'screen',
            maxWidth: 4096,
            maxHeight: 2560
        }
    }
});

The resulting screenshot is rendered into the DOM as an <img> element backed by a blob: URL.

Extracting the desktop screenshot via pageCapture

With activeTab on chrome://feedback, the extension can call the following function.

JavaScript
// background.js
chrome.pageCapture.saveAsMHTML({ tabId: feedbackTabId }, async (mhtmlData) => {
  const text = await mhtmlData.text();
  const regex =
    /Content-Type:\s*image\/png[\s\S]*?Content-Location:\s*blob:chrome:\/\/feedback\/[^\r\n]+\r?\n\r?\n([\s\S]*?)(?=\r?\n------MultipartBoundary)/;

  const match = text.match(regex);
  if (match && match[1]) {
    const base64Data = match[1].replace(/[\r\n\s]/g, '');
    const screenshotUrl = 'data:image/png;base64,' + base64Data;
    // Full desktop screenshot extracted
 }
});

The MHTML archive contains all embedded resources, including the desktop screenshot blob, allowing the extension to fully reconstruct the image.

Opening arbitrary local files

In addition to the screenshot issue, the attack requires a local file to be opened at the moment the chrome://feedback page is reloaded. This ensures that the desktop screenshot captures the contents of the targeted local file.

I also identified two ways to achieve this.

Method A: declarativeNetRequest redirect to file://

The declarativeNetRequest API validates redirect URLs but only explicitly blocks the javascript: scheme.

C++
// extensions/browser/api/declarative_net_request/indexed_rule.cc
if (redirect.url) {
 GURL redirect_url = GURL(*redirect.url);
  if (!redirect_url.is_valid()) {
    return ParseResult::ERROR_INVALID_REDIRECT_URL;
  }

  if (redirect_url.SchemeIs(url::kJavaScriptScheme)) {
    return ParseResult::ERROR_JAVASCRIPT_REDIRECT;
  }

  indexed_rule->redirect_url = std::move(*redirect.url);
  return ParseResult::SUCCESS;
}

As a result, redirect rules may point to file:// URLs and cause local files to be rendered inside tabs.

Method B: Downloading and opening an HTML file via downloads.open

The same result can be achieved without the declarativeNetRequest permission. By using the downloads permission, an HTML file containing the following HTML can be automatically downloaded.

HTML
<script>
  location = "file:///C:/target/file.txt";
</script>

The extension can then call chrome.downloads.open() on the downloaded file. When opened, the HTML file automatically redirects the tab to the targeted local file, which is then rendered by the browser.

BISECT

The initial bisect indicated that the regression was introduced after revision 885350 and no later than 885361 (https://chromium.googlesource.com/chromium/src/+log/0cbccf3b2fa2681d62137763e99c3e7414a948d9..63d951cf4f679c28468c5876f8ac708d03cfbeb5).

Upon reviewing the changes, it became clear that the relevant commit was https://chromium.googlesource.com/chromium/src/+/99860a6c18a362d054b2950af11cd393ee8f71a1, which enabled a field trial for the WebUI Feedback component. I then reran the bisect with the corresponding field trial explicitly enabled.

The new bisect narrowed the range to the following set of changes: https://chromium.googlesource.com/chromium/src/+log/0e93354c6108ed5d8e54e9ade93a06932dd7871a..ec84e11c2dfa4ba8443aa3021e3c8bdce3c2d50e.

Further investigation showed that the underlying behavior was introduced by https://chromium.googlesource.com/chromium/src/+/3ea5768ca199f824699e4b9860fac15d1d613851.

It is worth noting that this bisect was performed using a reduced test case that relies only on the timing and downloads permission method, given that they do not depend on any additional vulnerabilities that may have been introduced later.

This allowed me to identify the earliest point at which the attack chain became exploitable.

VERSION

Chrome Version: 144.0.7559.9
Chrome Version: 145.0.7632.5
Chrome Version: 146.0.7635.3
Chrome Version: 146.0.7646.0
Operating System: Windows 11 24H2

REPRODUCTION CASE

  1. Download manifest.json, background.js and rules.json.
  2. Place those files in the same directory and load the extension into Chrome.
  3. Press Ctrl+Shift+S.
  4. A tab is automatically opened containing an image of the user's desktop, including the contents of the targeted local file. Note that the image is displayed only for proof-of-concept purposes. A malicious extension could silently exfiltrate the data without any user-visible indication.

I have also attached a video reproducing the attack (repro.mp4).

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. 8 min read.

Context

Chrome extensions run with a permission model in which activeTab is a temporary grant: when the user invokes the extension (for example through a keyboard shortcut), the extension receives access to the tab that is active at that moment, without a persistent host permission. pageCapture lets an extension serialise a tab into an MHTML archive. declarativeNetRequest lets an extension rewrite and redirect network requests, and downloads (with downloads.open) lets it download and open files.

The chrome://feedback page is Chrome's built-in feedback form. As part of that form it automatically captures a screenshot of the user's entire desktop and embeds it into the DOM as an <img> element backed by a blob: URL.

The report describes a chain in which an extension holding activeTab, pageCapture, and either declarativeNetRequest or downloads can read arbitrary local files and capture full desktop screenshots without any local file access permission. It is a variant of the local file read issue tracked as https://issues.chromium.org/issues/40061772, but instead of trying to capture file:// URLs directly through activeTab, it uses chrome://feedback as an intermediary.

Setup

The attack was reproduced on Windows 11 24H2 against the following Chrome versions:

Chrome version
144.0.7559.9
145.0.7632.5
146.0.7635.3
146.0.7646.0

The reproduction case requires three files, manifest.json, background.js and rules.json, placed in the same directory and loaded into Chrome as an unpacked extension. The user then presses Ctrl+Shift+S.

Finding it

The issue is a variant of the local file read issue tracked as https://issues.chromium.org/issues/40061772, using chrome://feedback as an intermediary instead of capturing file:// URLs directly.

The chain relies on six behaviours:

  1. When an extension keyboard shortcut is triggered, the activeTab permission can be granted even if the corresponding window is off-screen (issue 477327257). Alternatively, by foregrounding a window at the same moment the user completes the shortcut, the same result can be achieved.
  2. Extensions are allowed to open chrome:// URIs, and activeTab can be granted to them.
  3. The chrome://feedback page automatically captures the user's entire desktop and embeds it into the DOM.
  4. The pageCapture.saveAsMHTML() function serialises the full page, including embedded blob: resources.
  5. Embedded desktop screenshots can be extracted from the resulting MHTML archive, yielding a full desktop capture without the appropriate permissions.
  6. An extension can open arbitrary file:// URLs without file access permissions using either declarativeNetRequest or the downloads / downloads.open APIs.

Exploitation

Step 1: get activeTab onto chrome://feedback

To capture internal Chrome pages, the extension must make chrome://feedback the active tab at the moment an extension command is triggered, which grants activeTab to it. The researcher identified two methods.

Method A: off-screen window bypass (issue 477327257)

The proof of concept loads chrome://feedback in a window placed outside the visible display area. Due to integer division in WindowBoundsIntersectDisplays, a window can be moved completely outside all displays while still being considered visible. The page therefore loads and remains active without the user being aware of it, and when the extension command fires, activeTab is granted to this hidden window.

Method B: timed window focus

Without relying on the off-screen issue, the same outcome is reached by timing:

  1. The extension opens chrome://feedback as a minimised window.
  2. The extension listens for partial key presses (for example Ctrl+Shift).
  3. When one is detected, it brings the chrome://feedback window to the foreground.
  4. When the user completes the shortcut (for example presses S), activeTab is granted to chrome://feedback.

Step 2: confirm that activeTab reaches chrome:// pages

Once chrome://feedback is the active tab, activeTab allows access to Chrome internal pages by design. The CanCaptureVisiblePage logic explicitly permits capture of chrome:// origins when activeTab is present:

C++
// extensions/common/permissions/permissions_data.cc
bool allowed_with_active_tab =
    origin_url.SchemeIs(content::kChromeUIScheme) ||
    origin_url.SchemeIs(kExtensionScheme) ||
    document_url.SchemeIs(url::kDataScheme) ||
 extension_urls::IsWebstoreOrigin(origin);

if (!allowed_with_active_tab) {
  if (error)
    *error = access_error;
  return false;
}

if (has_active_tab)
  return true;

With either method succeeding, the extension can invoke APIs such as pageCapture against the feedback page.

Step 3: understand what the feedback page embeds

chrome://feedback captures the entire desktop using getUserMedia with chromeMediaSource: "screen":

C++
// chrome/browser/resources/feedback/js/take_screenshot.ts
FeedbackBrowserProxyImpl.getInstance().getUserMedia({
    video: {
        mandatory: {
            chromeMediaSource: 'screen',
            maxWidth: 4096,
            maxHeight: 2560
        }
    }
});

The resulting screenshot is rendered into the DOM as an <img> element backed by a blob: URL.

Step 4: extract the screenshot from the MHTML archive

With activeTab on chrome://feedback, the extension calls pageCapture.saveAsMHTML and pulls the PNG out of the serialised page:

JavaScript
// background.js
chrome.pageCapture.saveAsMHTML({ tabId: feedbackTabId }, async (mhtmlData) => {
  const text = await mhtmlData.text();
  const regex =
    /Content-Type:\s*image\/png[\s\S]*?Content-Location:\s*blob:chrome:\/\/feedback\/[^\r\n]+\r?\n\r?\n([\s\S]*?)(?=\r?\n------MultipartBoundary)/;

  const match = text.match(regex);
  if (match && match[1]) {
    const base64Data = match[1].replace(/[\r\n\s]/g, '');
    const screenshotUrl = 'data:image/png;base64,' + base64Data;
    // Full desktop screenshot extracted
 }
});

The archive contains all embedded resources, including the desktop screenshot blob, so the extension can fully reconstruct the image.

Step 5: open an arbitrary local file at the right moment

The attack requires a local file to be opened at the moment the chrome://feedback page is reloaded, so that the desktop screenshot captures the contents of the targeted local file. Two methods achieve this.

Method A: declarativeNetRequest redirect to file://

The declarativeNetRequest API validates redirect URLs but only explicitly blocks the javascript: scheme:

C++
// extensions/browser/api/declarative_net_request/indexed_rule.cc
if (redirect.url) {
 GURL redirect_url = GURL(*redirect.url);
  if (!redirect_url.is_valid()) {
    return ParseResult::ERROR_INVALID_REDIRECT_URL;
  }

  if (redirect_url.SchemeIs(url::kJavaScriptScheme)) {
    return ParseResult::ERROR_JAVASCRIPT_REDIRECT;
  }

  indexed_rule->redirect_url = std::move(*redirect.url);
  return ParseResult::SUCCESS;
}

Redirect rules may therefore point to file:// URLs and cause local files to be rendered inside tabs.

Method B: download and open an HTML file via downloads.open

Without the declarativeNetRequest permission, the downloads permission is enough. The extension automatically downloads an HTML file containing:

HTML
<script>
  location = "file:///C:/target/file.txt";
</script>

It then calls chrome.downloads.open() on the downloaded file. When opened, the HTML file redirects the tab to the targeted local file, which the browser renders.

Step 6: observe the result

  1. Download manifest.json, background.js and rules.json.
  2. Place those files in the same directory and load the extension into Chrome.
  3. Press Ctrl+Shift+S.
  4. A tab is automatically opened containing an image of the user's desktop, including the contents of the targeted local file.

The image is displayed only for proof-of-concept purposes; a malicious extension could silently exfiltrate the data without any user-visible indication. A video reproducing the attack was attached to the report as repro.mp4.

Root cause

  • activeTab is granted to whatever tab is active when the command fires, and CanCaptureVisiblePage deliberately allows chrome:// origins when activeTab is present. The off-screen window bypass (integer division in WindowBoundsIntersectDisplays) and the timed-focus trick both let an extension control which tab is active when the command fires.
  • chrome://feedback captures the full desktop with getUserMedia and embeds it in the DOM as a blob: resource, so the sensitive image is reachable by anything that can read the page.
  • pageCapture.saveAsMHTML() serialises embedded blob: resources, so the screenshot survives into the archive.
  • declarativeNetRequest redirect validation only rejects the javascript: scheme, so file:// redirect targets are accepted.
  • The downloads / downloads.open path lets an extension open a downloaded HTML file that redirects to a file:// URL, achieving the same local file rendering without declarativeNetRequest.

Impact

An extension holding activeTab, pageCapture, and either declarativeNetRequest or downloads can read arbitrary local files and capture full desktop screenshots without local file access permissions. The user triggers the extension shortcut, and the extension manipulates window focus or placement so that activeTab lands on chrome://feedback. The proof of concept shows the image to the user, but a malicious extension could exfiltrate it silently. The platform rates the issue medium severity, with a 2,000 USD bounty under the Chrome VRP.

Fix

The report does not describe the fix. The bisect work points at where the behaviour entered the codebase: the initial bisect placed the regression after revision 885350 and no later than 885361 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). Reviewing the changes showed the relevant commit was https://chromium.googlesource.com/chromium/src/+/[redacted], which enabled a field trial for the WebUI Feedback component. Rerunning the bisect with that field trial explicitly enabled narrowed the range to https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted], and further investigation showed the underlying behaviour was introduced by https://chromium.googlesource.com/chromium/src/+/[redacted]. That bisect used a reduced test case relying only on the timing and downloads methods, since they do not depend on additional vulnerabilities that may have been introduced later, which identified the earliest point at which the chain became exploitable.

  • Other chrome:// pages that capture or display sensitive content (screen capture, media previews, device information). A positive result is an extension with activeTab and pageCapture obtaining that content through saveAsMHTML after winning the active-tab race.
  • Other APIs that validate redirect or navigation targets by blocking only a small set of schemes. A positive result is a rule or navigation that reaches file:// or another privileged scheme.
  • Other download-and-open flows where a downloaded HTML file can navigate to a privileged URL. A positive result is a local file rendered in a tab without a file access permission.
  • Window placement and focus handling around shortcut-triggered permission grants, including off-screen bounds and integer division in visibility checks. A positive result is activeTab granted to a window the user cannot see.
  • MHTML serialisation of pages containing blob: resources. A positive result is a blob-backed image or document recovered intact from the archive.

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. 18 min read.

What happened, in plain words

Chrome lets people install small add-on programs called extensions. An extension is just a bundle of files (a manifest, some scripts, some rules) that Chrome loads and runs alongside the browser. Extensions can do useful things, but they can also be dangerous, so Chrome uses a permission model: each extension must declare up front which powers it wants, and the user sees that list when installing. A permission is like a key to a specific door. If an extension never asks for the key to your local files, it should not be able to open them.

This report shows a way around that rule. An extension that asks only for a few modest permissions, and never asks for local file access, can still end up reading any local file on the computer and taking a full screenshot of the whole desktop. It does this by abusing a built-in Chrome page, chrome://feedback, which is the feedback form you can open from inside Chrome. That page quietly takes a picture of your entire screen as part of preparing a bug report. If an extension can read that page, it gets the picture too.

The trick is a chain: several small, individually harmless behaviours are combined so that the end result is far more powerful than any single step. The researcher describes it as a variant of an older local file read issue, tracked as https://issues.chromium.org/issues/40061772, but instead of trying to grab file:// URLs directly, this chain uses chrome://feedback as a middleman.

The platform rates the issue medium severity, with a 2,000 USD bounty under the Chrome VRP. The reporter is Luan Herrera (@lbherrera_).

The pieces you need to know first

Before walking through the attack, here are the four extension permissions involved, explained from zero.

  • activeTab is a temporary grant. Normally, if an extension wants to read the contents of web pages, it has to ask for a permanent permission listing which sites it can touch. activeTab is different: it gives the extension access to the one tab that is active right now, and only for a moment, when the user deliberately invokes the extension (for example by pressing a keyboard shortcut the extension registered). Think of it as a visitor's badge that only opens the door you are standing in front of, and only while you are standing there.
  • pageCapture lets an extension take a tab and save its full contents into a single file called an MHTML archive. MHTML (MIME HTML) is a way of packing a web page and all of its resources (images, styles, scripts) into one file, similar to how a .zip bundles many files. The browser can later reopen that archive and show the page exactly as it was.
  • declarativeNetRequest lets an extension describe rules that rewrite or redirect network requests. For example, a rule can say "when the browser tries to load address X, send it to address Y instead". It is a way of intercepting traffic inside the browser without running code on every request.
  • downloads (together with downloads.open) lets an extension start downloads and then ask Chrome to open the downloaded file.

The attack needs activeTab and pageCapture, plus either declarativeNetRequest or downloads. That "either/or" matters: the researcher found two independent ways to reach the same result, so blocking one does not close the door.

What chrome://feedback does

chrome://feedback is one of Chrome's built-in internal pages. Pages that start with chrome:// are not ordinary websites; they are part of the browser itself and normally cannot be read by extensions at all. The feedback page is special because, as part of preparing a feedback report, it automatically takes a screenshot of the user's entire desktop and places that image into the page as an <img> element. The image is not stored as a normal file URL; it is stored as a blob: URL, which is a temporary in-memory reference the browser creates for data that exists only inside the page. Think of a blob: URL as a sticky note pointing at a picture pinned to the page's own noticeboard: the picture is real, but it only exists while the page is open.

That single design choice, a page that captures the whole desktop and puts the picture in its own DOM, is what makes the whole chain possible. Anything that can read that page also gets the screenshot.

The six behaviours the chain relies on

The report lists six facts that, taken together, produce the attack. Each one is small on its own.

  1. When an extension keyboard shortcut is triggered, the activeTab permission can be granted even if the corresponding window is off-screen (issue 477327257). Alternatively, by foregrounding a window at the same moment the user completes the shortcut, the same result can be achieved.
  2. Extensions are allowed to open chrome:// URIs, and activeTab can be granted to them.
  3. The chrome://feedback page automatically captures the user's entire desktop and embeds it into the DOM.
  4. The pageCapture.saveAsMHTML() function serialises the full page, including embedded blob: resources.
  5. Embedded desktop screenshots can be extracted from the resulting MHTML archive, yielding a full desktop capture without the appropriate permissions.
  6. An extension can open arbitrary file:// URLs without file access permissions using either declarativeNetRequest or the downloads / downloads.open APIs.

Read them in order and you can see the story: get activeTab onto the feedback page (1 and 2), let the feedback page take its screenshot (3), save the page as an archive (4), pull the picture out of the archive (5), and separately arrange for a local file to be on screen when the screenshot is taken (6).

Setting up the test

The attack was reproduced on Windows 11 24H2 against these Chrome versions:

Chrome version
144.0.7559.9
145.0.7632.5
146.0.7635.3
146.0.7646.0

The reproduction needs three files, manifest.json, background.js and rules.json, all placed in the same folder and loaded into Chrome as an unpacked extension. An unpacked extension is one loaded straight from a folder on disk rather than installed from the Chrome Web Store; it is how developers test extensions before publishing. The user then presses Ctrl+Shift+S.

How the researcher found it

The issue is a variant of the local file read issue tracked as https://issues.chromium.org/issues/40061772, using chrome://feedback as an intermediary instead of capturing file:// URLs directly.

Step 1: get activeTab onto chrome://feedback

To capture internal Chrome pages, the extension must make chrome://feedback the active tab at the moment an extension command is triggered. That is the moment activeTab is handed out for the attack. The researcher found two ways to arrange it.

Method A: off-screen window bypass (issue 477327257)

The proof of concept loads chrome://feedback in a window placed outside the visible display area. Chrome has a function called WindowBoundsIntersectDisplays that decides whether a window is on a screen. Because of integer division in that function, a window can be moved completely outside all displays while still being considered visible. Integer division means dividing two whole numbers and throwing away the remainder, so small rounding errors can creep in. The practical effect is that the page loads and stays active without the user being aware of it. When the extension command fires, activeTab is granted to this hidden window.

Method B: timed window focus

Without relying on the off-screen issue, the same outcome is reached by timing:

  1. The extension opens chrome://feedback as a minimised window.
  2. The extension listens for partial key presses (for example Ctrl+Shift).
  3. When one is detected, it brings the chrome://feedback window to the foreground.
  4. When the user completes the shortcut (for example presses S), activeTab is granted to chrome://feedback.

Step 2: confirm that activeTab reaches chrome:// pages

Once chrome://feedback is the active tab, activeTab allows access to Chrome internal pages by design. The CanCaptureVisiblePage logic explicitly permits capture of chrome:// origins when activeTab is present:

C++
// extensions/common/permissions/permissions_data.cc
bool allowed_with_active_tab =
    origin_url.SchemeIs(content::kChromeUIScheme) ||
    origin_url.SchemeIs(kExtensionScheme) ||
    document_url.SchemeIs(url::kDataScheme) ||
 extension_urls::IsWebstoreOrigin(origin);

if (!allowed_with_active_tab) {
  if (error)
    *error = access_error;
  return false;
}

if (has_active_tab)
  return true;
  • The first line is a comment naming the source file, permissions_data.cc, inside the extensions part of the Chrome codebase. It tells you where this logic lives.
  • bool allowed_with_active_tab = starts a true/false variable that will hold the answer to "is this kind of page allowed when activeTab is present?".
  • origin_url.SchemeIs(content::kChromeUIScheme) checks whether the page's address uses the chrome:// scheme. If so, the answer is true.
  • origin_url.SchemeIs(kExtensionScheme) checks for chrome-extension:// addresses, i.e. the extension's own pages.
  • document_url.SchemeIs(url::kDataScheme) checks for data: addresses, which are inline data embedded in a URL.
  • extension_urls::IsWebstoreOrigin(origin) checks whether the page is the Chrome Web Store.
  • The || symbols mean "or": if any of those checks is true, the whole expression is true.
  • if (!allowed_with_active_tab) { handles the case where none of them matched. The ! means "not".
  • Inside that block, if (error) *error = access_error; records an error message if the caller asked for one, and return false; refuses access.
  • Finally, if (has_active_tab) return true; says: if the extension holds activeTab, allow it.

So the code is deliberately permissive: chrome:// pages are on the allowed list, and activeTab is enough to unlock them. With either method from Step 1 succeeding, the extension can invoke APIs such as pageCapture against the feedback page.

Step 3: understand what the feedback page embeds

chrome://feedback captures the entire desktop using getUserMedia with chromeMediaSource: "screen":

C++
// chrome/browser/resources/feedback/js/take_screenshot.ts
FeedbackBrowserProxyImpl.getInstance().getUserMedia({
    video: {
        mandatory: {
            chromeMediaSource: 'screen',
            maxWidth: 4096,
            maxHeight: 2560
        }
    }
});

Line by line:

  • The comment names the file, take_screenshot.ts, which is the part of the feedback page responsible for taking the picture.
  • FeedbackBrowserProxyImpl.getInstance() fetches the object that talks to the browser on the page's behalf. A proxy here just means a middleman object that forwards requests.
  • .getUserMedia({ ... }) calls the browser API that asks for access to a camera, microphone or screen. getUserMedia is the standard web API for grabbing media input.
  • video: { mandatory: { ... } } describes what kind of media stream is wanted. The word video here means a moving picture stream, which is how screen capture is delivered.
  • chromeMediaSource: 'screen' is the key line: it tells Chrome the source should be the whole screen rather than a camera.
  • maxWidth: 4096 and maxHeight: 2560 cap the resolution of the capture.

The resulting screenshot is rendered into the DOM as an <img> element backed by a blob: URL. The DOM (Document Object Model) is the browser's in-memory tree of everything on a page: every element, every image, every piece of text. So the picture is not just taken; it is placed into the page as a normal image element, which is exactly what makes it readable later.

Step 4: extract the screenshot from the MHTML archive

With activeTab on chrome://feedback, the extension calls pageCapture.saveAsMHTML and pulls the PNG out of the serialised page:

JavaScript
// background.js
chrome.pageCapture.saveAsMHTML({ tabId: feedbackTabId }, async (mhtmlData) => {
  const text = await mhtmlData.text();
  const regex =
    /Content-Type:\s*image\/png[\s\S]*?Content-Location:\s*blob:chrome:\/\/feedback\/[^\r\n]+\r?\n\r?\n([\s\S]*?)(?=\r?\n------MultipartBoundary)/;

  const match = text.match(regex);
  if (match && match[1]) {
    const base64Data = match[1].replace(/[\r\n\s]/g, '');
    const screenshotUrl = 'data:image/png;base64,' + base64Data;
    // Full desktop screenshot extracted
 }
});

Line by line:

  • // background.js is a comment naming the file. A background script is a script an extension runs in the background, outside any visible tab, to coordinate its work.
  • chrome.pageCapture.saveAsMHTML({ tabId: feedbackTabId }, async (mhtmlData) => { asks Chrome to save the tab identified by feedbackTabId as an MHTML archive. The second argument is a callback: a function Chrome will call when the archive is ready, handing it the data as mhtmlData. The word async means the callback can pause and wait for slow operations.
  • const text = await mhtmlData.text(); turns the archive into plain text. await pauses until the conversion finishes. MHTML is a text format, so this is how you get at its contents.
  • const regex = starts a regular expression, which is a pattern for finding a piece of text inside a larger text. The pattern is written between the slashes / ... /.
  • Content-Type:\s*image\/png looks for the header line that marks a part of the archive as a PNG image. \s* means "any amount of whitespace".
  • [\s\S]*? means "any characters, as few as possible", letting the pattern skip ahead.
  • Content-Location:\s*blob:chrome:\/\/feedback\/[^\r\n]+ looks for the line that says where that image came from, and requires it to be a blob:chrome://feedback/... address. [^\r\n]+ means "one or more characters that are not a line break".
  • \r?\n\r?\n matches the blank line that separates headers from the body of a part.
  • ([\s\S]*?) is a capture group: it collects the body of the part, which is the actual image data.
  • (?=\r?\n------MultipartBoundary) is a lookahead: it says "stop just before the next multipart boundary", which is the marker that separates one part of the archive from the next.
  • const match = text.match(regex); runs the pattern against the archive text. If it finds a match, match holds the result.
  • if (match && match[1]) { checks that a match was found and that the first capture group (the image data) is present.
  • const base64Data = match[1].replace(/[\r\n\s]/g, ''); strips out line breaks and whitespace from the captured data. Base64 is a way of writing binary data (like an image) using only text characters, so it can be stored inside a text file.
  • const screenshotUrl = 'data:image/png;base64,' + base64Data; builds a data: URL, which is a URL that contains the data itself rather than pointing to a file. The result is a self-contained image the extension can display or send elsewhere.
  • The comment // Full desktop screenshot extracted marks the point where the extension now holds the picture.

The archive contains all embedded resources, including the desktop screenshot blob, so the extension can fully reconstruct the image.

Step 5: open an arbitrary local file at the right moment

The attack requires a local file to be opened at the moment the chrome://feedback page is reloaded, so that the desktop screenshot captures the contents of the targeted local file. Two methods achieve this.

Method A: declarativeNetRequest redirect to file://

The declarativeNetRequest API validates redirect URLs but only explicitly blocks the javascript: scheme:

C++
// extensions/browser/api/declarative_net_request/indexed_rule.cc
if (redirect.url) {
 GURL redirect_url = GURL(*redirect.url);
  if (!redirect_url.is_valid()) {
    return ParseResult::ERROR_INVALID_REDIRECT_URL;
  }

  if (redirect_url.SchemeIs(url::kJavaScriptScheme)) {
    return ParseResult::ERROR_JAVASCRIPT_REDIRECT;
  }

  indexed_rule->redirect_url = std::move(*redirect.url);
  return ParseResult::SUCCESS;
}

Line by line:

  • The comment names the file, indexed_rule.cc, which handles the rules an extension supplies for redirecting requests.
  • if (redirect.url) { runs the checks only when the rule actually specifies a redirect target.
  • GURL redirect_url = GURL(*redirect.url); wraps the target string in Chrome's URL type, GURL, so it can be inspected.
  • if (!redirect_url.is_valid()) { return ParseResult::ERROR_INVALID_REDIRECT_URL; } rejects anything that is not a well-formed URL.
  • if (redirect_url.SchemeIs(url::kJavaScriptScheme)) { return ParseResult::ERROR_JAVASCRIPT_REDIRECT; } rejects javascript: URLs. A javascript: URL is a URL whose contents are code to run in the page, so allowing it would be a script injection risk.
  • indexed_rule->redirect_url = std::move(*redirect.url); stores the accepted target on the rule. std::move is a C++ way of transferring a value efficiently.
  • return ParseResult::SUCCESS; reports that the rule was accepted.

The key point is what is not in the list: file:// is not rejected. Redirect rules may therefore point to file:// URLs and cause local files to be rendered inside tabs.

Method B: download and open an HTML file via downloads.open

Without the declarativeNetRequest permission, the downloads permission is enough. The extension automatically downloads an HTML file containing:

HTML
<script>
  location = "file:///C:/target/file.txt";
</script>

Line by line:

  • <script> and </script> mark a block of JavaScript inside an HTML page.
  • location = "file:///C:/target/file.txt"; sets the page's address to a local file. location is the browser's name for the current address; assigning to it navigates the page. The path C:/target/file.txt is a placeholder for whatever file the attacker wants to read.

It then calls chrome.downloads.open() on the downloaded file. When opened, the HTML file redirects the tab to the targeted local file, which the browser renders.

Step 6: observe the result

  1. Download manifest.json, background.js and rules.json.
  2. Place those files in the same directory and load the extension into Chrome.
  3. Press Ctrl+Shift+S.
  4. A tab is automatically opened containing an image of the user's desktop, including the contents of the targeted local file.

The image is displayed only for proof-of-concept purposes; a malicious extension could silently exfiltrate the data without any user-visible indication. A video reproducing the attack was attached to the report as repro.mp4.

Why it works: the root cause

  • activeTab is granted to whatever tab is active when the command fires, and CanCaptureVisiblePage deliberately allows chrome:// origins when activeTab is present. The off-screen window bypass (integer division in WindowBoundsIntersectDisplays) and the timed-focus trick both let an extension control which tab is active when the command fires.
  • chrome://feedback captures the full desktop with getUserMedia and embeds it in the DOM as a blob: resource, so the sensitive image is reachable by anything that can read the page.
  • pageCapture.saveAsMHTML() serialises embedded blob: resources, so the screenshot survives into the archive.
  • declarativeNetRequest redirect validation only rejects the javascript: scheme, so file:// redirect targets are accepted.
  • The downloads / downloads.open path lets an extension open a downloaded HTML file that redirects to a file:// URL, achieving the same local file rendering without declarativeNetRequest.

What it means in practice

An extension holding activeTab, pageCapture, and either declarativeNetRequest or downloads can read arbitrary local files and capture full desktop screenshots without local file access permissions. The user triggers the extension shortcut, and the extension manipulates window focus or placement so that activeTab lands on chrome://feedback. The proof of concept shows the image to the user, but a malicious extension could exfiltrate it silently.

Where the behaviour came from

The report does not describe the fix. The bisect work points at where the behaviour entered the codebase. A bisect is a technique for finding the change that introduced a bug: you test a point in the middle of a range of code changes, see whether the bug is present, and keep halving the range until you find the culprit.

The initial bisect placed the regression after revision 885350 and no later than 885361 (https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted]). Reviewing the changes showed the relevant commit was https://chromium.googlesource.com/chromium/src/+/[redacted], which enabled a field trial for the WebUI Feedback component. A field trial is a way of switching a feature on for a subset of users to test it in the real world.

Rerunning the bisect with that field trial explicitly enabled narrowed the range to https://chromium.googlesource.com/chromium/src/+log/[redacted]..[redacted], and further investigation showed the underlying behaviour was introduced by https://chromium.googlesource.com/chromium/src/+/[redacted]. That bisect used a reduced test case relying only on the timing and downloads methods, since they do not depend on additional vulnerabilities that may have been introduced later, which identified the earliest point at which the chain became exploitable.

The researcher listed variants worth testing, each with a clear sign of success:

  • Other chrome:// pages that capture or display sensitive content (screen capture, media previews, device information). A positive result is an extension with activeTab and pageCapture obtaining that content through saveAsMHTML after winning the active-tab race.
  • Other APIs that validate redirect or navigation targets by blocking only a small set of schemes. A positive result is a rule or navigation that reaches file:// or another privileged scheme.
  • Other download-and-open flows where a downloaded HTML file can navigate to a privileged URL. A positive result is a local file rendered in a tab without a file access permission.
  • Window placement and focus handling around shortcut-triggered permission grants, including off-screen bounds and integer division in visibility checks. A positive result is activeTab granted to a window the user cannot see.
  • MHTML serialisation of pages containing blob: resources. A positive result is a blob-backed image or document recovered intact from the archive.

Glossary

  • activeTab: a temporary extension permission that grants access to the tab that is active at the moment the user invokes the extension.

  • API: an Application Programming Interface, a defined set of functions a program can call to make another program or the browser do something.

  • Base64: a way of encoding binary data (such as an image) as plain text so it can be stored or sent inside text formats.

  • Bisect: a debugging technique that halves a range of code changes repeatedly to find the one that introduced a bug.

  • Blob URL: a temporary in-memory address (blob:...) the browser creates for data that exists only inside a page.

  • Callback: a function passed to another function, to be called when an operation finishes.

  • Capture group: a part of a regular expression wrapped in parentheses that collects the matched text for later use.

  • Chrome VRP: Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.

  • chrome:// page: a built-in page that is part of the browser itself rather than a website.

  • Commit: a single recorded change to a codebase.

  • declarativeNetRequest: an extension permission that lets the extension define rules to rewrite or redirect network requests.

  • DOM: the Document Object Model, the browser's in-memory tree of everything on a page.

  • downloads / downloads.open: extension permissions that let an extension start downloads and ask Chrome to open the downloaded file.

  • Extension: a small add-on program installed into a browser to add features.

  • Field trial: a way of enabling a feature for a subset of users to test it in the real world.

  • file:// URL: an address that points to a file on the local computer.

  • getUserMedia: the standard web API for requesting access to a camera, microphone or screen.

  • GURL: Chrome's internal C++ type for representing a URL.

  • Integer division: dividing two whole numbers and discarding the remainder, which can introduce rounding errors.

  • javascript: URL: a URL whose contents are code to run in the page.

  • Lookahead: a part of a regular expression that checks what comes next without consuming it.

  • MHTML: MIME HTML, a single-file archive that packs a web page together with its resources.

  • Multipart boundary: the marker line that separates one part of a multipart file (such as MHTML) from the next.

  • pageCapture: an extension permission that lets the extension save a tab's contents as an MHTML archive.

  • Permission model: the system by which a program must declare and be granted specific powers before using them.

  • PNG: a common image file format.

  • Proof of concept (PoC): a demonstration that a vulnerability can actually be exploited.

  • Proxy: a middleman object that forwards requests on behalf of another.

  • Regular expression (regex): a pattern for finding text inside a larger text.

  • Regression: a bug introduced by a change that previously worked.

  • Revision: a numbered point in a version-controlled codebase.

  • Scheme: the first part of a URL (such as http, file, chrome or javascript) that says what kind of address it is.

  • Unpacked extension: an extension loaded directly from a folder on disk rather than installed from the store.

  • WebUI: Chrome's framework for building its own internal browser pages.

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.