Inappropriate implementation in History (CVE-2026-13966)
A logic flaw in Chrome's HistoryBackend misclassifies public IP literals as untyped intranet hosts, causing navigations through a redirect chain to be promoted to a 'typed' transition. An attacker could use this to inflate the typed_count of a malicious domain, poisoning Omnibox autocomplete rankings and New Tab Page tiles to facilitate phishing.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 46 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 flaw in HistoryBackend incorrectly classifies public IP literals as intranet hosts, leading to the promotion of navigations to a 'typed' transition. Attackers can exploit this via a redirect chain to artificially inflate the typed_count of malicious domains. This poisons Omnibox autocomplete rankings and New Tab Page tiles, potentially facilitating phishing attacks.
Affected files:
components/history/core/browser/history_backend.ccchrome/browser/history/history_tab_helper.cccomponents/history/core/browser/url_database.cc
Estimated timestamp from git blame: 2017-03-20
Description
A logic flaw in HistoryBackend::IsUntypedIntranetHost incorrectly identifies public IPv4 and IPv6 literals as "untyped intranet hosts." This misclassification causes the History system to promote certain navigations to the ui::PAGE_TRANSITION_TYPED transition, even when the user did not manually type the URL.
An attacker can exploit this behavior by inducing a navigation to a malicious domain that redirects to a public IP literal. Because the promotion logic checks both the start and the end of redirect chains, this sequence causes the typed_count of the attacker's domain (the start of the chain) to be incremented. This metadata poisoning allows malicious domains to achieve high rankings in Omnibox autocomplete suggestions and appear in the New Tab Page (NTP) Most-Visited tiles.
Root Cause Analysis
The issue resides in components/history/core/browser/history_backend.cc within the IsUntypedIntranetHost function:
bool HistoryBackend::IsUntypedIntranetHost(const GURL& url) {
// ... scheme checks ...
const std::string host = url.GetHost();
const size_t registry_length =
net::registry_controlled_domains::GetCanonicalHostRegistryLength(
host, net::registry_controlled_domains::EXCLUDE_UNKNOWN_REGISTRIES,
net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES);
return (registry_length == 0) && !db_->IsTypedHost(host, /*scheme=*/nullptr);
}
For IP literals, GetCanonicalHostRegistryLength returns 0. If the IP has not been manually typed before, IsTypedHost returns false, and the function classifies the IP as an intranet host.
In HistoryBackend::AddPage, if either the initial URL or the final URL of a redirect chain is considered an untyped intranet host, the navigation transition is rewritten to TYPED (lines 995-1001).
When processing the redirect chain:
- The first entry (attacker's domain) receives the transition
TYPED | CHAIN_START. Because it lacks redirect qualifiers (likeSERVER_REDIRECT),HistoryBackend::IsTypedIncrementreturns true, and itstyped_countis incremented. - The final entry (the IP literal) receives
TYPED | SERVER_REDIRECT.IsTypedIncrementreturns false due to the redirect qualifier, ensuring the IP'styped_countremains zero. This allows the attacker to repeat the process indefinitely to inflate thetyped_countof the phishing domain.
Potential Impact
- Omnibox Ranking Manipulation:
typed_countis a primary ranking factor for Omnibox suggestions. Attackers can make phishing domains appear as high-confidence results. - New Tab Page (NTP) Poisoning: Inflated segment usage data can cause malicious sites to appear in the user's Most-Visited tiles.
Potential Reproduction Steps
- Host a page at
https://attacker.example/rthat returns a 302 redirect to a public IP literal (e.g.,http://203.0.113.7/). - From a separate page, induce a user gesture that triggers a navigation to
https://attacker.example/r(e.g., viawindow.open). - Repeat this navigation multiple times (this can be automated via script after the initial gesture).
- Observe the
urlstable in the History database. Thetyped_countforattacker.examplewill increment on each visit. - Verify that
attacker.examplenow appears as a top suggestion in the Omnibox and in NTP tiles.
Suggested Fix
Modify HistoryBackend::IsUntypedIntranetHost to explicitly exclude IP literals. This can be achieved by checking if the host is an IP address before proceeding with the registry length check:
bool HistoryBackend::IsUntypedIntranetHost(const GURL& url) {
if (!url.SchemeIsHTTPOrHTTPS() && !url.SchemeIs(url::kFtpScheme))
return false;
if (url.HostIsIPAddress())
return false;
// ... existing registry_length logic ...
}
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
The function IsUntypedIntranetHost treats any host with a registry length of zero as an intranet host, but public IP literals also have a registry length of zero, so they are misclassified and trigger the typed-transition promotion.
Impact
Inflated typed_count could make malicious domains rank highly in Omnibox suggestions and appear in New Tab Page Most-Visited tiles, potentially facilitating phishing attacks.
What the attacker needed
Victim visits attacker page; user gesture to open redirecting page; script can repeat navigation
The fix
The function IsUntypedIntranetHost should be modified to explicitly exclude IP literals by checking if the host is an IP address before the registry length check.
How it was found
- Host a page that returns a 302 redirect to a public IP literal.
- From a separate page, induce a user gesture that triggers a navigation to the redirecting page.
- Repeat this navigation multiple times, which can be automated via script after the initial gesture.
- Observe the urls table in the History database; the typed_count for the attacker's domain will increment on each visit.
- Verify that the attacker's domain now appears as a top suggestion in the Omnibox and in NTP tiles.
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.
Chrome's history system gives extra ranking weight to addresses you type yourself, so they appear higher in the address bar suggestions. A bug made Chrome think that visiting a public IP address was the same as typing an intranet address, and it wrongly gave that 'typed' credit to the attacker's domain at the start of a redirect chain. By repeating this, an attacker could make their phishing site look popular and trustworthy in the address bar and on the new tab page.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.