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

Inappropriate implementation in Geolocation (CVE-2026-13867)

A logic flaw in the browser's geolocation service lets an about:blank popup keep receiving location updates after the user revokes permission for the parent site. An attacker could stealthily track the user because the tracking indicator is also dismissed.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A potential logic flaw allows about:blank popups to bypass geolocation permission revocation and continue receiving location updates. The service incorrectly uses the frame's URL (about:blank) instead of its inherited origin when tracking active streams, causing origin-based revocation checks to fail. This allows an attacker to stealthily track the user after permission is revoked, as the browser's UI tracking indicator is simultaneously dismissed.

Affected files:

  • content/browser/geolocation/geolocation_service_impl.cc
  • services/device/geolocation/geolocation_context.cc

Estimated timestamp from git blame: 2025-12-01

Description

A potential logic vulnerability exists in the browser's Geolocation service that allows about:blank popups to maintain persistent access to a user's location even after the user explicitly revokes the site's geolocation permission. The bug arises from a mismatch between the URL used to register the geolocation stream and the origin used to revoke it.

Because the revocation also clears the location-tracking UI indicator (the crosshairs icon), the user is left with the false impression that location tracking has successfully stopped, making this a stealthy privacy bypass.

Technical Details

When a frame requests geolocation, GeolocationServiceImpl::CreateGeolocationWithPermissionResult (in content/browser/geolocation/geolocation_service_impl.cc) saves both the frame's origin and URL:

C++
  requesting_origin_ =
      render_frame_host_->GetMainFrame()->GetLastCommittedOrigin();
  auto requesting_url =
      render_frame_host_->GetMainFrame()->GetLastCommittedURL();

For an about:blank popup opened by https://example.com, requesting_origin_ is the inherited tuple origin https://example.com, but requesting_url is the GURL about:blank. The service binds the device stream by calling geolocation_context->BindGeolocation(..., requesting_url, ...). The resulting GeolocationImpl stores about:blank as its url_.

When the user revokes the permission for https://example.com, GeolocationServiceImpl::HandlePermissionResultChange correctly dismisses the UI tracking indicator by calling DecrementActivityCount(). It then attempts to close the active location stream by calling:

C++
  geolocation_context->OnPermissionUpdated(requesting_origin_, permission_level);

In services/device/geolocation/geolocation_context.cc, OnPermissionUpdated tries to erase affected streams:

C++
  std::erase_if(impls_, [&origin, &permission_level](const auto& impl) {
    if (!origin.IsSameOriginWith(impl->url())) {
      return false;
    }
    // ... notify and erase
  });

Here, it compares the tuple origin (https://example.com) against impl->url() (about:blank). The method url::Origin::IsSameOriginWith(const GURL&) converts the GURL to an origin to perform the comparison. Because about:blank uses a restricted scheme, it converts to a unique, opaque origin. A tuple origin is never same-origin with an opaque origin, so the check evaluates to false.

Consequently, the stream is never erased, and the popup continues to receive real-time location updates from the OS.

Suggested Steps to Reproduce

(Note: These are potential steps to trigger the vulnerability, as our tooling agent does not currently have the ability to run code to provide a working proof of concept.)

  1. An attacker hosts a malicious page at https://example.com and tricks the user into granting Geolocation permissions.
  2. The attacker's page executes window.open("about:blank") to open a popup.
  3. The attacker injects a script into the popup: popup.document.write('<script>navigator.geolocation.watchPosition(pos => sendToAttacker(pos));</script>').
  4. The user notices the browser's location tracking icon and revokes Geolocation permission for https://example.com via Chrome's Site Settings.
  5. The browser's tracking icon immediately disappears.
  6. Observe: The watchPosition callback inside the about:blank popup continues to fire, and the attacker continues receiving the user's location.

Suggested Fix

The device service's GeolocationContext should track streams by url::Origin rather than GURL.

  1. Update device::mojom::GeolocationContext::BindGeolocation to take a url.mojom.Origin instead of a url.mojom.Url. (Note: This aligns with an existing TODO in geolocation_context.mojom referencing crbug.com/453708846).
  2. Update GeolocationServiceImpl::CreateGeolocationWithPermissionResult to pass requesting_origin_ instead of requesting_url to BindGeolocation.
  3. Update GeolocationImpl to store a url::Origin as a class member and compare against it directly in OnPermissionUpdated.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

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

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The geolocation service tracks active streams by the frame's URL rather than its origin, so an about:blank popup's stream is not matched when permission is revoked for the parent origin.

Impact

An attacker could continue receiving the user's location after permission revocation, while the tracking indicator is dismissed, giving a false impression that tracking stopped.

What the attacker needed

Victim grants geolocation permission; attacker can open an about:blank popup; victim revokes permission later

The fix

The device service should track streams by origin rather than URL, passing the requesting origin to BindGeolocation and comparing origins in OnPermissionUpdated.

How it was found

  1. The attacker hosts a page and tricks the user into granting geolocation permission.
  2. The attacker's page opens an about:blank popup.
  3. The attacker injects a script into the popup that calls watchPosition and sends the position to the attacker.
  4. The user revokes geolocation permission for the site via browser settings.
  5. The tracking icon disappears, but the popup's watchPosition callback continues to fire.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a website asks to know your location, the browser shows an icon and lets you revoke that permission later. This report says a popup window that starts blank can keep getting your location even after you revoke permission, and the icon disappears so you think tracking stopped. The mistake is that the browser checks the popup's blank address instead of the website that opened it.

What is Access control?

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.

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.