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.ccchrome/browser/permissions/permission_blocked_message_delegate_android.cccomponents/permissions/android/java/src/org/chromium/components/permissions/PermissionUtil.javacomponents/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
- 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 triggersResolveWithOSPrompt. - This calls into Java (
PermissionUtil.java:requestAndResolveNotificationsPermissionRequest), creating an anonymousRequestDelegatethat requests thePOST_NOTIFICATIONSpermission from Android. This delegate captures theWebContentsbut fails to record the origin or a unique request ID associated with the prompt. - 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 callsCleanUpRequests, which clears the active and pending request queues but cannot programmatically dismiss the Android OS system dialog. - If the newly navigated page immediately calls
Notification.requestPermission(), a new request is added and placed into the activerequests_vector.IsRequestInProgress()evaluates totrueagain. - When the user eventually taps "Allow" on the lingering Android system dialog, the Java
RequestDelegatecallback executes and triggers the native JNI functionResolveNotificationsPermissionRequest(components/permissions/android/android_permission_util.cc). permissions::internal::ResolveNotificationsPermissionRequestverifies thatIsRequestInProgress()is true and that the first request is of typeNOTIFICATIONS. Crucially, it performs no origin validation to ensure the active request matches the one that originally triggered the OS prompt.- The function blindly calls
permission_request_manager->Accept(), which grants the permission to the current request (the new origin) and persists the setting in theHostContentSettingsMap, entirely bypassing standard origin checks and "Quiet UI" muting behaviors.
Prerequisites
- Android device (Android 13+ where
POST_NOTIFICATIONSis a runtime permission). - Chrome feature flag
kPermissionsAndroidClapperLoudenabled.
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.
- An attacker hosts two origins:
https://origin-a.comandhttps://origin-b.com. - A user visits
origin-a.comand clicks a button that callsNotification.requestPermission(). - The Chrome Clapper Loud message UI appears. The user clicks "Allow".
- The Android system "Allow Chrome to send notifications?" dialog appears.
- In the background,
origin-a.comexecutes a script to navigate the main frame tohttps://origin-b.com(e.g., via a delayedsetTimeout). - Once
origin-b.comloads, it immediately callsNotification.requestPermission(), placing its request at the head of the browser's permission queue. - The user, believing the prompt applies to the original action on
origin-a.com, clicks "Allow" on the Android system dialog. origin-b.comis 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.javaorandroid_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 thatpermission_request_manager->Requests()[0]->requesting_origin()matches the origin that initiated the OS prompt before invokingAccept().
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.
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
- An attacker hosts two origins.
- A user visits the first origin and clicks a button that calls Notification.requestPermission().
- The Chrome Clapper Loud message UI appears and the user clicks Allow.
- The Android system dialog appears.
- The first origin navigates the main frame to the second origin.
- 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.