Skip to content
Access control Advisory Advanced CVE-2025-3071

Inappropriate implementation in Navigations (CVE-2025-3071)

A window could perform a same-document navigation between its original URL and about:blank, and when another window in the same namespace navigated it back, the origin changed to that of the second window. This allowed a data: window to control another window whose visible URL was the original http/https URL but whose origin was opaque.

David Erceg Follow

Originally disclosed on Chrome VRP

Bounty$2,000 Low View original
  • Fix shipped in 5.1 years

VULNERABILITY DETAILS
It's possible for a window to perform a same document navigation between its original URL (e.g. a http/https URL) and about:blank. If another window within the same namespace navigates the first window to about:blank and then goes back, a same document navigation will be performed, though the origin will now have changed to that of the second window.

This allows, for example, a data: window to control another window whose origin is opaque (the same opaque origin as the data: window), but whose visible URL is the original (http/https) URL.

VERSION
Chrome Version: Tested on 80.0.3987.116 (stable) and 82.0.4067.0 (canary)
Operating System: Windows 10, version 1909

REPRODUCTION CASE

  1. Download the attached files into a directory, then run the following command:

python3 -m http.server 8080

  1. In the browser, navigate to the following location:

http://localhost:8080/index.html

  1. Wait three seconds.
  2. index.html contains two iframes: a data: iframe and an iframe pointing to http://localhost:8080/iframe.html nested within it.

Click within the innermost iframe. This should open a new window with a visible URL of http://localhost:8080/iframe.html and an opaque origin (that matches the origin of the data: iframe on the original page).

The data: iframe controls this window. To demonstrate this, it adds the following content to the new page:

Content set by data: iframe

This seemingly shouldn't be possible, as the data: frame has an opaque origin, one that's not the same as the origin represented by a http://localhost:8080 URL.

CREDIT INFORMATION
Reporter credit: David Erceg

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

This is a Chrome VRP report about navigation handling in Google Chrome, tracked as CVE-2025-3071 and classified as an inappropriate implementation in Navigations. The affected feature is same document navigation, the mechanism by which a window moves between two URLs that share an origin without loading a new document. The report shows that this mechanism can be made to run across an origin boundary, so that a window ends up with a new origin while still displaying its original URL.

The reporter is David Erceg. The issue was rated low severity and paid a bounty of 2000.00 USD, and it was disclosed on 2025-04-01.

Setup

The behaviour was tested on two Chrome builds:

  • Chrome 80.0.3987.116 (stable)
  • Chrome 82.0.4067.0 (canary)

The operating system was Windows 10, version 1909. The reproduction needs a local web server and a set of attached files placed in one directory. No accounts or special configuration are described.

Finding it

The researcher noticed that a window can perform a same document navigation between its original URL, for example an http or https URL, and about:blank. The interesting case is when a second window in the same namespace drives that navigation: if the second window navigates the first window to about:blank and then goes back, the first window performs a same document navigation, but its origin has now changed to the origin of the second window.

The practical consequence described is that a data: window can control another window whose origin is opaque, the same opaque origin as the data: window, while the visible URL of that window is still the original http or https URL. That combination looked wrong because the origin shown by the URL and the origin actually in effect no longer match.

Exploitation

Step 1: serve the files locally

The attached files are placed in a directory and served with Python's built in HTTP server:

Bash
python3 -m http.server 8080

This makes the test pages available on port 8080 of the local machine.

Step 2: open the entry page

The browser is pointed at the following location:

Text
http://localhost:8080/index.html

Step 3: wait

The researcher waits three seconds before interacting with the page.

Step 4: click inside the innermost frame

index.html contains two iframes: a data: iframe, and, nested within it, an iframe pointing to:

Text
http://localhost:8080/iframe.html

Clicking within the innermost iframe opens a new window. That window has a visible URL of http://localhost:8080/iframe.html and an opaque origin that matches the origin of the data: iframe on the original page.

The data: iframe now controls the new window. To demonstrate this, it adds the following content to the new page:

Text
Content set by data: iframe

According to the researcher this seemingly should not be possible, because the data: frame has an opaque origin, one that is not the same as the origin represented by an http://localhost:8080 URL.

Root cause

The report attributes the behaviour to how same document navigations are handled when a window moves between its original URL and about:blank under the direction of another window in the same namespace. Navigating to about:blank and then going back is treated as a same document navigation, and the origin is updated to that of the window that performed the navigation. The report does not explain why the origin is updated this way. The report does not go into the underlying implementation.

Impact

