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

Inappropriate implementation in Permissions (CVE-2026-17850)

A web page can make a delegated permission request, such as geolocation, be attributed to the built-in Chrome PDF Viewer extension instead of the requesting web origin. This allows a different web origin to reuse the permission grant without a new prompt if it creates the same same-origin PDF frame shape.

taiphung Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 58 days

Report description

MIME handler origin confusion stores delegated permissions on Chrome PDF Viewer


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src/+/refs/tags/150.0.7865.2


The problem

Please describe the technical details of the vulnerability

Summary

A web page can make a delegated permission request, such as geolocation, be attributed to the built-in Chrome PDF Viewer extension instead of the requesting web origin.

The page only needs to embed a same-origin PDF. In the vulnerable OOPIF PDF frame shape, Chromium has both:

Text
outer page: http://127.0.0.1:8000
  PDF extension frame: chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai
    PDF content frame: http://127.0.0.1:8000/poc.pdf

ChromePermissionsClient::GetEmbeddingOriginOverride() receives only requesting_origin and WebContents. It scans the frame tree by origin, sees the same origin again inside the MIME handler subtree, and returns the PDF Viewer extension origin. PermissionManager then canonicalizes the delegated permission decision to that extension origin.

This turns one misleading user allow decision on Site A into a reusable permission grant for a different web origin Site B, as long as Site B creates the same same-origin PDF frame shape. Site B observes permissionState: "granted" and can call geolocation without a second prompt.

Affect code

File: https://chromium.googlesource.com/chromium/src/+/refs/tags/150.0.7865.2/chrome/browser/permissions/chrome_permissions_client.cc#779-#825

C++
#if BUILDFLAG(ENABLE_EXTENSIONS) && !BUILDFLAG(IS_ANDROID)
  // When a MIME handler extension is rendered as an OOPIF, key the
  // embedding origin to the extension so prompts and content settings
  // are attributed to the extension that produced the streamed content,
  // not the navigation host that triggered it.
  //
  // The override applies only when `requesting_origin` lies inside the
  // extension OOPIF subtree. Without this scoping, a top-level page
  // (e.g. evil.com) that embeds an invisible PDF in an iframe would
  // have its own permission prompts (e.g. camera) attributed to the
  // MIME handler extension, because `MimeHandlerStreamManager` is
  // attached to the WebContents the moment any PDF in the tab is
  // intercepted -- not only when the extension itself is the requester.
  // Inside the extension subtree the override applies to every
  // descendant -- including cross-origin children -- because those
  // frames only exist because the extension embedded them. When two
  // frames share `requesting_origin` (e.g. the host site is also
  // iframed by the extension), BFS picks the first match; this is
  // best-effort because the API receives only the origin, not the
  // specific RenderFrameHost.
  if (auto* manager =
          extensions::mime_handler::MimeHandlerStreamManager::FromWebContents(
              web_contents)) {
    GURL extension_origin;
    web_contents->GetPrimaryMainFrame()->ForEachRenderFrameHostWithAction(
        [&](content::RenderFrameHost* rfh) {
          if (rfh->GetLastCommittedOrigin().GetURL() != requesting_origin) {
            return content::RenderFrameHost::FrameIterationAction::kContinue;
          }
          // The candidate frame's origin matches the requester. Walk
          // its ancestors (including itself) and return the nearest
          // MIME handler extension OOPIF if one is present. If none
          // is, the requester lives outside any extension subtree --
          // do not override.
          for (content::RenderFrameHost* ancestor = rfh; ancestor;
               ancestor = ancestor->GetParent()) {
            if (manager->IsExtensionHost(ancestor)) {
              extension_origin = ancestor->GetLastCommittedOrigin().GetURL();
              return content::RenderFrameHost::FrameIterationAction::kStop;
            }
          }
          return content::RenderFrameHost::FrameIterationAction::kContinue;
        });
    if (!extension_origin.is_empty()) {
      return extension_origin;
    }
  }

file: https://chromium.googlesource.com/chromium/src/+/refs/tags/150.0.7865.2/components/permissions/permission_manager.cc#43

