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

Inappropriate implementation in Extensions (CVE-2025-12431)

An extension with the downloads permission could download local file:// URLs by starting a download, letting it be interrupted, and then resuming it, because the resume path skips the URL safety check. This let the extension read local files without having file:// access.

Alesandro Ortiz Follow

Originally disclosed on Chrome VRP

Bounty$4,000 High View original
  • Fix shipped in 3 months

SUMMARY

An extension with downloads permission can download a file:// URL by calling downloads.download(), waiting for the download to be interrupted, and then calling downloads.resume() on the interrupted download. This causes the download to be initiated by the browser, bypassing DownloadRequestUtils::IsURLSafe()/CPSP::CanRequestURL() checks.

Downloading local files is meant to be blocked when the extension does not have file:// permissions. The tabs.create() workaround to download some local files was also blocked in https://crrev.com/c/4772028 (August 2023, also see issue 40063229).

The resume bypass also works with all other ways to resume downloads, including resumes made through UI.

When chained with other bugs, such as issue 433800617 or issue 435684924, or if the attacker otherwise convinces user to upload the downloaded file, the attacker can steal the downloaded file's contents.

VULNERABILITY DETAILS

In DownloadManagerImpl::BeginDownloadInternal()...

void DownloadManagerImpl::BeginDownloadInternal(
    std::unique_ptr<download::DownloadUrlParameters> params,
    scoped_refptr<network::SharedURLLoaderFactory> blob_url_loader_factory,
    bool is_new_download,
    const std::string& serialized_embedder_download_data) {
  // Check if the renderer is permitted to request the requested URL.
  if (params->render_process_host_id() >= 0 &&
      !DownloadRequestUtils::IsURLSafe(params->render_process_host_id(),
                                       params->url())) {
    CreateInterruptedDownload(
        std::move(params),
        download::DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST,
        weak_factory_.GetWeakPtr());
    return;
  }
  // ...
}

...CPSP::CanRequestURL() is called through DownloadRequestUtils::IsURLSafe() only if render_process_host_id() >= 0.

When downloads.download() is called with a file:// URL, render_process_host_id is greater than zero, and CPSP::CanRequestURL() returns false for file:// URLs, therefore the download is interrupted.

However, when downloads.resume() is called for the interrupted download, render_process_host_id is -1, which per this comment means it's not associated with a frame. This means the IsURLSafe()/CPSP::CanRequestURL() check is bypassed, and the file is downloaded.

Additional context

In the DownloadUrlParameters() constructor that leaves render_process_host_id at -1, there is this comment that points out the security checks bypass:

  // Constructs a download not associated with a frame.
  //
  // It is not safe to have downloads not associated with a frame and
  // this should only be done in a limited set of cases where the download URL
  // has been previously vetted. A download that's initiated without
  // associating it with a frame don't receive the same security checks
  // as a request that's associated with one. Hence, downloads that are not
  // associated with a frame should only be made for URLs that are either
  // trusted or URLs that have previously been successfully issued using a
  // non-privileged frame.
  DownloadUrlParameters(
      const GURL& url,
      const net::NetworkTrafficAnnotationTag& traffic_annotation);

Unfortunately, this constructor is used in the downloads.resume() code path and most other download resume code paths: DownloadsResumeFunction::Run() calls DownloadItem::Resume() which calls DownloadItemImpl::ResumeInterruptedDownload().

ResumeInterruptedDownload() has this comment explaining why the unsafe constructor is used for resumes:

  // Avoid using the WebContents even if it's still around. Resumption requests
  // are consistently routed through the no-renderer code paths so that the
  // request will not be dropped if the WebContents (and by extension, the
  // associated renderer) goes away before a response is received.
  std::unique_ptr<DownloadUrlParameters> download_params(
      new DownloadUrlParameters(GetURL(), traffic_annotation));

BISECT

Likely commit 00b621f5126d538df488090c19175ee892a7161b (February 2016) which starts using the unsafe constructor in resume code path.

I'll verify bisect later today.

VERSION

Chrome version: 139.0.7258.67 Stable, 141.0.7340.0 Canary

Operating System: Windows 10

REPRODUCTION CASE

