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

Inappropriate implementation in NFC (CVE-2026-11108)

A missing return statement in the NFC implementation allows a background tab to bypass the visibility gate and queue NFC write or lock operations. An attacker could silently overwrite or permanently lock a physical NFC tag when the user later taps it, even while using another app.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 56 days

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 without the security team.

Overview: A missing return statement in NfcImpl.java allows NFC push and makeReadOnly operations to proceed even when the tab is hidden and operations should be suspended. This bypasses the Web NFC visibility-gate security model, enabling a background tab to silently overwrite or permanently lock physical NFC tags. The physical modification occurs successfully despite a subsequent Mojo protocol error on the renderer side.

Affected files:

  • services/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java

Estimated timestamp from git blame: 2021-12-14

Background

Web NFC requires that NFC operations be suspended when the page is not visible to the user (e.g., when the tab is backgrounded). This is implemented in Chrome for Android using the mOperationsSuspended flag in NfcImpl.java.

Potential Vulnerability

A logic error exists in services/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java that allows a background tab to bypass this visibility gate. In both the push() (lines 208-213) and makeReadOnly() (lines 257-262) methods, there is a check for mOperationsSuspended:

Java
if (mOperationsSuspended) {
    callback.call(
            createError(
                    NdefErrorType.OPERATION_CANCELLED,
                    "..."));
}

However, these blocks are missing a return statement. Consequently, execution falls through. The method proceeds to queue the operation in mPendingPushOperation or mPendingMakeReadOnlyOperation and calls enableReaderModeIfNeeded().

Because an operation is now pending, enableReaderModeIfNeeded() re-enables Android's NFC reader mode, effectively reversing the suspension. When the user subsequently taps an NFC tag (even while interacting with a different foreground app), onTagDiscovered() triggers processPendingOperations(). The queued write or lock operation is then executed against the physical tag synchronously on the binder thread.

While the renderer receives the initial OPERATION_CANCELLED callback and rejects the JavaScript promise, it does not close the Mojo connection. The Java side then completes the physical write. The subsequent duplicate callback (sent after the successful write) causes a Mojo protocol error that drops the connection, but this occurs too late to prevent the physical modification of the NFC tag.

Potential Steps to Reproduce

Note: These steps are based on a theoretical code path trace.

  1. Attacker Setup: The attacker hosts a malicious website and tricks the user into visiting it in Chrome for Android on an NFC-enabled device.
  2. Permission Grant: The attacker's script calls NDEFReader.write() or NDEFReader.makeReadOnly() accompanied by a user gesture. The user grants the requested NFC permission.
  3. Backgrounding: The user switches to another tab or minimizes Chrome, causing the attacker's tab to become hidden. This triggers NfcImpl.suspendNfcOperations(), setting mOperationsSuspended = true.
  4. Attacker Action: While the tab is still hidden, the attacker's script asynchronously calls NDEFReader.write() (or makeReadOnly()) with a malicious payload via a timer.
  5. Blink Processing: NDEFReader::write() in Blink checks for a top-level frame but does not check page visibility. The request is forwarded via Mojo to the browser process.
  6. The Vulnerability Triggered: In NfcImpl.push(), the code detects mOperationsSuspended and sends an OPERATION_CANCELLED error callback, but crucially fails to return. It queues the attacker's payload and re-enables the physical NFC reader.
  7. User Action: Sometime later, the user (likely interacting with a completely different app) taps an NFC tag against the device.
  8. Physical Tag Modification: Android's NFC system detects the tag and triggers NfcImpl.onTagDiscovered(). This sequentially processes pending operations, executing mTagHandler.write(...) to push the attacker's queued message to the physical tag. The attacker has successfully written to (or locked) a physical NFC tag without the user's knowledge, violating the Web NFC visibility-gate security model.

Suggested Fix

Add the missing return statements in the mOperationsSuspended check blocks within push() and makeReadOnly() in NfcImpl.java.

Java
if (mOperationsSuspended) {
    callback.call(
            createError(
                    NdefErrorType.OPERATION_CANCELLED,
                    "Cannot push the message because NFC operations are suspended."));
    return; // <-- Missing return statement
}

Furthermore, for defense-in-depth, processPendingPushOperation() and processPendingMakeReadOnlyOperation() should be updated to explicitly check mOperationsSuspended before proceeding with the physical write, consistent with how processPendingWatchOperations() handles suspension.

Evaluated with Chrome root at commit: 137d451a126685dd5010e6609db9f6d4a78d8234


Results 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

Likely a missing return statement after sending an error callback when operations are suspended, causing execution to fall through and queue the operation anyway.

Impact

An attacker could silently overwrite or permanently lock a physical NFC tag without the user's knowledge, though the renderer receives an error and the Mojo connection is later dropped.

What the attacker needed

Chrome for Android on an NFC-enabled device; victim visits attacker's site; user grants NFC permission; victim taps an NFC tag later

The fix

Add the missing return statements after the suspension check in push() and makeReadOnly(), and optionally check suspension again before processing pending operations.

How it was found

  1. The attacker hosts a malicious website and tricks the user into visiting it in Chrome for Android on an NFC-enabled device.
  2. The attacker's script calls NDEFReader.write() or NDEFReader.makeReadOnly() with a user gesture, and the user grants NFC permission.
  3. The user switches away, making the tab hidden and setting the suspension flag.
  4. While hidden, the attacker's script asynchronously calls write() or makeReadOnly() with a malicious payload.
  5. The request reaches NfcImpl.push(), which detects suspension and sends an error but fails to return, so it queues the payload and re-enables the NFC reader.
  6. Later, the user taps an NFC tag, and the queued operation is executed against the physical tag.

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.

Web NFC lets a website read and write small physical tags when you tap your phone on them. Chrome is supposed to pause these actions when the website is not visible, so a hidden tab cannot secretly change a tag. Here, a coding mistake meant the pause did not actually stop the action, so a hidden tab could still write to a tag the next time you tapped one.

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.