A data: window can control another window whose origin is opaque and identical to its own, while that window displays an http or https URL. A user or a relying party looking at the visible URL would see the original address, even though the document in that window is under the control of the data: frame. The report frames this as a mismatch between the URL shown and the origin in effect. It does not describe any further escalation, and the issue was rated low severity.

Fix

Variants to test

  • Repeat the sequence with a different scheme in place of data:, such as blob: or filesystem:, and check whether the controlling window can still write into a window that shows an http or https URL. A positive result is content from the controlling frame appearing in a window whose visible URL belongs to another origin.
  • Vary the nesting: place the http iframe directly inside the data: iframe, as in the report, and then try deeper nesting or sibling frames in the same namespace. A positive result is the same origin mismatch appearing at a different depth.
  • Change the timing of the back navigation relative to the click that opens the new window. A positive result is the same document navigation completing with the origin of the second window rather than the original one.
  • Try the same pattern with a top level window instead of an iframe as the controlling window. A positive result is a popup or tab whose URL and effective origin disagree.

Hunting notes

This kind of bug tends to hide in navigation code paths that special case about:blank, in window opening and window reuse logic, and wherever a same document navigation is decided without rechecking the origin of the initiating window. During recon, the signals are pages that open windows or frames and then navigate them back and forth, and any place where a window's URL can be changed by a different window in the same namespace. The researcher showed impact by making the data: frame write visible content into the target window, which is a direct demonstration that the origin boundary had been crossed rather than a theoretical claim.

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.

What happened, in plain words

A web browser has a rule that keeps websites apart. A page from one site should not be able to read or change a page from another site. This rule is called the same-origin policy, and it is one of the main things that stops a malicious page from taking over your bank tab.

This report describes a case where Google Chrome allowed a page to control a window it should not have. A page with a special kind of address, a data: address, was able to reach into a second window that showed an ordinary http://localhost:8080 address and put its own text on that page. The address bar still showed the ordinary address, but the page inside was being controlled by the data: page. The two addresses should have been treated as completely separate, and they were not.

The bug was reported by David Erceg through Google's Chrome Vulnerability Reward Program (VRP), a scheme that pays people for finding and reporting security bugs in Chrome. It was tracked as CVE-2025-3071, rated low severity, and paid a bounty of 2000.00 USD. It was disclosed on 2025-04-01.

The pieces you need to know

Before the steps make sense, here are the ideas the report relies on.

  • Origin: the combination of protocol (such as http), host (such as localhost) and port (such as 8080). Two pages with the same origin may interact freely. Two pages with different origins may not. Think of it as the building address on a letter: same building, same mailroom; different building, different mailroom.
  • Same-origin policy: the browser rule that enforces the separation above. It is why a random website cannot read your webmail.
  • Opaque origin: an origin that is deliberately unique and matches nothing else. Pages loaded from data: addresses get one. It is like a temporary identity that is not registered anywhere, so no other page can claim to share it.
  • data: URL: an address that carries the page content inside the address itself, rather than pointing at a server. It is a way to hand the browser a small page without a web server.
  • iframe: a page embedded inside another page, like a picture frame inside a wall. The outer page is the parent, the inner page is the child.
  • Window: a browser window or tab. Scripts in one window can sometimes act on another window, depending on origin.
  • Namespace: the grouping the browser uses to decide which windows may talk to each other. Windows opened from the same context share a namespace.
  • Same document navigation: moving a window from one address to another without loading a fresh document. The page stays in memory and only the address changes. It is like walking to a different room in the same house rather than moving house.
  • about:blank: the browser's built-in empty page. It is often used as a starting point before content is written into a window.
  • CVE: a public identifier for a security flaw, so people can refer to it unambiguously.

Setup

The researcher tested on two Chrome builds:

  • Chrome 80.0.3987.116 (stable)
  • Chrome 82.0.4067.0 (canary)

The operating system was Windows 10, version 1909. The test needs a local web server and a set of attached files placed in one directory. No accounts or special configuration are described.

Finding it

The researcher noticed that a window can perform a same document navigation between its original URL, for example an http or https URL, and about:blank. The interesting case is when a second window in the same namespace drives that navigation: if the second window navigates the first window to about:blank and then goes back, the first window performs a same document navigation, but its origin has now changed to the origin of the second window.

The practical consequence described is that a data: window can control another window whose origin is opaque, the same opaque origin as the data: window, while the visible URL of that window is still the original http or https URL. That combination looked wrong because the origin shown by the URL and the origin actually in effect no longer match.

Exploitation

Step 1: serve the files locally

The attached files are placed in a directory and served with Python's built in HTTP server:

