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

Insufficient policy enforcement in Presentation (CVE-2026-17756)

A logic error in the Presentation API receiver window allows a malicious receiver page to bypass navigation restrictions and hijack a pending PresentationConnection intended for the original origin. An attacker could gain access to the connection for about 500ms to exfiltrate data or send malicious messages.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 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 logic error in Presentation API receiver windows allows a malicious receiver page to bypass navigation restrictions and hijack a pending PresentationConnection. The policy enforcement fails to cancel disallowed navigations, and the LocalPresentationManager flushes pending connections to the new origin without validating it against the requested URL.

Affected files:

  • chrome/browser/ui/media_router/presentation_receiver_window_controller.cc
  • components/media_router/browser/presentation/local_presentation_manager.cc
  • components/media_router/browser/presentation/receiver_presentation_service_delegate_impl.cc
  • components/media_router/browser/presentation/presentation_navigation_policy.cc

Estimated timestamp from git blame: 2024-12-23

Summary

A potential vulnerability exists in the wired-display Presentation API receiver implementation that allows a malicious receiver page to bypass navigation restrictions and hijack a pending PresentationConnection intended for the original origin.

This occurs because the PresentationReceiverWindowController does not successfully cancel disallowed cross-origin navigations, and the LocalPresentationManager flushes pending controller connections to whatever origin eventually commits in the receiver window.

Technical Details

1. Non-cancelling Navigation Policy

PresentationReceiverWindowController implements a PresentationNavigationPolicy intended to lock the receiver window to a single navigation (the start_url). When a second navigation is detected in DidStartNavigation, the policy correctly returns false. However, the controller's response is to call Terminate(), which invokes web_contents_->ClosePage().

ClosePage() is an asynchronous operation that sends an IPC to the renderer to run unload handlers and starts a 500ms timeout (kUnloadTimeout). Crucially, DidStartNavigation does not cancel the current NavigationHandle (e.g., via web_contents_->Stop()). Consequently, the disallowed navigation proceeds to fetch and commit while the page closure is pending.

2. Connection Hijacking Logic

The hijacking occurs through the following sequence:

  1. A controller initiates a presentation. WiredDisplayMediaRouteProvider starts the receiver window and asynchronously fires a success callback to the controller.
  2. Because the receiver window has not finished loading the initial start_url, the controller's PresentationConnection pipes are stored in LocalPresentationManager::pending_controllers_, keyed by a unique presentation_id.
  3. A malicious start_url (attacker.test) loads but does not access navigator.presentation (which avoids creating a PresentationServiceImpl). It then immediately triggers a client-side navigation to evil.test.
  4. DidStartNavigation fires, Terminate() is called, but the navigation to evil.test continues and commits in a new renderer process. The malicious attacker.test renderer can intentionally delay acknowledging the unload IPC to maximize the 500ms timeout.
  5. The web_prefs.presentation_receiver preference and the presentation_id (stored in ReceiverPresentationServiceDelegateImpl) are tied to the WebContents and are inherited by the new origin (evil.test).
  6. evil.test accesses navigator.presentation.receiver. This creates a new PresentationServiceImpl and triggers RegisterReceiverConnectionAvailableCallback.
  7. LocalPresentationManager::RegisterReceiver is called with the surviving presentation_id. It finds the pending_controllers_ and flushes the Mojo pipes for the connection to the evil.test renderer. The implementation entirely ignores the fact that the calling origin (evil.test) does not match the URL originally requested by the controller (attacker.test).

At this point, evil.test has full access to the PresentationConnection that was intended for the original start_url origin. The attacker has a window of approximately 500ms to exfiltrate data or send malicious messages before the window is forcefully closed.

Suggested Steps to Reproduce

Note: These are potential steps based on static analysis, as our tooling does not currently run code.

  1. From a controller page, start a presentation to a wired display using a URL controlled by the attacker (https://attacker.test/receiver.html).
  2. receiver.html should immediately navigate to a different origin: location.href='https://evil.test/hijack.html'. It must not access navigator.presentation before navigating.
  3. attacker.test should artificially delay its unload handler to ensure the 500ms timeout is utilized.
  4. hijack.html accesses navigator.presentation.receiver.connectionList and observes the incoming connection.
  5. Observe that hijack.html (on evil.test) can now send and receive messages from the controller, even though the connection was associated with attacker.test.

Suggested Fix

  1. Synchronous Abortion: PresentationReceiverWindowController::DidStartNavigation should explicitly abort the navigation before calling Terminate(). Calling web_contents_->Stop() or discarding pending navigation entries would prevent the disallowed page from ever committing.
  2. Origin Validation: LocalPresentationManager::OnLocalPresentationReceiverCreated should verify that the presentation_info URL matches the URL that was originally requested by the controller, rather than relying solely on the presentation_id.

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.

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

Root cause

Likely the navigation policy only calls Terminate() (which closes the page asynchronously) instead of synchronously stopping the disallowed navigation, and the connection manager does not check the origin of the receiver before delivering pending connections.

Impact

The attacker could gain full access to the PresentationConnection for approximately 500ms to exfiltrate data or send malicious messages before the window is forcefully closed.

What the attacker needed

Attacker controls the start_url; wired display presentation; victim starts presentation to attacker URL

The fix

The navigation should be synchronously aborted before terminating the window, and the connection manager should validate the receiver's origin against the originally requested URL.

How it was found

  1. From a controller page, start a presentation to a wired display using an attacker-controlled URL.
  2. The receiver page immediately navigates to a different origin without accessing navigator.presentation.
  3. The attacker page delays its unload handler to use the 500ms timeout.
  4. The hijack page accesses navigator.presentation.receiver.connectionList and observes the incoming connection.
  5. The hijack page can now send and receive messages from the controller.

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.

The Presentation API lets a web page show content on another screen, like a TV. The receiver window is supposed to stay on one trusted page, but a bug meant a malicious page could sneak in and take over the connection meant for the real page, briefly letting it send and receive messages.

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.