C++
GURL GetEmbeddingOrigin(content::RenderFrameHost* const render_frame_host,
                        const GURL& requesting_origin) {
  content::WebContents* const web_contents =
      content::WebContents::FromRenderFrameHost(render_frame_host);
  return PermissionsClient::Get()
      ->GetEmbeddingOriginOverride(requesting_origin, web_contents)
      .value_or(PermissionUtil::GetLastCommittedOriginAsURL(
          render_frame_host->GetMainFrame()));
...
  const GURL embedding_origin = GetEmbeddingOrigin(
      render_frame_host, request_description.requesting_origin);
  for (size_t i = 0; i < request_description.permissions.size(); ++i) {
    const ContentSettingsType permission =
        PermissionUtil::PermissionTypeToContentSettingsType(
            blink::PermissionDescriptorToPermissionType(
                request_description.permissions[i]));
    const GURL canonical_requesting_origin = PermissionUtil::GetCanonicalOrigin(
        permission, request_description.requesting_origin, embedding_origin);
...

File: https://chromium.googlesource.com/chromium/src/+/refs/tags/150.0.7865.2/components/permissions/permission_util.cc#677

C++
GURL PermissionUtil::GetCanonicalOrigin(ContentSettingsType permission,
                                        const GURL& requesting_origin,
                                        const GURL& embedding_origin) {
  std::optional<GURL> override_origin =
      PermissionsClient::Get()->GetCanonicalOriginOverride(requesting_origin,
                                                           embedding_origin);
  if (override_origin) {
    return override_origin.value();
  }
  switch (GetPermissionDelegationMode(permission)) {
    case PermissionDelegationMode::kDelegated:
      return embedding_origin;
    case PermissionDelegationMode::kDoubleKeyed:
    case PermissionDelegationMode::kUndelegated:
      return requesting_origin;

File: https://chromium.googlesource.com/chromium/src/+/refs/tags/150.0.7865.2/extensions/browser/mime_handler/mime_handler_stream_manager.cc#278

C++
bool MimeHandlerStreamManager::IsContentHost(
    const content::RenderFrameHost* render_frame_host) const {
  // The content host should always have a parent host.
  content::RenderFrameHost* parent_host = render_frame_host->GetParent();
  if (!parent_host) {
    return false;
  }
  // The parent host should always be the extension host.
  if (!IsExtensionHost(parent_host)) {
    return false;
  }
  // The extension host should always have a parent host (the embedder host).
  content::RenderFrameHost* embedder_host = parent_host->GetParent();
  CHECK(embedder_host);
  return IsContentFrameTreeNodeId(embedder_host,
                                  render_frame_host->GetFrameTreeNodeId());

The actual MIME handler content RenderFrameHost commits to the original URL, meaning an embedded same-origin PDF can create a frame inside the extension subtree with the same origin as the outer page.

ASAN build args:

GN
target_os = "linux"
target_cpu = "x64"

is_debug = false
is_asan = true
is_component_build = false
symbol_level = 1
dcheck_always_on = true
enable_full_stack_frames_for_profiling = true

blink_symbol_level = 0
v8_symbol_level = 0

Steps To Reproduce

  1. Save the attached serve.py.
  2. Start the local PoC server:
Bash
python3 serve.py 8000
  1. Start Google Chrome Dev/Unstable 150 with a fresh profile. No test harness, CDP, browser test shell, or feature flag is required. For an installed Dev package, the minimized command line is:
Bash
google-chrome-unstable --user-data-dir=/tmp/chrome-mime-permission-poc \
  http://127.0.0.1:8000/poc.html

My local video was recorded from an extracted .deb package, not an installed package. That extracted binary aborts without a configured setuid sandbox:

Text
The SUID sandbox helper binary was found, but is not configured correctly.
... chrome-sandbox is owned by root and has mode 4755.

For that extracted-package recording only, I used --no-sandbox. The bug is not caused by the sandbox flag; the flag is only needed to run the extracted package on this host without root installation. Removing the invalid extracted chrome-sandbox helper also did not allow a sandboxed run on this host because Chrome aborted with No usable sandbox.

  1. On Site A, click Request geolocation from the outer page.
  2. Observe that the prompt is attributed to Chrome PDF Viewer:
Text
Chrome PDF Viewer wants to
Know your location
  1. Click Allow while visiting the site.
  2. Click Open the other origin, which opens:
Text
http://localhost:8000/poc.html
  1. Observe that Site B immediately reports the permission as granted without a new prompt:
JSON
{
  "site": "Site B localhost",
  "origin": "http://localhost:8000",
  "permissionState": "granted",
  "event": "state"
}
  1. On Site B, click Request geolocation from the outer page.
  2. Observe that Site B calls geolocation without a second prompt:
JSON
{
  "site": "Site B localhost",
  "origin": "http://localhost:8000",
  "permissionState": "granted",
  "event": "probe",
  "before": "granted",
  "after": "granted"
}
  1. Close Chrome so the profile preferences are flushed.
  2. Inspect the profile content settings:
Bash
jq '.profile.content_settings.exceptions.geolocation' \
  /tmp/chrome-mime-permission-poc/Default/Preferences

Expected Result

The permission request is issued by the outer web page. The decision should be prompted, stored, and reused only for the requesting web origin, for example:

Text
http://127.0.0.1:8000

If the browser cannot distinguish whether requesting_origin refers to the outer page frame or a same-origin PDF content frame under the MIME handler extension subtree, it should fail closed and avoid returning the MIME handler extension origin.

After granting Site A, a different origin Site B should not inherit that permission through Chrome PDF Viewer and should receive its own prompt.

Attachments

Please attach these files directly to the Chrome VRP report as separate files:

Text
serve.py
poc.mp4

Do not zip the files and do not provide them only as website links.

serve.py is a single local Python server. It serves /poc.html and /poc.pdf from both http://127.0.0.1:8000 and http://localhost:8000 so the same file can demonstrate both Site A and Site B.

Impact analysis

This crosses the browser's web permission boundary.

A malicious site can make a permission prompt appear to come from Chrome PDF Viewer instead of the requesting site. If the user allows it once, the grant is stored for the PDF Viewer extension origin. A second, different web origin can then create the same PDF frame shape and reuse the extension-origin grant without a new prompt.

For a real web attack, the attacker would use HTTPS origins because geolocation requires a secure context. The local PoC uses 127.0.0.1 and localhost because they are trustworthy local origins and make the two-origin reproduction self-contained.

The PoC proves this with geolocation. I have not included camera or microphone claims as proven impact in this report. The same delegated permission canonicalization path appears relevant to other powerful permissions, but those should be evaluated separately.

The practical exploitation requirement is realistic but not zero-click: the attacker must get the user to allow one permission prompt. The issue then weakens the prompt's origin attribution and broadens the resulting grant across origins that can trigger the same MIME handler frame shape.


The cause

What version of Chrome have you found the security issue in?

150.0.7865.2 dev

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Permissions Bypass

How would you like to be publicly acknowledged for your report?

Tech Division (@taiphung) - Mobifone Digital Payment

The original report as published on the Chromium issue tracker, by Tech Division (@taiphung) - Mobifone Digital Payment. 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

Likely the function that determines the embedding origin scans the frame tree by origin and returns the PDF Viewer extension origin when it finds a same-origin PDF content frame inside the extension subtree, causing the permission decision to be stored for the extension rather than the requesting web origin.

Impact

A malicious site can make a permission prompt appear to come from Chrome PDF Viewer instead of the requesting site, and if the user allows it once, a second different web origin can reuse the grant without a new prompt.

What the attacker needed

Victim clicks a link; victim allows one permission prompt; attacker uses HTTPS origins

The fix

The browser should fail closed and avoid returning the MIME handler extension origin when it cannot distinguish whether the requesting origin refers to the outer page frame or a same-origin PDF content frame.

How it was found

  1. Save the attached serve.py and start the local PoC server.
  2. Start Google Chrome Dev/Unstable 150 with a fresh profile and navigate to the PoC page.
  3. On Site A, click the button to request geolocation from the outer page.
  4. Observe that the prompt is attributed to Chrome PDF Viewer.
  5. Click 'Allow while visiting the site'.
  6. Click 'Open the other origin' to open Site B and observe that the permission is already granted without a new prompt.

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 for permission to use your location, the browser normally shows a prompt and remembers your choice for that specific website. This report found that if a page embeds a PDF, the browser can mistakenly store the permission under the PDF viewer's identity instead of the website's. That means a different website could later get the same permission without asking you again.

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 taiphung

View all

1 more disclosed report, best first.

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.