Skip to content
UI spoofing Disclosed report Intermediate CVE-2025-13017

Same-site cross-origin iframes can request notification permission (and with wrong prompt on Android)

Firefox on Android shows the top-level page's origin in the notification permission prompt when a same-site cross-origin iframe requests permission, instead of the iframe's own origin. An attacker could embed a malicious iframe in a trusted page and trick users into granting notification access to the wrong domain.

Mochammad Nosa Shandy Prastyo Follow

Originally disclosed on Mozilla

  • Fixed in 2 months
  • Paid in 2 months
  • Disclosed after 2 months
Text
Created attachment 9504878
2025-08-04 17-04-54.mp4

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

Steps to reproduce:

1. Go to https://dev.apapedulimu.click/index.php?url=https://long-domain-tester-accounts-subdo-tester-domain-accounts-google.comvulnerability.bug.apapedulimu.click/test.html
2. Click "Request Notification" Button
3. Observe the notification permission prompt that appears. You’ll notice that the prompt displays the top-level domain (dev.apapedulimu.click) as the source of the request — not the actual origin (*.google.comvulnerability.bug.apapedulimu.click) of the embedded iframe that triggered the request.


Actual results:

When a cross-origin iframe requests notification permission via Notification.requestPermission(), Firefox shows the top-level (main frame) origin in the permission prompt instead of the origin that actually initiated the request.
As a result, the user sees a trusted domain (e.g., dev.apapedulimu.click) requesting the permission, while in reality, the request originated from an embedded third-party domain (e.g., *.google.comvulnerability.bug.apapedulimu.click).

This allows an attacker to spoof the origin shown in the permission dialog, misleading users into granting notification access to an untrusted or malicious domain.


Expected results:

Browsers should show the actual origin making the request — in this case, (*.google.comvulnerability.bug.apapedulimu.click).

The prompt should display the origin of the requester (iframe), just like Firefox Desktop correctly does.

The original report as published on Mozilla's Bugzilla, by Mochammad Nosa Shandy Prastyo. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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

An attacker could spoof the origin shown in the permission dialog, misleading users into granting notification access to an untrusted domain; the report notes this affects Firefox on Android, while Firefox Desktop shows the correct origin.

What the attacker needed

Victim uses Firefox on Android; attacker controls an embedded iframe; victim visits a page with the iframe

The fix

The browser should display the origin of the iframe that actually requested the permission, as Firefox Desktop does.

How it was found

  1. Open a page that embeds a cross-origin iframe which requests notification permission.
  2. Click the button in the iframe that triggers the notification permission request.
  3. Observe that the prompt shows the top-level domain, not the iframe's origin.

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 browser should show which website is asking. This report says that on Firefox for Android, if a page contains a hidden frame from another site, the prompt shows the main page's name instead of the frame's name. That could let someone make a trusted site appear to ask for permission when the request really comes from a different, untrusted site.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.