Incorrect security UI in Mobile (CVE-2026-13987)
A logic error in TabImpl causes an attacker-set theme-color to persist after a page's security level is downgraded to DANGEROUS, preventing security indicators from showing their red warning tint. An attacker could make a dangerous page appear secure by keeping the toolbar branded and the security icons neutral.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 days
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 logic error in TabImpl allows an attacker-set theme-color to persist even after a page's security level is downgraded to DANGEROUS. This causes the Android toolbar to retain the attacker-chosen color and prevents security indicators from displaying their critical red warning tint. The issue stems from a value-equality short-circuit that suppresses UI re-evaluation during post-commit security state changes.
Affected files:
chrome/android/java/src/org/chromium/chrome/browser/tab/TabImpl.javachrome/android/java/src/org/chromium/chrome/browser/tab/TabThemeColorHelper.javachrome/browser/ui/android/theme/java/src/org/chromium/chrome/browser/theme/TopUiThemeColorProvider.javachrome/browser/ui/android/toolbar/java/src/org/chromium/chrome/browser/toolbar/LocationBarModel.java
Estimated timestamp from git blame: 2022-01-17
Technical Analysis
A potential vulnerability exists in Chrome for Android where a page-supplied <meta name="theme-color"> remains active after a security downgrade to DANGEROUS. This state occurs when a page initially committed as SECURE subsequently loads active content (like a script) from a host with certificate errors that the user has previously bypassed.
The issue is located in the interaction between TabImpl.java and its observers:
- Early Return in
TabImpl.updateThemeColor: When a security downgrade occurs,TabThemeColorHelpertriggers an update by passing the currently cached theme color back toTabImpl.updateThemeColor(int themeColor). Inside this method, a checkif (mThemeColor == themeColor) return;(line 1945) causes an early exit if the color value itself hasn't changed. - Suppressed Notifications: Because of the early return,
TabImplfails to fire theonDidChangeThemeColorevent. Observers likeTopUiThemeColorProvider—which are responsible for reverting the toolbar to the default system color whentab.isThemingAllowed()returns false—are never notified to re-evaluate the tab's state. - Degraded Security Indicators: When the toolbar remains in a 'branded' (custom color) state,
LocationBarModelmodifies the appearance of security indicators to maintain visual contrast:getSecurityIconColorWithSecurityLevel(line 845) returns a neutral (grey/white) tint instead ofR.color.default_redbecause the color scheme is notAPP_DEFAULT.shouldEmphasizeHttpsScheme(line 580) returns false when a brand color is in use, causingOmniboxUrlEmphasizerto render the struck-through 'https' prefix in a neutral color rather than red.
Potential Reproduction Steps
These are suggested steps based on code analysis; a functional proof of concept has not yet been executed.
- User visits
https://bad-cert.testand chooses to "Proceed" through the SSL interstitial, adding the host to the session's exception list. - User navigates to
https://attacker.test(valid certificate), which specifies a theme color:<meta name="theme-color" content="#1a73e8">. - The toolbar turns blue. The security state is
SECURE. - The attacker's page dynamically loads a script from the previously bypassed host:
<script src="https://bad-cert.test/script.js"></script>. - The security level is downgraded to
DANGEROUSdue to active mixed content/cert errors. - Observed Result: The toolbar remains blue. The "dangerous" triangle icon and the struck-through 'https' in the omnibox appear in neutral white/grey instead of the expected red warning color.
Suggested Fix
Modify TabImpl.updateThemeColor to ensure observers are notified when the security state changes, even if the color value remains the same. Alternatively, TopUiThemeColorProvider and LocationBarModel should listen directly to SSL state changes and re-verify isThemingAllowed() independently of color change events.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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 a value-equality short-circuit in TabImpl.updateThemeColor suppresses observer notifications when the theme colour value has not changed, even though the security state has.
Impact
An attacker could make a dangerous page appear secure by keeping the toolbar branded and the security indicators neutral, potentially deceiving users.
What the attacker needed
User bypasses SSL interstitial for a host; Attacker page with valid certificate; Attacker page loads script from bypassed host
The fix
Modify TabImpl.updateThemeColor to notify observers on security state changes even if the colour value is unchanged, or have TopUiThemeColorProvider and LocationBarModel listen directly to SSL state changes.
How it was found
- User visits a site with a bad certificate and proceeds through the interstitial.
- User navigates to an attacker page with a valid certificate that sets a theme color.
- The toolbar turns blue and the security state is SECURE.
- The attacker page loads a script from the previously bypassed bad-certificate host.
- The security level is downgraded to DANGEROUS.
- The toolbar remains blue and the security indicators appear neutral instead of red.
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 is dangerous, the browser usually shows a red warning. Here, a bug stops the browser from updating the toolbar colour, so the warning stays grey instead of red. This could trick someone into thinking a dangerous page is safe.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.