# Controlling the Google Assistant via Web Speech API

A market:// deeplink auto-launches Google Assistant with mic active, letting a webpage speak commands via Web Speech API and control the device.

- Payout: $3,134
- Severity: medium
- Program: Google
- Found by: NDevTK
- Disclosed: 2025-08-31
- Write-up quality: 6/10
- Original: https://ndevtk.github.io/writeups/2025/08/30/assistant/
- Library page: https://bugbountylibrary.com/r/blog%3Andevtk-github-io-writeups-2025-08-30-assistant
- Tags: area:mobile domain:mobile domain:web impact:integrity kind:bounty platform:blog sev:medium tech:android technique:chained vuln:auth-bypass vuln:business-logic

**Target:** Google Assistant Android app (com.google.android.apps.googleassistant) launched via market:// deeplink
**Root cause:** The BROWSABLE market://launch intent opens the Assistant app and auto-activates the microphone instead of requiring a manual mic tap, so nearby speech (including TTS from the browser) is interpreted as user commands.
**Steps:**
1. Host a page with an onclick handler that calls `open('market://launch?id=com.google.android.apps.googleassistant')`.
2. In the handler, create `new SpeechSynthesisUtterance('Turn on airplane mode')` and speak it on a 2s interval while `speechSynthesis.speaking` is false.
3. Victim clicks anywhere on the page; the deeplink launches Assistant with mic already listening.
4. Browser TTS audio is captured by the Assistant mic and executed as a voice command.
**How found:** Prior report (xdavidhu bug 0011) established Assistant should require manual mic press on deeplink launch; author tested the market://launch BROWSABLE intent and observed the mic auto-activates, then combined with Web Speech API TTS to inject commands.
**Exploitation:** Attacker lures victim to a webpage; a single click triggers the market:// deeplink to launch Assistant (mic auto-on) while the page loops TTS utterances, so the Assistant hears and executes attacker-chosen commands like 'Turn on airplane mode'.
**Insight:** BROWSABLE market:// intents that launch privileged apps can skip in-app consent gates (like mic activation); pair with Web Speech API TTS to feed attacker audio into any auto-listening assistant.

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

**HTML/JS PoC launching Assistant deeplink with speech**

```
<h1>Click anywhere and wait.</h1>

<script>
 onclick = () => {
 const utterance = new SpeechSynthesisUtterance('Turn on airplane mode');

 setInterval(() => {
 if (speechSynthesis.speaking) return;
 speechSynthesis.speak(utterance);
 }, 2000);

 open('market://launch?id=com.google.android.apps.googleassistant');
 };
</script>
```