To download a file in a user directory, the PoC first makes a throwaway download to get the username from the download path. Then we make the second download exploiting the vulnerability.

The core vulnerability itself doesn't need user interaction to download the file, nor does it need to show an extension page or otherwise open a new tab.

I'll upload chained scenarios in comments.

Setup:

  1. Install attached extension: manifest.json, background.js, page.html, page.js.
  2. Disable file:// URL access in the extension details page (this is enabled by default for unpacked extensions).

Scenario 1: Chrome history file

  1. Click extension icon to trigger download. (Note: Initiating/resuming downloads doesn't require user interaction, so this step is only for PoC.)
  2. Click the page, then select the downloaded file. (Note: When chained, we don't need user to explicitly upload file.)

Observed: Extension can download file:// URLs without file permission. When chained with other vulns, or through social engineering, user can read downloaded local file.

Expected: Extension cannot download file:// URLs without file permission.

Debug scenario

To see the attack occurring more slowly, you can modify background.js and set debug to true, which delays the resume() call by two seconds. Reminder: Disable file:// access in extension for proper repro.

Credit Information

Reporter credit: Alesandro Ortiz https://AlesandroOrtiz.com

The original report as published on the Chromium issue tracker, by Alesandro Ortiz. 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. 6 min read.

Context

Chrome extensions can request the downloads permission, which exposes the chrome.downloads API. Through it an extension can start downloads with downloads.download() and resume interrupted ones with downloads.resume(). Chrome is supposed to stop an extension from pulling in local file:// URLs unless that extension has been granted file:// access. The check that enforces this lives in the browser process, in DownloadManagerImpl::BeginDownloadInternal(), which calls DownloadRequestUtils::IsURLSafe(), which in turn reaches CPSP::CanRequestURL().

The report describes an inappropriate implementation in Extensions, tracked as CVE-2025-12431, reported through the Chrome VRP by Alesandro Ortiz. It was rated high severity and paid a bounty of 4000.00 USD, and was disclosed on 2025-10-28.

Setup

The researcher tested on Windows 10 with Chrome 139.0.7258.67 Stable and 141.0.7340.0 Canary.

The proof of concept is an unpacked extension made of four files: manifest.json, background.js, page.html and page.js. After installing it, file:// URL access must be disabled on the extension details page. That access is enabled by default for unpacked extensions, so turning it off is what puts the extension in the state the bypass is meant to defeat.

Finding it

The starting point is the guard in DownloadManagerImpl::BeginDownloadInternal():

Text
void DownloadManagerImpl::BeginDownloadInternal(
    std::unique_ptr<download::DownloadUrlParameters> params,
    scoped_refptr<network::SharedURLLoaderFactory> blob_url_loader_factory,
    bool is_new_download,
    const std::string& serialized_embedder_download_data) {
  // Check if the renderer is permitted to request the requested URL.
  if (params->render_process_host_id() >= 0 &&
      !DownloadRequestUtils::IsURLSafe(params->render_process_host_id(),
                                       params->url())) {
    CreateInterruptedDownload(
        std::move(params),
        download::DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST,
        weak_factory_.GetWeakPtr());
    return;
  }
  // ...
}

The URL safety check only runs when render_process_host_id() >= 0. When downloads.download() is called with a file:// URL, the render process host id is greater than zero, CPSP::CanRequestURL() returns false for file:// URLs, and the download is interrupted. That is the intended behaviour.

The flaw appears on the resume path. When downloads.resume() is called for the interrupted download, render_process_host_id is -1. According to the comment in download_url_parameters.h, that value means the download is not associated with a frame. The IsURLSafe()/CPSP::CanRequestURL() check is therefore skipped, and the file is downloaded.

The same bypass applies to every other way of resuming a download, including resumes made through the UI, not just the extension API.

The report also notes that the tabs.create() workaround for downloading some local files had already been blocked in https://crrev.com/c/4772028 (August 2023, also see issue 40063229), so this resume path was a remaining route to the same outcome.

Exploitation

The core vulnerability needs no user interaction to download the file, and it does not need an extension page to be shown or a new tab to be opened. The PoC does use a click to start things off, but only for demonstration.

To download a file in a user directory, the PoC first makes a throwaway download to learn the username from the download path. It then makes the second download that exploits the vulnerability.

Step 1: Install and restrict the extension

  1. Install the attached extension: manifest.json, background.js, page.html, page.js.
  2. Disable file:// URL access in the extension details page (this is enabled by default for unpacked extensions).

Step 2: Trigger the download

Click the extension icon to trigger the download. Initiating and resuming downloads does not require user interaction, so this step exists only for the PoC.

Step 3: Read the downloaded file

Click the page, then select the downloaded file. When the bug is chained, the user does not need to explicitly upload the file.

Observed: the extension can download file:// URLs without file permission. When chained with other vulnerabilities, or through social engineering, the user can read the downloaded local file.

Expected: the extension cannot download file:// URLs without file permission.

Scenario 1: Chrome history file

The report's first scenario is titled Chrome history file. The sequence is the same as above: the extension triggers the download, and the user then selects the downloaded file. The observed and expected results are as stated in Step 3.

Debug scenario

To watch the attack happen more slowly, background.js can be modified to set debug to true, which delays the resume() call by two seconds. file:// access must still be disabled in the extension for a proper reproduction.

Root cause

The unsafe constructor in download_url_parameters.h is the source of the problem. Its own comment spells out the risk:

Text
  // Constructs a download not associated with a frame.
  //
  // It is not safe to have downloads not associated with a frame and
  // this should only be done in a limited set of cases where the download URL
  // has been previously vetted. A download that's initiated without
  // associating it with a frame don't receive the same security checks
  // as a request that's associated with one. Hence, downloads that are not
  // associated with a frame should only be made for URLs that are either
  // trusted or URLs that have previously been successfully issued using a
  // non-privileged frame.
  DownloadUrlParameters(
      const GURL& url,
      const net::NetworkTrafficAnnotationTag& traffic_annotation);

That constructor leaves render_process_host_id at -1, and it is used in the downloads.resume() code path and most other download resume code paths. DownloadsResumeFunction::Run() calls DownloadItem::Resume(), which calls DownloadItemImpl::ResumeInterruptedDownload(). The latter explains why it takes the unsafe route:

Text
  // Avoid using the WebContents even if it's still around. Resumption requests
  // are consistently routed through the no-renderer code paths so that the
  // request will not be dropped if the WebContents (and by extension, the
  // associated renderer) goes away before a response is received.
  std::unique_ptr<DownloadUrlParameters> download_params(
      new DownloadUrlParameters(GetURL(), traffic_annotation));

The design assumes that a resumed URL was already vetted when the download was first issued. Here the first attempt was deliberately interrupted by the safety check, yet the resume path treats the URL as previously vetted and skips the check entirely. The existing defence, CPSP::CanRequestURL(), is only reached when a render process host id is present, so a download with no associated frame never gets it.

The report's bisect points to commit [redacted] (February 2016) as the likely change that started using the unsafe constructor in the resume code path. The researcher noted that the bisect would be verified later that day.

Impact

An extension holding the downloads permission but without file:// access can download local files. The core bug needs no user interaction and no visible extension page or tab. On its own the extension obtains the file; to read its contents the attacker must chain it with another bug, such as issue 433800617 or issue 435684924, or otherwise convince the user to upload the downloaded file. The report's own example target is the Chrome history file.

Fix

The report does not describe a fix. It states the expected behaviour: an extension cannot download file:// URLs without file permission.

Variants to test

  • Resume an interrupted download through the UI rather than downloads.resume(). The report says the bypass works with all other ways to resume downloads, including UI resumes, so a positive result is a local file arriving after a UI-driven resume of a download that was interrupted by the URL safety check.
  • Resume a download that was interrupted for a reason other than the URL check, then observe whether the resumed request is re-checked. A positive result is a file:// URL being fetched with no CPSP::CanRequestURL() rejection.
  • Try the same start-then-resume pattern from other extension APIs that can initiate downloads, to see whether any of them also end up on the no-renderer resume path. A positive result is a local file downloaded by an extension without file:// access.
  • Chain the downloaded file with a separate bug that can read it, such as the issues referenced in the report, or with a social engineering step that gets the user to upload it. A positive result is the contents of the local file becoming readable to the attacker.

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

What happened, in plain words

Chrome lets extensions add features to the browser. Some extensions need to download files, so Chrome offers them a permission called downloads. When an extension has that permission, it can ask Chrome to start a download and to resume a download that was interrupted.

Chrome has a rule: an extension should not be able to pull in files that live on your own computer (addresses starting with file://) unless the extension has been explicitly given access to local files. There is a check inside Chrome that is supposed to enforce this rule.

The report shows that the check can be skipped. The trick is to ask for a local file download, let Chrome interrupt it because of the safety check, and then ask Chrome to resume that interrupted download. On the resume path the safety check is not applied, so the local file is downloaded anyway.

This was reported through Google's Chrome Vulnerability Reward Program (VRP) by Alesandro Ortiz. It is tracked as CVE-2025-12431, rated high severity, paid a bounty of 4000.00 USD, and disclosed on 2025-10-28. The weakness is classified as an inappropriate implementation in Extensions.

A few words before we go further, because the rest of the article uses them constantly:

  • An API (application programming interface) is a set of commands one program offers to another. Think of a restaurant menu: you do not walk into the kitchen, you order from the menu and the kitchen does the work. chrome.downloads is the menu Chrome offers to extensions for downloading.
  • A permission is a declared capability. An extension must list in its manifest (its identity card) what it wants to do, and Chrome decides whether to grant it.
  • A URL is an address. https://example.com/page is a web address; file:///C:/Users/... is an address pointing at a file on the local disk.
  • A frame is one document inside a browser tab. A tab can contain several frames (for example a page and an embedded advert). Chrome tracks which frame a request came from, because that tells it how much to trust the request.
  • A renderer (or render process) is the part of Chrome that turns web pages into what you see. Chrome keeps renderers in a separate, sandboxed process so that a malicious page cannot directly touch the rest of the system. The browser process is the trusted part that makes the final decisions.

Context

Chrome extensions can request the downloads permission, which exposes the chrome.downloads API. Through it an extension can start downloads with downloads.download() and resume interrupted ones with downloads.resume(). Chrome is supposed to stop an extension from pulling in local file:// URLs unless that extension has been granted file:// access. The check that enforces this lives in the browser process, in DownloadManagerImpl::BeginDownloadInternal(), which calls DownloadRequestUtils::IsURLSafe(), which in turn reaches CPSP::CanRequestURL().

In plain terms: the extension asks the browser process for a download. The browser process runs a safety function. That function asks another component, CPSP (Chrome's content settings and permissions service), whether the URL is allowed. If the answer is no, the download is stopped.

The report describes an inappropriate implementation in Extensions, tracked as CVE-2025-12431, reported through the Chrome VRP by Alesandro Ortiz. It was rated high severity and paid a bounty of 4000.00 USD, and was disclosed on 2025-10-28.

Setup

The researcher tested on Windows 10 with Chrome 139.0.7258.67 Stable and 141.0.7340.0 Canary.

The proof of concept is an unpacked extension made of four files: manifest.json, background.js, page.html and page.js. After installing it, file:// URL access must be disabled on the extension details page. That access is enabled by default for unpacked extensions, so turning it off is what puts the extension in the state the bypass is meant to defeat.

Why this matters: an unpacked extension is one loaded from a folder rather than from the Chrome Web Store. Chrome enables file:// URL access by default for unpacked extensions. To prove the bug, the researcher first removes that convenience, so the extension is in the same restricted position as a normal extension that never asked for local file access.

Finding it

The starting point is the guard in DownloadManagerImpl::BeginDownloadInternal():

Text
void DownloadManagerImpl::BeginDownloadInternal(
    std::unique_ptr<download::DownloadUrlParameters> params,
    scoped_refptr<network::SharedURLLoaderFactory> blob_url_loader_factory,
    bool is_new_download,
    const std::string& serialized_embedder_download_data) {
  // Check if the renderer is permitted to request the requested URL.
  if (params->render_process_host_id() >= 0 &&
      !DownloadRequestUtils::IsURLSafe(params->render_process_host_id(),
                                       params->url())) {
    CreateInterruptedDownload(
        std::move(params),
        download::DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST,
        weak_factory_.GetWeakPtr());
    return;
  }
  // ...
}

Line by line:

  1. void DownloadManagerImpl::BeginDownloadInternal( starts the function that begins a download. DownloadManagerImpl is the browser-side object that manages all downloads.
  2. The next four lines are the function's inputs: the download parameters (params), a factory for loading data (blob_url_loader_factory), a flag saying whether this is a new download (is_new_download), and some serialised data about the embedder (serialized_embedder_download_data). You do not need to understand each one to follow the bug; the important one is params.
  3. // Check if the renderer is permitted to request the requested URL. is a comment: the code below is the safety check.
  4. if (params->render_process_host_id() >= 0 && is the first half of the condition. render_process_host_id() is the identifier of the renderer that asked for the download. A value of zero or more passes the check, meaning a renderer is associated with the request. A value of -1 means no renderer is associated.
  5. !DownloadRequestUtils::IsURLSafe(params->render_process_host_id(), params->url())) { is the second half. It calls the safety function with the renderer id and the URL, and the ! means "if the answer is not safe".
  6. CreateInterruptedDownload( is what happens when both halves are true: the download is created but immediately marked as interrupted.
  7. std::move(params), passes the parameters along.
  8. download::DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST, records the reason: the network request was invalid.
  9. weak_factory_.GetWeakPtr()); passes a weak reference used for callbacks.
  10. return; exits the function, so the download never proceeds.
  11. // ... is a placeholder for the rest of the function, which is not relevant here.

The URL safety check only runs when render_process_host_id() >= 0. When downloads.download() is called with a file:// URL, the render process host id is greater than zero, CPSP::CanRequestURL() returns false for file:// URLs, and the download is interrupted. That is the intended behaviour.

Everyday comparison: think of a bouncer at a door who checks your name against a list. If your name is on the list, you get in. If not, you are turned away. Here the bouncer is IsURLSafe(), the list is CPSP::CanRequestURL(), and the file:// URL is the name that is not on the list.

The flaw appears on the resume path. When downloads.resume() is called for the interrupted download, render_process_host_id is -1. According to the comment in download_url_parameters.h, that value means the download is not associated with a frame. The IsURLSafe()/CPSP::CanRequestURL() check is therefore skipped, and the file is downloaded.

In bouncer terms: the first attempt is turned away, but the person walks around to a side door where there is no bouncer at all, because the side door is only used for people who were already checked. The code assumes that anyone arriving at the side door has been checked before. Here the first attempt was deliberately stopped by the check, so the assumption is wrong.

The same bypass applies to every other way of resuming a download, including resumes made through the UI, not just the extension API. In other words, it is not only the extension command that reaches the unchecked path; the normal user interface for resuming a download does too.

The report also notes that the tabs.create() workaround for downloading some local files had already been blocked in https://crrev.com/c/4772028 (August 2023, also see issue 40063229), so this resume path was a remaining route to the same outcome.

What is tabs.create()? It is another extension API that opens a new tab. The report says the tabs.create() workaround for downloading some local files was blocked in 2023. The report is saying: the old door was locked, but this resume door was still open.

Exploitation

The core vulnerability needs no user interaction to download the file, and it does not need an extension page to be shown or a new tab to be opened. The PoC does use a click to start things off, but only for demonstration.

To download a file in a user directory, the PoC first makes a throwaway download to learn the username from the download path. It then makes the second download that exploits the vulnerability.

Why a throwaway download? The report says the PoC first makes a throwaway download to get the username from the download path, then makes the second download exploiting the vulnerability.

Step 1: Install and restrict the extension

  1. Install the attached extension: manifest.json, background.js, page.html, page.js.
  2. Disable file:// URL access in the extension details page (this is enabled by default for unpacked extensions).

Step 1 puts the extension in place. Step 2 removes the permission that would make the test meaningless: if the extension already had local file access, downloading a local file would be allowed and would prove nothing.

Step 2: Trigger the download

Click the extension icon to trigger the download. Initiating and resuming downloads does not require user interaction, so this step exists only for the PoC.

In other words, the click is a convenience for the demonstration. The extension could have started the download on its own.

Step 3: Read the downloaded file

Click the page, then select the downloaded file. When the bug is chained, the user does not need to explicitly upload the file.

Observed: the extension can download file:// URLs without file permission. When chained with other vulnerabilities, or through social engineering, the user can read the downloaded local file.

Expected: the extension cannot download file:// URLs without file permission.

"Chained" means combining two bugs: one bug gets the file onto the disk, another bug (or a trick played on the user) gets its contents out. "Social engineering" means convincing a person to do something, such as uploading a file, rather than breaking any code.

Scenario 1: Chrome history file

The report's first scenario is titled Chrome history file. The sequence is the same as above: the extension triggers the download, and the user then selects the downloaded file. The observed and expected results are as stated in Step 3.

Debug scenario

To watch the attack happen more slowly, background.js can be modified to set debug to true, which delays the resume() call by two seconds. file:// access must still be disabled in the extension for a proper reproduction.

Why slow it down? When the download is interrupted and resumed almost instantly, it is hard to see the two phases. A two-second pause makes the interruption visible, so you can watch the resume happen afterwards.

Root cause

The unsafe constructor in download_url_parameters.h is the source of the problem. Its own comment spells out the risk:

Text
  // Constructs a download not associated with a frame.
  //
  // It is not safe to have downloads not associated with a frame and
  // this should only be done in a limited set of cases where the download URL
  // has been previously vetted. A download that's initiated without
  // associating it with a frame don't receive the same security checks
  // as a request that's associated with one. Hence, downloads that are not
  // associated with a frame should only be made for URLs that are either
  // trusted or URLs that have previously been successfully issued using a
  // non-privileged frame.
  DownloadUrlParameters(
      const GURL& url,
      const net::NetworkTrafficAnnotationTag& traffic_annotation);

Line by line:

  1. // Constructs a download not associated with a frame. says what this constructor (a function that builds an object) does: it builds a download request with no frame attached.
  2. // It is not safe to have downloads not associated with a frame and warns that this is dangerous.
  3. // this should only be done in a limited set of cases where the download URL says it should be rare.
  4. // has been previously vetted. says the URL must already have been checked.
  5. // A download that's initiated without continues the explanation.
  6. // associating it with a frame don't receive the same security checks is the key sentence: no frame means fewer checks.
  7. // as a request that's associated with one. Hence, downloads that are not continues the comparison.
  8. // associated with a frame should only be made for URLs that are either narrows the allowed cases.
  9. // trusted or URLs that have previously been successfully issued using a gives the second allowed case.
  10. // non-privileged frame. completes it: the URL must have been fetched successfully before, from an ordinary frame.
  11. DownloadUrlParameters( begins the constructor declaration.
  12. const GURL& url, is the URL to download.
  13. const net::NetworkTrafficAnnotationTag& traffic_annotation); is a tag describing the network traffic, used for internal accounting.

That constructor leaves render_process_host_id at -1, and it is used in the downloads.resume() code path and most other download resume code paths. DownloadsResumeFunction::Run() calls DownloadItem::Resume(), which calls DownloadItemImpl::ResumeInterruptedDownload(). The latter explains why it takes the unsafe route:

Text
  // Avoid using the WebContents even if it's still around. Resumption requests
  // are consistently routed through the no-renderer code paths so that the
  // request will not be dropped if the WebContents (and by extension, the
  // associated renderer) goes away before a response is received.
  std::unique_ptr<DownloadUrlParameters> download_params(
      new DownloadUrlParameters(GetURL(), traffic_annotation));

Line by line:

  1. // Avoid using the WebContents even if it's still around. says the code deliberately does not use the tab's contents object, even if it exists. WebContents is Chrome's internal representation of a tab's contents.
  2. // are consistently routed through the no-renderer code paths so that the says resumes always go through the path with no renderer.
  3. // request will not be dropped if the WebContents (and by extension, the explains the reason: the request should survive.
  4. // associated renderer) goes away before a response is received. completes it: if the tab or its renderer disappears, the resume should still work.
  5. std::unique_ptr<DownloadUrlParameters> download_params( declares a smart pointer (a pointer that cleans itself up) to the download parameters.
  6. new DownloadUrlParameters(GetURL(), traffic_annotation)); creates the parameters using the unsafe constructor, with the URL and the traffic tag.

The design assumes that a resumed URL was already vetted when the download was first issued. Here the first attempt was deliberately interrupted by the safety check, yet the resume path treats the URL as previously vetted and skips the check entirely. The existing defence, CPSP::CanRequestURL(), is only reached when a render process host id is present, so a download with no associated frame never gets it.

The report's bisect points to commit [redacted] (February 2016) as the likely change that started using the unsafe constructor in the resume code path. The researcher noted that the bisect would be verified later that day.

A "bisect" is a way of finding which code change introduced a bug: you walk through the history of changes, testing at each step, until you find the first one where the bug appears. A "commit" is one saved change to the code.

Impact

An extension holding the downloads permission but without file:// access can download local files. The core bug needs no user interaction and no visible extension page or tab. On its own the extension obtains the file; to read its contents the attacker must chain it with another bug, such as issue 433800617 or issue 435684924, or otherwise convince the user to upload the downloaded file. The report's own example target is the Chrome history file.

In everyday terms: the bug is a way to get a copy of a file out of the house. It is not, by itself, a way to read the copy. That second step needs another weakness or a trick on the user.

Fix

The report does not describe a fix. It states the expected behaviour: an extension cannot download file:// URLs without file permission.

Variants to test

  • Resume an interrupted download through the UI rather than downloads.resume(). The report says the bypass works with all other ways to resume downloads, including UI resumes, so a positive result is a local file arriving after a UI-driven resume of a download that was interrupted by the URL safety check.
  • Resume a download that was interrupted for a reason other than the URL check, then observe whether the resumed request is re-checked. A positive result is a file:// URL being fetched with no CPSP::CanRequestURL() rejection.
  • Try the same start-then-resume pattern from other extension APIs that can initiate downloads, to see whether any of them also end up on the no-renderer resume path. A positive result is a local file downloaded by an extension without file:// access.
  • Chain the downloaded file with a separate bug that can read it, such as the issues referenced in the report, or with a social engineering step that gets the user to upload it. A positive result is the contents of the local file becoming readable to the attacker.

Why test variants? A bug is often one instance of a pattern. If the resume path skips the check, other paths that also resume or restart downloads may skip it too. Testing them tells you how wide the problem is.

Glossary

  • API: a set of commands one program offers to another, like a menu you order from.
  • Bisect: a method of finding the code change that introduced a bug by testing through the history of changes.
  • Bounty: a payment made by a company to a researcher who reports a security bug.
  • Browser process: the trusted part of Chrome that makes security decisions and coordinates everything else.
  • Chaining: combining two or more bugs so that together they achieve more than either alone.
  • Chrome VRP: Google's Chrome Vulnerability Reward Program, which receives and pays for security reports.
  • Commit: one saved change to a codebase.
  • Constructor: a function that builds an object.
  • CPSP: the Chrome component that answers whether a URL is allowed by content settings and permissions.
  • CVE: a public identifier assigned to a known security vulnerability.
  • CVSS: a scoring system for the severity of a vulnerability; the report gives no score.
  • Extension: a small add-on that adds features to Chrome.
  • file:// URL: an address that points at a file on the local disk rather than on the web.
  • Frame: one document inside a browser tab; a tab can contain several.
  • High severity: a rating meaning the bug is serious, though not the most serious category.
  • Inappropriate implementation: a weakness class meaning the code does not enforce a rule it was meant to enforce.
  • Manifest: the file that declares an extension's name, permissions and entry points.
  • Permission: a declared capability an extension must request and be granted.
  • PoC: proof of concept, a small demonstration that the bug is real.
  • Renderer (render process): the sandboxed part of Chrome that turns web pages into what you see.
  • Render process host id: the number identifying which renderer made a request; -1 means none.
  • Resume: restarting a download that was interrupted.
  • Social engineering: convincing a person to do something, such as uploading a file, instead of breaking code.
  • UI: user interface, the parts of the program a person clicks and sees.
  • Unpacked extension: an extension loaded from a local folder rather than installed from the Chrome Web Store.
  • URL: an address, such as a web address or a local file address.
  • WebContents: Chrome's internal representation of a tab's contents.
  • Weak reference: a reference to an object that does not keep it alive; used so callbacks do not crash if the object is gone.

More by Alesandro Ortiz

View all

33 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.