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

Use of insufficiently random values in Notifications (CVE-2026-113071)

A potential vulnerability in Chrome for Android allows an attacker to hijack notification click events from other origins by causing a collision in the requestCode used for wrapper PendingIntents. This is possible because the requestCode is generated using Java's weak String.hashCode() on predictable notification tags, and the PendingIntents are created with FLAG_UPDATE_CURRENT, allowing an attacker to overwrite a victim's intent extras.

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential vulnerability in Chrome for Android allows an attacker to intercept notification click events from other origins by triggering a requestCode collision. This occurs because the system uses the weak String.hashCode() function on predictable notification tags to generate identifiers for wrapper PendingIntents.

Affected files:

  • chrome/browser/notifications/android/java/src/org/chromium/chrome/browser/notifications/NotificationIntentInterceptor.java

Estimated timestamp from git blame: 2019-01-16

Summary

A potential vulnerability exists in NotificationIntentInterceptor where a malicious origin can hijack notification click and action events intended for a victim origin. By crafting a notification tag that causes a collision in the requestCode of a wrapper PendingIntent, an attacker can leverage Android's PendingIntent management to overwrite a victim's intent extras with their own.

Vulnerability Details

When Chrome for Android displays a notification, it wraps the content, action, and delete PendingIntents in a wrapper PendingIntent for metrics collection (using TrampolineActivity or a BroadcastReceiver). These wrapper intents use a constant Action (INTENT_ACTION) and Component, meaning their uniqueness within the Android system relies entirely on the requestCode parameter.

In NotificationIntentInterceptor.java, the requestCode is generated by the computeHashCode method:

Java
private static int computeHashCode(
        NotificationMetadata metadata,
        @IntentType int intentType,
        @NotificationUmaTracker.ActionType int actionType,
        int requestCode) {
    // ... logic incorporating metadata.type, intentType, actionType
    hashcode = hashcode * 31 + (metadata.tag == null ? 0 : metadata.tag.hashCode());
    hashcode = hashcode * 31 + metadata.id;
    hashcode = hashcode * 31 + requestCode;
    return hashcode;
}

For persistent web notifications, metadata.tag is a string generated by the native NotificationIdGenerator, typically following the pattern p#<origin>#0 (or p#<origin>#1<developer_tag>).

The vulnerability is rooted in two factors:

  1. Predictable Hash Collisions: Java's String.hashCode() uses a simple polynomial-31 rolling hash. An attacker can easily calculate a suffix string for their own notification tag that results in a hashCode() identical to a victim origin's notification ID.
  2. Intent Overwriting: These wrapper PendingIntents are created using FLAG_UPDATE_CURRENT. In Android, if a new PendingIntent is requested with the same requestCode and matching Intent.filterEquals() criteria (which is true here as Action and Component are constant), the system replaces the extras of the existing PendingIntent with the new ones.

Impact

If an attacker successfully overwrites a victim's PendingIntent extras, clicking the victim's notification will invoke TrampolineActivity with the attacker's EXTRA_PENDING_INTENT. This causes the notificationclick event to be dispatched to the attacker's service worker instead of the victim's.

This enables:

  • User Interaction Hijacking: The attacker receives the click event for a notification the user believed was from a trusted site.
  • Phishing/Spoofing: The attacker obtains a valid user activation, which they can use to open a malicious window or perform other actions while the user expects to be interacting with the victim origin.

Suggested Steps to Reproduce (Potential)

Note: These are suggested steps; our current tooling has not executed this exploit.

  1. Identify a victim origin currently displaying a notification (e.g., https://victim.com).
  2. Determine the victim's notification ID (typically p#https://victim.com#0).
  3. Calculate a string S such that hashCode("p#https://attacker.evil#1" + S) == hashCode("p#https://victim.com#0").
  4. From https://attacker.evil, call self.registration.showNotification("Notification", { tag: S }).
  5. When the user clicks the notification from victim.com, observe that the click event is delivered to the service worker of attacker.evil.

Suggested Fix

Chrome should not rely on String.hashCode() for generating unique requestCode values. Instead, consider:

  • Using a more robust, cryptographically secure hashing function.
  • Incorporating unique data (such as the notification tag or a random UUID) directly into the Intent's Data URI to ensure Intent.filterEquals() distinguishes between different notifications.
  • Disabling FLAG_UPDATE_CURRENT if multiple notifications are expected to use the same slot, though this may impact metrics accuracy.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


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

Impact

If an attacker successfully overwrites a victim's PendingIntent extras, clicking the victim's notification will invoke TrampolineActivity with the attacker's EXTRA_PENDING_INTENT, causing the notificationclick event to be dispatched to the attacker's service worker instead of the victim's, enabling user interaction hijacking and phishing.

What the attacker needed

Victim has a notification displayed; attacker can show notifications; user clicks the victim's notification

The fix

Chrome should not rely on String.hashCode() for generating unique requestCode values; instead, use a more robust hashing function, incorporate unique data into the Intent's Data URI, or disable FLAG_UPDATE_CURRENT.

How it was found

  1. Identify a victim origin currently displaying a notification.
  2. Determine the victim's notification ID.
  3. Calculate a string S such that hashCode("p#https://attacker.evil#1" + S) == hashCode("p#https://victim.com#0").
  4. From the attacker origin, call self.registration.showNotification with tag S.
  5. When the user clicks the victim's notification, observe that the click event is delivered to the attacker's service worker.

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 you click a notification on your phone, the app needs to know which website it came from. Chrome uses a number to tell them apart, but that number is made in a way that two different websites can end up with the same number. An attacker can make their website's number match a victim's, so when you click the victim's notification, it actually goes to the attacker's website.

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.