Bash
python3 -m http.server 8080

Line by line:

  • python3 runs the Python 3 interpreter.
  • -m http.server tells Python to run its built-in web server module.
  • 8080 is the port number the server listens on.

Why this step: the test pages need to be reachable at an http:// address so that the browser treats them as a normal website with a normal origin. A local server gives that without needing the internet.

Step 2: open the entry page

The browser is pointed at the following location:

Text
http://localhost:8080/index.html

Line by line:

  • http:// is the protocol.
  • localhost means this same computer.
  • :8080 is the port the Python server is listening on.
  • /index.html is the file to load.

Why this step: index.html is the page that sets up the two iframes used in the next step.

Step 3: wait

The researcher waits three seconds before interacting with the page. The report does not explain what the wait is for, so treat it as part of the reproduction timing.

Step 4: click inside the innermost frame

index.html contains two iframes: a data: iframe, and, nested within it, an iframe pointing to:

Text
http://localhost:8080/iframe.html

Line by line:

  • The outer iframe is loaded from a data: address, so it has an opaque origin.
  • The inner iframe is loaded from the local server, so it has the origin http://localhost:8080.
  • Nesting means the inner frame sits inside the outer frame, like a box inside a box.

Clicking within the innermost iframe opens a new window. That window has a visible URL of http://localhost:8080/iframe.html and an opaque origin that matches the origin of the data: iframe on the original page.

The data: iframe now controls the new window. To demonstrate this, it adds the following content to the new page:

Text
Content set by data: iframe

Line by line:

  • The text is the visible proof that the data: frame reached into the new window.
  • If the origin separation worked, the data: frame would be refused and the text would never appear.

According to the researcher this seemingly should not be possible, because the data: frame has an opaque origin, one that is not the same as the origin represented by an http://localhost:8080 URL.

Root cause

The report attributes the behaviour to how same document navigations are handled when a window moves between its original URL and about:blank under the direction of another window in the same namespace. Navigating to about:blank and then going back is treated as a same document navigation, and the origin is updated to that of the window that performed the navigation. The report does not explain why the origin is updated this way. The report does not go into the underlying implementation.

Impact

A data: window can control another window whose origin is opaque and identical to its own, while that window displays an http or https URL. A user or a relying party looking at the visible URL would see the original address, even though the document in that window is under the control of the data: frame. The report frames this as a mismatch between the URL shown and the origin in effect.

Fix

Variants to test

  • Repeat the sequence with a different scheme in place of data:, such as blob: or filesystem:, and check whether the controlling window can still write into a window that shows an http or https URL. A positive result is content from the controlling frame appearing in a window whose visible URL belongs to another origin.
  • Vary the nesting: place the http iframe directly inside the data: iframe, as in the report, and then try deeper nesting or sibling frames in the same namespace. A positive result is the same origin mismatch appearing at a different depth.
  • Change the timing of the back navigation relative to the click that opens the new window. A positive result is the same document navigation completing with the origin of the second window rather than the original one.
  • Try the same pattern with a top level window instead of an iframe as the controlling window. A positive result is a popup or tab whose URL and effective origin disagree.

Hunting notes

This kind of bug tends to hide in navigation code paths that special case about:blank, in window opening and window reuse logic, and wherever a same document navigation is decided without rechecking the origin of the initiating window. During recon, the signals are pages that open windows or frames and then navigate them back and forth, and any place where a window's URL can be changed by a different window in the same namespace. The researcher showed impact by making the data: frame write visible content into the target window, which is a direct demonstration that the origin boundary had been crossed rather than a theoretical claim.

Glossary

  • about:blank: the browser's built-in empty page, often used as a starting point before content is written into a window.
  • Bounty: a payment made by a company to someone who reports a security bug.
  • Canary: an early, less stable build of a browser used for testing upcoming changes.
  • Chrome VRP: Chrome Vulnerability Reward Program, Google's scheme for paying people who report Chrome security bugs.
  • Disclosure: the point at which details of a security bug are made public.
  • iframe: a page embedded inside another page.
  • localhost: the name a computer uses to refer to itself.
  • Opaque origin: an origin that is deliberately unique and matches nothing else, given to pages such as those loaded from data: addresses.
  • Origin: the combination of protocol, host and port that identifies where a page came from.
  • Port: a numbered channel on a computer that a server listens on.
  • Same-origin policy: the browser rule that stops pages from different origins reading or changing each other.
  • Severity: a rating of how serious a security bug is.
  • Stable: the normal, released build of a browser that most people use.
  • Window: a browser window or tab.

More by David Erceg

View all

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