Skip to content
Race condition Advisory Advanced CVE-2026-79046

Race condition in Permissions (CVE-2026-79046)

A race condition in the Android notification permission flow allows a website to obtain notification permissions intended for a different origin. If a cross-origin navigation occurs while the Android system permission dialog is pending, the approval callback is applied to the new page's request, granting persistent permission to the new site.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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 without the Chrome Security team.

Overview: A potential logic error in the Android "Clapper Loud" notification flow allows a website to obtain notification permissions intended for a different origin. If a cross-origin navigation occurs while the Android system permission dialog is pending, the approval callback is erroneously applied to the new page's request. This bypasses origin validation and grants persistent permission to the new site.

Affected files:

  • components/permissions/android/android_permission_util.cc
  • chrome/browser/permissions/permission_blocked_message_delegate_android.cc
  • components/permissions/android/java/src/org/chromium/components/permissions/PermissionUtil.java
  • components/permissions/permission_request_manager.cc

Estimated timestamp from git blame: 2026-02-11

Summary

A potential state confusion vulnerability exists in the Android "Clapper Loud" notification permission flow (kPermissionsAndroidClapperLoud), allowing for cross-origin permission grants. The asynchronous Android system permission dialog's callback is bound to the WebContents rather than a specific PermissionRequest or origin. If a cross-origin navigation occurs while the OS dialog is visible, the native request queue is cleared. If the new page immediately requests notifications, the subsequent OS callback will resolve whichever request is currently at the head of the PermissionRequestManager queue, effectively granting permission to an origin the user never explicitly approved.

Technical Details

  1. When the user accepts the initial Chrome "Clapper Loud" message UI, PermissionBlockedMessageDelegate::HandleLoudPrimaryActionClick (chrome/browser/permissions/permission_blocked_message_delegate_android.cc) dismisses the message and triggers ResolveWithOSPrompt.
  2. This calls into Java (PermissionUtil.java:requestAndResolveNotificationsPermissionRequest), creating an anonymous RequestDelegate that requests the POST_NOTIFICATIONS permission from Android. This delegate captures the WebContents but fails to record the origin or a unique request ID associated with the prompt.
  3. While the Android system dialog is visible, the main thread remains unblocked. If the renderer executes a cross-origin navigation, PermissionRequestManager::DidFinishNavigation (components/permissions/permission_request_manager.cc) is invoked. This calls CleanUpRequests, which clears the active and pending request queues but cannot programmatically dismiss the Android OS system dialog.
  4. If the newly navigated page immediately calls Notification.requestPermission(), a new request is added and placed into the active requests_ vector. IsRequestInProgress() evaluates to true again.
  5. When the user eventually taps "Allow" on the lingering Android system dialog, the Java RequestDelegate callback executes and triggers the native JNI function ResolveNotificationsPermissionRequest (components/permissions/android/android_permission_util.cc).
  6. permissions::internal::ResolveNotificationsPermissionRequest verifies that IsRequestInProgress() is true and that the first request is of type NOTIFICATIONS. Crucially, it performs no origin validation to ensure the active request matches the one that originally triggered the OS prompt.
  7. The function blindly calls permission_request_manager->Accept(), which grants the permission to the current request (the new origin) and persists the setting in the HostContentSettingsMap, entirely bypassing standard origin checks and "Quiet UI" muting behaviors.

Prerequisites

  • Android device (Android 13+ where POST_NOTIFICATIONS is a runtime permission).
  • Chrome feature flag kPermissionsAndroidClapperLoud enabled.

Potential Reproduction Steps

Note: These are suggested steps based on static code analysis; our tooling agent does not have the ability to run live code.

  1. An attacker hosts two origins: https://origin-a.com and https://origin-b.com.
  2. A user visits origin-a.com and clicks a button that calls Notification.requestPermission().
  3. The Chrome Clapper Loud message UI appears. The user clicks "Allow".
  4. The Android system "Allow Chrome to send notifications?" dialog appears.
  5. In the background, origin-a.com executes a script to navigate the main frame to https://origin-b.com (e.g., via a delayed setTimeout).
  6. Once origin-b.com loads, it immediately calls Notification.requestPermission(), placing its request at the head of the browser's permission queue.
  7. The user, believing the prompt applies to the original action on origin-a.com, clicks "Allow" on the Android system dialog.
  8. origin-b.com is permanently granted notification permission.

Suggested Fix

The resolution callback mechanism must uniquely identify the request that triggered the OS prompt.

  • When requesting the OS-level permission in PermissionUtil.java or android_permission_util.cc, capture the requesting origin (or a unique request ID).
  • Pass this origin/ID back through the JNI callback JNI_PermissionUtil_ResolveNotificationsPermissionRequest.
  • Inside permissions::internal::ResolveNotificationsPermissionRequest, explicitly assert that permission_request_manager->Requests()[0]->requesting_origin() matches the origin that initiated the OS prompt before invoking Accept().

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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

The Android system permission dialog's callback is bound to the WebContents rather than a specific PermissionRequest or origin, and the resolution function performs no origin validation.

Impact

A malicious site could obtain persistent notification permission for an origin the user never approved, potentially leading to spam or phishing notifications.

What the attacker needed

Android device (Android 13+); Chrome feature flag kPermissionsAndroidClapperLoud enabled; Attacker controls two origins; Victim visits attacker's site and interacts

The fix

The resolution callback mechanism should uniquely identify the request that triggered the OS prompt by capturing the requesting origin or a unique request ID and validating it before granting permission.

How it was found

  1. An attacker hosts two origins.
  2. A user visits the first origin and clicks a button that calls Notification.requestPermission().
  3. The Chrome Clapper Loud message UI appears and the user clicks Allow.
  4. The Android system dialog appears.
  5. The first origin navigates the main frame to the second origin.
  6. The second origin immediately calls Notification.requestPermission(), placing its request at the head of the queue.

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 send you notifications, your phone shows a pop-up asking for permission. This report found that if the website quickly changes to a different page while that pop-up is still open, the permission you give can end up going to the new page instead of the original one. That means a site you never approved could start sending you notifications.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.