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

Missing authorization in NFC (CVE-2026-95290)

The WebNFC implementation on Android and iOS lacks a check to reject requests from documents with opaque origins, so permission checks fall back to the WebContents visible URL. A compromised renderer could exploit this in a sandboxed popup to inherit WebNFC permissions previously granted to a victim site.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The WebNFC implementation (NFCHost) on Android and iOS potentially lacks an explicit check to reject requests from documents with opaque origins. Consequently, when a sandboxed document has an opaque top-level origin, permission checking falls back to the WebContents visible URL. A compromised renderer could potentially exploit this behavior inside a sandboxed popup to inherit WebNFC permissions previously granted to a victim site.

Affected files:

  • content/browser/android/nfc_host.cc
  • content/browser/ios/nfc_host.mm

Estimated timestamp from git blame: 2022-03-15

Potential Root Cause

In NFCHost::GetNFC (defined in content/browser/android/nfc_host.cc:42 and content/browser/ios/nfc_host.mm:312), the browser processes WebNFC Mojo binding requests without verifying if the requesting document's origin is opaque.

By contrast, other device binders in RenderFrameHostImpl explicitly reject opaque top-level origins (e.g., WebUSB and WebBluetooth):

C++
if (GetOutermostMainFrame()->GetLastCommittedOrigin().opaque()) {
  mojo::ReportBadMessage("WebUSB is not allowed when the top-level document has an opaque origin.");
  return;
}

In the absence of this check, an opaque-origin frame is allowed to query permissions. Under components/permissions/permission_util.cc:473, if the frame's origin is opaque (which yields an empty URL representation) and it resides in the primary main frame, the permission manager falls back to resolving permissions using WebContents::GetVisibleURL():

C++
GURL origin = render_frame_host->GetLastCommittedOrigin().GetURL();
if (origin.is_empty() && render_frame_host->IsInPrimaryMainFrame()) {
  if (!web_contents->GetVisibleURL().is_empty()) {
    origin = web_contents->GetVisibleURL().DeprecatedGetOriginAsURL();
  }
}
return origin;

By manipulating the visible URL of a new tab/popup, a compromised renderer can spoof the origin passed to the permission controller.

Potential Attack Scenario

Because our security analysis is based on static code tracing and we do not currently have the automated tooling or environment to run code or execute a live proof of concept, we present these as potential steps a compromised renderer might take to exploit the flaw:

  1. The compromised renderer hosts a sandboxed frame with sandbox="allow-scripts allow-popups" (which propagates an opaque origin but allows popups).
  2. The sandboxed frame requests a new popup window via mojom::FrameHost::CreateNewWindow. The popup inherits the sandbox flags and receives an opaque initial origin, but is hosted in the compromised renderer.
  3. The compromised renderer initiates a navigation on the popup to a secure victim origin (e.g., https://victim.example/), which installs a pending NavigationEntry.
  4. The compromised renderer suppresses the DidAccessInitialMainDocument notification IPC. This keeps NavigationControllerImpl::IsUnmodifiedBlankTab() returning true.
  5. Because of this, WebContents::GetVisibleURL() evaluates to https://victim.example/ instead of the initial blank URL.
  6. When the popup requests the WebNFC interface via BrowserInterfaceBroker, the browser falls back to the visible URL (https://victim.example/) to check permissions. If the victim site has a prior WebNFC permission grant, the lookup succeeds.
  7. The browser binds the NFC pipe to the attacker's renderer process. The attacker can then cancel the pending navigation to prevent the connection from tearing down when a new document would have committed.

Suggested Fix

Add an explicit check to reject opaque top-level origins in NFCHost::GetNFC in both Android (content/browser/android/nfc_host.cc) and iOS (content/browser/ios/nfc_host.mm) implementations:

C++
if (render_frame_host->GetOutermostMainFrame()->GetLastCommittedOrigin().opaque()) {
  mojo::ReportBadMessage("WebNFC is not allowed when the top-level document has an opaque origin.");
  return;
}

Evaluated with Chrome root at commit: bf775e5d75cb9e1767e2cd02cc93efa0077d14a5


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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

Likely, the NFCHost::GetNFC function does not verify that the requesting document's origin is opaque, unlike other device binders, allowing permission checks to fall back to the visible URL.

Impact

A compromised renderer could potentially inherit WebNFC permissions granted to a victim site, allowing unauthorised NFC access.

What the attacker needed

Compromised renderer; victim site has prior WebNFC permission

The fix

Add an explicit check to reject opaque top-level origins in NFCHost::GetNFC for both Android and iOS.

How it was found

  1. A compromised renderer hosts a sandboxed frame with allow-scripts and allow-popups.
  2. The sandboxed frame requests a new popup window, which inherits sandbox flags and an opaque origin.
  3. The renderer navigates the popup to a victim origin, creating a pending navigation entry.
  4. The renderer suppresses the DidAccessInitialMainDocument notification, keeping the tab marked as unmodified blank.
  5. The popup requests the WebNFC interface, and the browser uses the visible URL (victim origin) for permission checks.
  6. If the victim site has a prior WebNFC permission grant, the browser binds the NFC pipe to the attacker's renderer.

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.

WebNFC lets websites talk to nearby NFC tags. Normally, a site must ask the user for permission first. This report says a malicious page could trick the browser into thinking it is a trusted site that already has permission, by using a special kind of popup window.

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.