Skip to content
Misconfiguration Advisory Intermediate CVE-2025-6556

Insufficient policy enforcement in Loader (CVE-2025-6556)

A secure page could load an insecure image through a data-URI iframe without the browser upgrading the request to HTTPS, unlike a direct image load which was upgraded. An attacker able to inject content could therefore cause insecure content to be fetched, undermining mixed-content protection.

Shaheen Fazim Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Low View original
  • Fix shipped in 2.5 years

VULNERABILITY DETAILS
Typically, a https site can't use or access resources from a http site. The browser will block attempts by a https site to include a http resources.

this vulnerability is similar to https://bugs.chromium.org/p/chromium/issues/detail?id=957002

REPRODUCTION CASE

  1. Load a https site example: https://www.google.com

  2. Use console to open popup tab using:

w = open("about:blank");

  1. Try to load http hosted image using:

w.document.write('');

in the above case the system will warn about mixed content and upgrades the link to https (http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg).

  1. Try to load again using data uri inside iframe using:

w.document.write('<iframe src="data:text/html,<img src=http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg>"></iframe>');

Here the system also warns about mixed content but fails to upgrade the link to https.

In Case of Step 3:
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure element 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

In Case of Step 4:
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure image 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This content should also be served over HTTPS.

First one upgrades while second one fails to upgrade but warns with (This content should also be served over HTTPS).

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

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

Context

Chrome's mixed content protection is meant to stop an HTTPS page from pulling in resources over plain HTTP. When a page served over HTTPS requests an insecure element, the browser either blocks it or silently rewrites the URL to HTTPS, depending on the element type. The report looks at a case where that rewriting does not happen, so an insecure resource is still requested from an HTTPS origin.

The affected component is Chrome's Loader, and the weakness is classified as insufficient policy enforcement. The issue was handled through the Chrome VRP and disclosed on 24 June 2025 as CVE-2025-6556, with a bounty of 1000.00 USD and a low severity rating. The researcher is Shaheen Fazim. The report itself notes that the behaviour is similar to an earlier Chromium issue, 957002.

Setup

The reproduction needs nothing beyond a normal Chrome install and its developer console. The starting point is any HTTPS page; the report uses Google's homepage. No accounts, extensions or special flags are mentioned.

Finding it

The researcher started from the rule that an HTTPS site cannot use or access resources from an HTTP site, because the browser blocks attempts to include HTTP resources. The interesting question was whether every path to loading such a resource is treated the same way. Two ways of injecting the same insecure image into a popup were compared: writing the image tag directly, and writing an iframe whose src is a data: URI containing the image tag. Both produce a mixed content warning, but only the first is upgraded to HTTPS.

Exploitation

Step 1: open an HTTPS page

Load an HTTPS site, for example:

Text
https://www.google.com

This is the secure origin that will host the injected content.

Step 2: open a popup from the console

From the console, open a blank popup tab:

JavaScript
w = open("about:blank");

The returned window handle w is used to write into the new tab's document.

Step 3: write an insecure image directly

Write an image tag pointing at an HTTP-hosted image:

In this case the browser warns about mixed content and upgrades the link to HTTPS. The console message is:

Text
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure element 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

The console message says the request was automatically upgraded to HTTPS.

Step 4: write the same image inside a data URI iframe

Now load the image again, this time inside an iframe whose source is a data: URI:

JavaScript
w.document.write('<iframe src="data:text/html,<img src=http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg>"></iframe>');

Here the browser still warns about mixed content, but it does not upgrade the link to HTTPS. The console message is:

Text
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure image 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This content should also be served over HTTPS.

The difference between the two messages is the whole finding: the first says the request was automatically upgraded to HTTPS, the second only says the content should also be served over HTTPS. The first upgrades, the second fails to upgrade but still warns.

Root cause

The mixed content upgrade is applied when the insecure element is written directly into the document, but not when the same element is parsed inside a data: URI iframe. The report does not explain why the upgrade is skipped for the nested document; it only shows that the second case is warned about but not upgraded. The existing defence, the automatic upgrade, therefore does not cover this path.

Impact

The report does not describe an attacker scenario or a concrete harm beyond the failed upgrade. What it establishes is that an HTTPS page can end up requesting an image over HTTP through a data: URI iframe, which the mixed content policy is supposed to prevent. The severity assigned to the issue is low.

Fix

The behaviour it describes implies that the upgrade should also apply to resources loaded inside data: URI iframes, so that the second case is rewritten to HTTPS in the same way as the first.

