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.cccomponents/media_router/browser/presentation/local_presentation_manager.cccomponents/media_router/browser/presentation/receiver_presentation_service_delegate_impl.cccomponents/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:
- A controller initiates a presentation.
WiredDisplayMediaRouteProviderstarts the receiver window and asynchronously fires a success callback to the controller. - Because the receiver window has not finished loading the initial
start_url, the controller'sPresentationConnectionpipes are stored inLocalPresentationManager::pending_controllers_, keyed by a uniquepresentation_id. - A malicious
start_url(attacker.test) loads but does not accessnavigator.presentation(which avoids creating aPresentationServiceImpl). It then immediately triggers a client-side navigation toevil.test. DidStartNavigationfires,Terminate()is called, but the navigation toevil.testcontinues and commits in a new renderer process. The maliciousattacker.testrenderer can intentionally delay acknowledging theunloadIPC to maximize the 500ms timeout.- The
web_prefs.presentation_receiverpreference and thepresentation_id(stored inReceiverPresentationServiceDelegateImpl) are tied to theWebContentsand are inherited by the new origin (evil.test). evil.testaccessesnavigator.presentation.receiver. This creates a newPresentationServiceImpland triggersRegisterReceiverConnectionAvailableCallback.LocalPresentationManager::RegisterReceiveris called with the survivingpresentation_id. It finds thepending_controllers_and flushes the Mojo pipes for the connection to theevil.testrenderer. 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.
- From a controller page, start a presentation to a wired display using a URL controlled by the attacker (
https://attacker.test/receiver.html). receiver.htmlshould immediately navigate to a different origin:location.href='https://evil.test/hijack.html'. It must not accessnavigator.presentationbefore navigating.attacker.testshould artificially delay itsunloadhandler to ensure the 500ms timeout is utilized.hijack.htmlaccessesnavigator.presentation.receiver.connectionListand observes the incoming connection.- Observe that
hijack.html(onevil.test) can now send and receive messages from the controller, even though the connection was associated withattacker.test.
Suggested Fix
- Synchronous Abortion:
PresentationReceiverWindowController::DidStartNavigationshould explicitly abort the navigation before callingTerminate(). Callingweb_contents_->Stop()or discarding pending navigation entries would prevent the disallowed page from ever committing. - Origin Validation:
LocalPresentationManager::OnLocalPresentationReceiverCreatedshould verify that thepresentation_infoURL matches the URL that was originally requested by the controller, rather than relying solely on thepresentation_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.
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
- From a controller page, start a presentation to a wired display using an attacker-controlled URL.
- The receiver page immediately navigates to a different origin without accessing navigator.presentation.
- The attacker page delays its unload handler to use the 500ms timeout.
- The hijack page accesses navigator.presentation.receiver.connectionList and observes the incoming connection.
- 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.