UI misrepresentation in WebAppInstalls (CVE-2026-79173)
A tabbed Progressive Web App on ChromeOS can show the previous tab's origin text in the title bar after switching to a background-loaded tab, because the cached origin label is not refreshed. An attacker could use this to display a trusted partner's origin over their own content.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A potential security UI spoofing vulnerability in tabbed Progressive Web Apps (PWAs) on ChromeOS allows a stale origin to be displayed over attacker-controlled content on tab switch. When a user switches to a background-loaded tab that has a different theme color, the title-bar 'WebAppOriginText' fades in with the previous tab's origin. This can be used to display a trusted partner's origin over malicious content.
Affected files:
chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.ccchrome/browser/ui/web_applications/web_app_browser_controller.ccchrome/browser/ui/web_applications/app_browser_controller.cc
Estimated timestamp from git blame: 2023-10-26
Potential Security UI Origin Spoofing in Tabbed PWAs
There is a potential security UI origin spoofing vulnerability in tabbed PWAs on ChromeOS. When a user switches tabs, WebAppOriginText fails to update its cached origin text, but may still be triggered to fade in due to a theme-color update. This causes the title bar to briefly flash the origin of the previous tab over the newly active tab's content.
Note: These findings represent a potential vulnerability analyzed through static code inspection. Our tooling does not currently have the capability to execute code or run a working proof of concept.
Root Cause Analysis
In chrome/browser/ui/views/web_apps/frame_toolbar/web_app_origin_text.cc, OnTabStripModelChanged handles tab selection changes but only re-binds the web contents observer:
void WebAppOriginText::OnTabStripModelChanged(
TabStripModel* tab_strip_model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) {
if (selection.active_tab_changed() && !tab_strip_model->empty()) {
Observe(selection.new_contents); // Only rebinds observer; label_ is untouched
}
}
When a PWA utilizes non-empty scope_extensions, the title bar origin flash text is dynamic per-active-tab. This is because WebAppBrowserController::GetFormattedUrlOrigin() retrieves the formatted URL of the active tab instead of a static app origin.
When switching from Tab A (on partner.example) to an already background-loaded Tab B (on attacker.example), OnTabStripModelChanged only updates the observer. Since Tab B has already finished navigating, DidFinishNavigation is not called, and the label_ text is left holding the stale value of 'partner.example'.
If Tab B has a different <meta name="theme-color"> than Tab A, the tab switch triggers a window theme update through AppBrowserController::UpdateThemePack(). This propagates down the views hierarchy:
BrowserWindowThemeObserver::NotifyThemeChanged -> WebAppFrameToolbarView::OnThemeChanged -> UpdateCaptionColors -> UpdateChildrenColor(true) -> WebAppToolbarButtonContainer::SetColors -> WebAppOriginText::SetTextColor(..., show_text=true).
SetTextColor then invokes StartFadeAnimation(), which fades in the stale 'partner.example' text over the active, attacker-controlled Tab B. Because both origins are within the validated scope (via scope_extensions), no custom tab bar is shown, and the title-bar flash is the only origin indicator displayed to the user.
Potential Replication Steps
- On ChromeOS, install a tabbed PWA from
https://attacker.example/app/whose manifest includes"display_override": ["tabbed"], a valid"scope_extensions"entry forhttps://partner.example, and appropriate origin-association verification. - In Tab A, navigate to
https://partner.example/page(which sets<meta name="theme-color" content="#0000ff">). The title bar flashes'partner.example'and fades out. - Open Tab B in the background on
https://attacker.example/app/phish(which sets<meta name="theme-color" content="#ff0000">) and wait for it to finish loading. - Click Tab B in the tab strip.
- Observe that the title bar incorrectly fades in and displays
'partner.example'for several seconds while Tab B's attacker-controlled content is active.
Proposed Fix
In WebAppOriginText::OnTabStripModelChanged, the origin text cache and label should be explicitly updated to reflect the new tab's origin when the active tab changes, similar to how CustomTabBarView handles this event. For example, retrieve the AppBrowserController associated with the new web contents (or store a pointer to Browser during construction) and refresh the label text:
void WebAppOriginText::OnTabStripModelChanged(
TabStripModel* tab_strip_model,
const TabStripModelChange& change,
const TabStripSelectionChange& selection) {
if (selection.active_tab_changed() && !tab_strip_model->empty()) {
Observe(selection.new_contents);
// Retrieve the controller and update the label immediately
BrowserWindowInterface* browser =
GlobalBrowserCollection::GetInstance()->FindBrowserWithTab(selection.new_contents);
if (browser) {
if (auto* app_controller = web_app::AppBrowserController::From(browser)) {
origin_text_ = app_controller->GetLaunchFlashText();
label_->SetText(origin_text_);
}
}
}
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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 tab-change handler only rebinds the web contents observer and never updates the cached origin label, so a later theme change fades in the stale text.
Impact
The title bar could briefly show a trusted partner's origin over attacker-controlled content, potentially misleading the user, though the report is based on static inspection without a working proof of concept.
What the attacker needed
ChromeOS device; tabbed PWA with scope_extensions; origin-association verification; victim switches to attacker tab
The fix
The origin label should be explicitly refreshed from the new tab's controller when the active tab changes.
How it was found
- Install a tabbed PWA on ChromeOS whose manifest includes scope extensions for a partner origin.
- Open the partner page in one tab so the title bar shows the partner origin.
- Load an attacker page in a background tab with a different theme colour and let it finish loading.
- Switch to the attacker tab and observe the stale partner origin fading in over the attacker content.
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 Progressive Web App is a website installed to look like a normal app. Its title bar can show which site you are on. Here, after switching tabs, that title bar can keep showing the old site's name while the new tab's content is shown, which could trick someone into trusting the wrong page.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.