Variants to test

  1. Repeat the two-step comparison with other element types, such as scripts, stylesheets or media, written directly and then inside a data: URI iframe. A positive result is a direct write that is upgraded while the iframe version is only warned about.
  2. Try other nested document containers, for example an iframe with a srcdoc attribute or a blob URL, carrying the same HTTP image. A positive result is the same split between warning and upgrade.
  3. Vary the popup target: write into the popup as in the report, and also into the current document, to see whether the upgrade depends on the window handle. A positive result is the insecure request surviving in one case but not the other.

Hunting notes

This kind of bug hides in the boundary between a page and documents it creates indirectly, such as data: and blob URLs, where policy checks applied to the top document may not be re-applied. During recon, the signal is a mixed content console message that says the content should be served over HTTPS rather than saying the request was automatically upgraded. The report puts the two cases side by side with their console output, showing the inconsistency between the upgrade and the warning.

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

What happened, in plain words

When you visit a website that starts with https://, your browser is supposed to protect you from loading things over the older, unencrypted http://. If a secure page tries to pull in an insecure image, script or stylesheet, Chrome either blocks it or quietly rewrites the address to the secure version. This report shows a path where Chrome still shows a warning but does not perform the rewrite.

The affected part of Chrome is called the Loader, which is the piece of the browser responsible for fetching resources like images and scripts. The weakness is filed as insufficient policy enforcement, meaning a rule exists but is not applied everywhere it should be. The issue was handled through the Chrome VRP (Vulnerability Reward Program, Google's scheme for paying people who report security bugs), disclosed on 24 June 2025 as CVE-2025-6556, rated low severity, with a bounty of 1000.00 USD. The researcher is Shaheen Fazim. The report notes the behaviour is similar to an earlier Chromium issue, 957002.

Background: the ideas you need

Before the steps make sense, a few concepts from zero:

  • HTTP and HTTPS. HTTP is the original way browsers talk to web servers. HTTPS is the same conversation wrapped in encryption, so nobody in between can read or tamper with it. A page loaded over HTTPS is called a secure origin.
  • Mixed content. When an HTTPS page pulls in a resource over plain HTTP, the page is "mixed": partly secure, partly not. The insecure part can be tampered with, which defeats the point of HTTPS. Browsers therefore have a mixed content policy: block the insecure resource, or automatically rewrite its address to HTTPS.
  • The developer console. Every browser has a hidden panel (usually opened with F12) where you can type JavaScript and see messages the browser prints, including warnings. It is a normal, built-in tool, no extensions needed.
  • document.write. A JavaScript command that inserts HTML directly into a page while it is being built. Think of it as typing raw page source into the page from the console.
  • Popup window handle. open("about:blank") opens a new, empty tab and returns a handle (a variable pointing at that tab) so you can control it from code.
  • data: URI. A way of embedding a whole document inside a single address string, instead of pointing at a server. data:text/html,... means "here is a small HTML page, inline". It is like writing a note on a sticky pad instead of mailing a letter.
  • iframe. A frame inside a page that loads another document. It is a window within a window.

Setup

The reproduction needs nothing beyond a normal Chrome install and its developer console. The starting point is any HTTPS page; the report uses Google's homepage. No accounts, extensions or special flags are mentioned.

Finding it

The researcher started from the rule that an HTTPS site cannot use or access resources from an HTTP site, because the browser blocks attempts to include HTTP resources. The interesting question was whether every path to loading such a resource is treated the same way. Two ways of injecting the same insecure image into a popup were compared: writing the image tag directly, and writing an iframe whose src is a data: URI containing the image tag. Both produce a mixed content warning, but only the first is upgraded to HTTPS.

Exploitation

Step 1: open an HTTPS page

Load an HTTPS site, for example:

Text
https://www.google.com

This is the secure origin that will host the injected content. Starting from a real HTTPS page matters because the mixed content policy only kicks in when the page itself is secure.

Step 2: open a popup from the console

From the console, open a blank popup tab:

JavaScript
w = open("about:blank");

Line by line: open("about:blank") asks the browser to open a new window showing a blank page. The result is stored in the variable w, which is the handle to that new tab. Every later command uses w to write into the popup's document rather than the page you are on. The reason for using a popup is simply to have a fresh, empty document to inject into.

Step 3: write an insecure image directly

Write an image tag pointing at an HTTP-hosted image:

Line by line: w.document is the popup's page content. .write(...) inserts the string as HTML. The string is an <img> tag whose src (the address of the image) is an http:// URL. So we are asking the secure popup to display an insecure image, which is exactly the situation the mixed content policy is meant to handle.

In this case the browser warns about mixed content and upgrades the link to HTTPS. The console message is:

Text
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure element 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html

The console message says the request was automatically upgraded to HTTPS. In everyday terms: the browser noticed the insecure address, said "not on my watch", and quietly swapped http for https before fetching.

Step 4: write the same image inside a data URI iframe

Now load the image again, this time inside an iframe whose source is a data: URI:

JavaScript
w.document.write('<iframe src="data:text/html,<img src=http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg>"></iframe>');

Line by line: again we write into the popup with w.document.write. This time the HTML is an <iframe> whose src is a data:text/html,... URI. That URI contains a tiny HTML document, and inside it is the same <img> tag pointing at the same http:// image. So the insecure image is now one level deeper: it lives inside a document that itself lives inside the popup.

Here the browser still warns about mixed content, but it does not upgrade the link to HTTPS. The console message is:

Text
Mixed Content: The page at 'https://www.google.com/' was loaded over HTTPS, but requested an insecure image 'http://www.clascertification.com/_img/_public/actualites/medium_52-Cap_Sici.jpg'. This content should also be served over HTTPS.

The difference between the two messages is the whole finding: the first says the request was automatically upgraded to HTTPS, the second only says the content should also be served over HTTPS. The first upgrades, the second fails to upgrade but still warns. In everyday terms: the browser saw the insecure address, tutted, and let it through anyway.

Root cause

The mixed content upgrade is applied when the insecure element is written directly into the document, but not when the same element is parsed inside a data: URI iframe. The report does not explain why the upgrade is skipped for the nested document; it only shows that the second case is warned about but not upgraded. The existing defence, the automatic upgrade, therefore does not cover this path.

A useful comparison: imagine a building with a security guard at the front door who checks every visitor. If a visitor arrives through a side entrance that the guard does not watch, the check is skipped even though the rule still exists. The data: URI iframe is that side entrance.

Impact

The report does not describe an attacker scenario or a concrete harm beyond the failed upgrade. What it establishes is that an HTTPS page can end up requesting an image over HTTP through a data: URI iframe, which the mixed content policy is supposed to prevent. The severity assigned to the issue is low.

Fix

The behaviour it describes implies that the upgrade should also apply to resources loaded inside data: URI iframes, so that the second case is rewritten to HTTPS in the same way as the first.

Variants to test

  1. Repeat the two-step comparison with other element types, such as scripts, stylesheets or media, written directly and then inside a data: URI iframe. A positive result is a direct write that is upgraded while the iframe version is only warned about.
  2. Try other nested document containers, for example an iframe with a srcdoc attribute or a blob URL, carrying the same HTTP image. A positive result is the same split between warning and upgrade.
  3. Vary the popup target: write into the popup as in the report, and also into the current document, to see whether the upgrade depends on the window handle. A positive result is the insecure request surviving in one case but not the other.

Hunting notes

This kind of bug hides in the boundary between a page and documents it creates indirectly, such as data: and blob URLs, where policy checks applied to the top document may not be re-applied. During recon, the signal is a mixed content console message that says the content should be served over HTTPS rather than saying the request was automatically upgraded. The report puts the two cases side by side with their console output, showing the inconsistency between the upgrade and the warning.

Glossary

  • HTTPS: the encrypted version of HTTP, the protocol browsers use to talk to web servers; a page loaded this way is a secure origin.
  • HTTP: the original, unencrypted web protocol; resources fetched this way can be read or altered in transit.
  • Mixed content: a secure (HTTPS) page that pulls in some resources over insecure (HTTP).
  • Mixed content policy: the browser rule that blocks or rewrites insecure resources on a secure page.
  • Automatic upgrade: the browser silently changing an http:// address to https:// before fetching it.
  • Loader: the part of Chrome responsible for fetching resources such as images, scripts and stylesheets.
  • Insufficient policy enforcement: a weakness where a security rule exists but is not applied in every place it should be.
  • CVE: a public identifier for a known security vulnerability, here CVE-2025-6556.
  • Chrome VRP: Google's Vulnerability Reward Program, which pays researchers for reporting Chrome security bugs.
  • Bounty: the money paid to a researcher for a valid report.
  • Severity: a rating of how serious a vulnerability is; here, low.
  • Developer console: a built-in browser panel for running JavaScript and reading browser messages and warnings.
  • JavaScript: the programming language that runs inside web pages and in the browser console.
  • document.write: a JavaScript command that inserts HTML into a page as it is being built.
  • Popup window handle: the variable returned by open(...) that lets code control the new tab.
  • about:blank: a special address that opens an empty page.
  • data: URI: an address that contains an entire document inline, rather than pointing at a server.
  • src: the attribute that holds the address of a resource, such as an image or an iframe's document.
  • srcdoc: an iframe attribute that holds the frame's HTML inline instead of pointing at a URL.
  • Blob URL: an address that points at data held in the browser's memory rather than on a server.
  • Origin: the combination of scheme (http or https), host and port that identifies where a page came from.
  • Recon: the exploratory phase of security testing, looking for signals that something behaves unexpectedly.

More by Shaheen Fazim

View all

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

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.