Insufficient validation of untrusted input in Speech (CVE-2026-13856)
A compromised renderer on Android can bypass the per-origin microphone permission check for the Web Speech API by injecting a forged audio_forwarder field into a Mojo message. The browser skips the permission gate because it believes the renderer is providing audio, but the Android speech backend opens the real device microphone anyway, allowing silent audio capture and transcription.
c6eed09fc8b174b0f3eebedcceb1e792 Follow
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Forged audio_forwarder in SpeechRecognition IPC bypasses per-origin microphone permission on Android
Summary
On Android, a compromised renderer can bypass the browser-enforced per-origin microphone permission check for the Web Speech API by injecting a forged audio_forwarder into the StartSpeechRecognitionRequestParams Mojo message. The browser process uses the presence of this field as a trusted signal that audio will be forwarded from the renderer rather than captured from the device microphone, and accordingly skips the CheckRecognitionIsAllowed permission gate. However, on Android the speech recognition backend (SpeechRecognizerImplAndroid) unconditionally opens the real device microphone via the Android SpeechRecognizer API regardless of whether an audio_forwarder was provided; it simply ignores the field. The result is that any origin with a compromised renderer can silently activate the microphone and receive speech transcription results without the user ever seeing a permission prompt, provided the Chrome app already holds the Android-level RECORD_AUDIO permission. Platform: Android only.
Bisect
Introducing Commit: 881ab7a9d5955a4f57c19c11a49703b468984fa6
- Date: 2024-08-01
- Author: Evan Liu
- Review: https://chromium-review.googlesource.com/c/chromium/src/+/5631655
Root Cause
When the "Add MediaStreamTrack support to the Web Speech API" feature was introduced, a new audio_forwarder field was added to StartSpeechRecognitionRequestParams in the Mojo interface. This field allows the renderer to supply its own audio stream to the speech recognition engine instead of having the browser capture from the microphone. The permission model was updated to treat the presence of this field as meaning "the renderer is providing audio, so no microphone access is needed":
// content/browser/speech/speech_recognition_manager_impl.cc:620-625
auto session = std::make_unique<Session>();
session->id = session_id;
session->config = config;
session->context = config.initial_context;
session->use_microphone = !audio_forwarder_config.has_value();
The use_microphone flag is the sole gate controlling whether the browser performs permission checks. In StartSession, when use_microphone is false, the entire permission path is skipped and recognition begins immediately:
// content/browser/speech/speech_recognition_manager_impl.cc:249-277
void SpeechRecognitionManagerImpl::StartSession(int session_id) {
if (sessions_[session_id]->use_microphone) {
microphone_session_id_ = session_id;
if (delegate_) {
delegate_->CheckRecognitionIsAllowed(
session_id,
base::BindOnce(
&SpeechRecognitionManagerImpl::RecognitionAllowedCallback,
weak_factory_.GetWeakPtr(), session_id));
}
return;
}
// Permission check skipped entirely.
base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(
FROM_HERE,
base::BindOnce(&SpeechRecognitionManagerImpl::DispatchEvent,
weak_factory_.GetWeakPtr(), session_id, EVENT_START));
}
On desktop platforms, this logic is sound because the SpeechRecognizerImpl class actually consumes the forwarded audio from the renderer and never opens the microphone. On Android, however, the code takes an entirely different branch. The CreateSession method is guarded by #if !BUILDFLAG(IS_ANDROID) for the desktop recognizer, and the #else branch unconditionally creates a SpeechRecognizerImplAndroid that has no knowledge of audio_forwarder at all:
// content/browser/speech/speech_recognition_manager_impl.cc:741-743
#else
session->recognizer = new SpeechRecognizerImplAndroid(this, session_id);
#endif
SpeechRecognizerImplAndroid::StartRecognition delegates directly to the Java SpeechRecognitionImpl class via JNI, which calls android.speech.SpeechRecognizer.startListening() to capture audio from the real device microphone:
// SpeechRecognitionImpl.java:298-312
private void startRecognition(String language, boolean continuous, boolean interimResults) {
mRecognizer.startListening(mIntent);
}
This creates a semantic contradiction: the browser decided to skip the permission check because it believes the renderer is providing its own audio, but the Android backend opens the actual microphone anyway.
The SpeechRecognitionDispatcherHost::Start method does validate that channel_count and sample_rate are positive when audio_forwarder is present, but this is trivially satisfied by the attacker. There is no validation rejecting the audio_forwarder field on Android where it has no effect, and there is no re-verification at the point where the recognizer actually begins capturing audio.
The Android SpeechRecognizer API used here is the in-process variant (SpeechRecognizer.createSpeechRecognizer with a RecognitionListener), which operates silently with no system UI. On Android 12 and later the OS displays a small green privacy indicator dot in the status bar, but earlier versions provide no indication at all.
The attack requires a compromised renderer. An attacker sends a StartSpeechRecognitionRequestParams message with a valid audio_forwarder PendingReceiver (the receiver need not be bound to anything functional), channel_count set to 1, and sample_rate set to 16000. The browser process accepts these parameters, sets use_microphone to false, and starts recognition without any permission check. On a device with Google Mobile Services installed, the Android SpeechRecognizer will successfully capture microphone audio and deliver speech transcription results back through the SpeechRecognitionSessionClient Mojo interface to the compromised renderer.
Reproduce
Tested at commit 18ff6ec31153904f6f7613dcc6cc79c09dbc7042 on a Pixel 7 Pro running AOSP Android 15 (SDK 35). The Chrome app must already hold the Android RECORD_AUDIO permission (as it would after any prior legitimate microphone grant to any origin).
Apply the renderer and browser instrumentation patch:
cd ~/chromium/src
git apply issue_ipc006/patch.diff
Build and install:
autoninja -C out/android chrome_public_apk
out/android/bin/chrome_public_apk install
Serve the PoC and set up port forwarding:
python3 -m http.server 8888 --directory issue_ipc006 &
adb reverse tcp:8888 tcp:8888
Launch Chrome:
adb logcat -c
out/android/bin/chrome_public_apk launch \
--args='--enable-logging=stderr' \
http://localhost:8888/poc.html
The page auto-starts speech recognition after two seconds. No permission dialog appears. Within a few seconds, the following appears in adb logcat:
04-30 20:49:38.955 8255 8267 E chromium: [ERROR:third_party/blink/renderer/modules/speech/speech_recognition_controller.cc:124] POC: Forged audio_forwarder injected by compromised renderer
04-30 20:49:38.959 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:628] POC: CreateSession use_microphone=0 audio_forwarder_config=1
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:254] POC: StartSession use_microphone=0
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognizer_impl_android.cc:46] POC: SpeechRecognizerImplAndroid::StartRecognition called - will open REAL microphone via Android SpeechRecognizer API
04-30 20:49:38.974 8208 8208 E SpeechRecognizer: no selected voice recognition service
The log confirms that the renderer (PID 8255) injected a forged audio_forwarder, the browser process (PID 8208) set use_microphone=0 and skipped CheckRecognitionIsAllowed, and SpeechRecognizerImplAndroid::StartRecognition was called. The final error "no selected voice recognition service" is an artifact of the AOSP test device lacking Google Speech Services (AGSA/SSBG); on a production device with GMS, startListening() would succeed and deliver transcription results to the attacker.
This is a logic permission bypass, not a memory safety violation, so there is no ASAN or HWASAN report. Verification is through the logcat trace confirming that the permission check path was skipped while the real microphone backend was invoked.
Credit
Please use c6eed09fc8b174b0f3eebedcceb1e792 as the credit for this vulnerability. Thank you.
Context
Chrome's Web Speech API lets a page ask the browser to turn speech into text. On Android the browser process brokers this through Mojo: the renderer sends a StartSpeechRecognitionRequestParams message to the browser, and the browser decides whether the request is allowed to touch the microphone before it starts a recognition session.
The permission model is per origin. Before recognition starts, the browser is supposed to run CheckRecognitionIsAllowed so that the user is asked for microphone access for the calling origin. The feature also supports a second mode: the renderer can supply its own audio stream through an audio_forwarder field, in which case the browser assumes no device microphone is needed and skips the permission gate.
This report describes a logic flaw in that second mode on Android. A compromised renderer can claim to supply its own audio, skip the permission check, and still cause the Android backend to open the real device microphone. The affected component is Speech, the platform is Android only, and the issue is tracked as CVE-2026-13856 (insufficient validation of untrusted input).
Setup
The reproduction was done at commit [redacted] on a Pixel 7 Pro running AOSP Android 15 (SDK 35).
The precondition is that the Chrome app already holds the Android-level RECORD_AUDIO permission. That is the state after any prior legitimate microphone grant to any origin, so it is a realistic condition on a device in normal use. The attack itself does not require the attacker's origin to have been granted anything.
The researcher also needed a Chromium checkout with a renderer and browser instrumentation patch, the Android build toolchain (autoninja), adb with a connected device, and a local HTTP server for the proof of concept. The threat model is a compromised renderer: the attacker can already send arbitrary Mojo messages from the renderer process to the browser process.
Finding it
The starting point is the commit that added MediaStreamTrack support to the Web Speech API, [redacted] (2024-08-01, author Evan Liu, review at https://chromium-review.googlesource.com/c/chromium/src/+/5631655). That change introduced the audio_forwarder field in StartSpeechRecognitionRequestParams and rewired the permission model around it: if the field is present, the renderer is providing audio, so no microphone access is needed.
What looked wrong is the mismatch between that assumption and the Android backend. On desktop, the recogniser really does consume the forwarded stream and never opens the microphone, so treating the field as a permission bypass is sound. On Android the code takes a different branch and creates a recogniser that has no knowledge of audio_forwarder at all, yet the permission decision is still made from the field's presence. The browser therefore believes it is not touching the microphone while the Android backend opens it anyway.
Exploitation
Step 1: understand the permission gate
The session records whether the microphone is needed purely from the presence of the forwarded audio configuration:
// content/browser/speech/speech_recognition_manager_impl.cc:620-625
auto session = std::make_unique<Session>();
session->id = session_id;
session->config = config;
session->context = config.initial_context;
session->use_microphone = !audio_forwarder_config.has_value();
use_microphone is the sole gate for permission checks. In StartSession, when it is false the whole permission path is skipped and recognition is dispatched immediately:
// content/browser/speech/speech_recognition_manager_impl.cc:249-277
void SpeechRecognitionManagerImpl::StartSession(int session_id) {
if (sessions_[session_id]->use_microphone) {
microphone_session_id_ = session_id;
if (delegate_) {
delegate_->CheckRecognitionIsAllowed(
session_id,
base::BindOnce(
&SpeechRecognitionManagerImpl::RecognitionAllowedCallback,
weak_factory_.GetWeakPtr(), session_id));
}
return;
}
// Permission check skipped entirely.
base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(
FROM_HERE,
base::BindOnce(&SpeechRecognitionManagerImpl::DispatchEvent,
weak_factory_.GetWeakPtr(), session_id, EVENT_START));
}
So a renderer that sets audio_forwarder reaches EVENT_START without any origin check.
Step 2: confirm the Android branch ignores the field
On Android, CreateSession falls into the #else branch and unconditionally builds an Android recogniser:
// content/browser/speech/speech_recognition_manager_impl.cc:741-743
#else
session->recognizer = new SpeechRecognizerImplAndroid(this, session_id);
#endif
That class delegates through JNI to the Java implementation, which calls the platform API to listen to the real microphone:
// SpeechRecognitionImpl.java:298-312
private void startRecognition(String language, boolean continuous, boolean interimResults) {
mRecognizer.startListening(mIntent);
}
The audio_forwarder value is never consulted here. The browser skipped the permission check on the strength of a field the backend does not use.
Step 3: check what validation exists
SpeechRecognitionDispatcherHost::Start does check that channel_count and sample_rate are positive when audio_forwarder is present, but those values are trivially supplied by an attacker. Nothing rejects audio_forwarder on Android, where it has no effect, and nothing re-verifies the permission at the point where the recogniser actually starts capturing audio.
Step 4: build the forged message
The attacker sends a StartSpeechRecognitionRequestParams message containing a valid audio_forwarder PendingReceiver (it need not be bound to anything functional), channel_count set to 1, and sample_rate set to 16000. The browser accepts the parameters, sets use_microphone to false, and starts recognition with no permission check. On a device with Google Mobile Services installed, the Android SpeechRecognizer captures microphone audio and returns transcription results through the SpeechRecognitionSessionClient Mojo interface to the compromised renderer.
Step 5: reproduce on device
Apply the renderer and browser instrumentation patch:
cd ~/chromium/src
git apply issue_ipc006/patch.diff
Build and install the APK:
autoninja -C out/android chrome_public_apk
out/android/bin/chrome_public_apk install
Serve the PoC and forward the port to the device:
python3 -m http.server 8888 --directory issue_ipc006 &
adb reverse tcp:8888 tcp:8888
Launch Chrome against the local page:
adb logcat -c
out/android/bin/chrome_public_apk launch \
--args='--enable-logging=stderr' \
http://localhost:8888/poc.html
The page starts speech recognition automatically after two seconds. No permission dialog appears. Within a few seconds the following shows up in adb logcat:
04-30 20:49:38.955 8255 8267 E chromium: [ERROR:third_party/blink/renderer/modules/speech/speech_recognition_controller.cc:124] POC: Forged audio_forwarder injected by compromised renderer
04-30 20:49:38.959 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:628] POC: CreateSession use_microphone=0 audio_forwarder_config=1
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:254] POC: StartSession use_microphone=0
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognizer_impl_android.cc:46] POC: SpeechRecognizerImplAndroid::StartRecognition called - will open REAL microphone via Android SpeechRecognizer API
04-30 20:49:38.974 8208 8208 E SpeechRecognizer: no selected voice recognition service
The trace shows the renderer (PID 8255) injecting the forged audio_forwarder, the browser process (PID 8208) setting use_microphone=0 and skipping CheckRecognitionIsAllowed, and SpeechRecognizerImplAndroid::StartRecognition being invoked. The final line, no selected voice recognition service, is an artefact of the AOSP test device lacking Google Speech Services (AGSA/SSBG). On a production device with GMS, startListening() would succeed and deliver transcription results to the attacker.
Because this is a logic permission bypass and not a memory safety violation, there is no ASAN or HWASAN report. Verification rests on the logcat trace showing the permission path skipped while the real microphone backend was called.
Root cause
The permission decision and the audio source are decided in two different places that disagree on Android. The browser process treats the presence of audio_forwarder as proof that no microphone is needed, and derives use_microphone from it. The Android recogniser, SpeechRecognizerImplAndroid, ignores the field entirely and always calls the platform SpeechRecognizer API, which captures from the device microphone.
The existing defences did not stop it because the only validation on the forwarded-audio path is the positivity check on channel_count and sample_rate, which an attacker satisfies trivially. There is no rejection of audio_forwarder on Android and no re-check of permission where capture actually begins. The desktop path is sound because its recogniser genuinely consumes the forwarded stream, so the same field is a valid signal there.
The Android SpeechRecognizer API used here is the in-process variant (SpeechRecognizer.createSpeechRecognizer with a RecognitionListener), which runs silently with no system UI. On Android 12 and later the OS shows a small green privacy indicator dot in the status bar; earlier versions give no indication at all.
Impact
Any origin rendered by a compromised renderer can silently activate the microphone and receive speech transcription results without the user seeing a permission prompt, provided the Chrome app already holds the Android-level RECORD_AUDIO permission. The attacker does not need a prior grant for their own origin. The result is unauthorised audio capture, with recognised speech delivered back to the compromised renderer.
The attack requires a compromised renderer, and it is Android only. On Android 12 and later the green privacy dot gives a visible signal; on earlier versions there is none.
Fix
The report does not describe the patch that was applied. What the analysis implies is that the browser must not treat audio_forwarder as a permission bypass on a platform whose recogniser ignores it: either reject the field on Android, or make the Android recogniser honour the forwarded stream, and re-verify permission at the point where capture actually starts rather than relying on a flag derived from renderer-supplied input.
Variants to test
- Other Mojo messages that carry an optional renderer-supplied resource and use its presence to relax a browser-side check. A positive result is a message where the browser skips a permission or policy gate because a field is set, while the backend that handles the request ignores that field.
- Platform-specific branches in the same manager, such as
#if !BUILDFLAG(IS_ANDROID)versus#else. A positive result is a permission decision made before the branch that is only valid for one of the branches. - Fields validated only for shape, like
channel_countandsample_ratehere. A positive result is a check that accepts any positive value and never ties the value to the actual consumer of the data. - Features that gained a new optional input in a recent commit. A positive result is a commit that changes a permission model alongside adding the field, where the old backend path was not updated.
- Silent platform APIs with no user-visible prompt, such as the in-process
SpeechRecognizer. A positive result is capture that succeeds with no system UI on versions before the OS privacy indicator existed.
What happened, in plain words
Chrome has a feature called the Web Speech API. It lets a website ask the browser to listen to your microphone and turn what you say into text. Because that means using your microphone, the browser is supposed to ask you first, every time a new website wants to do it. That question is tied to the website's origin, which is the combination of protocol, host and port that identifies who is asking (for example https://example.com).
On Android phones, Chrome splits its work into two parts. One part, the renderer, runs the web page itself. The other part, the browser process, is the trusted part that is allowed to touch things like the microphone and to show permission prompts. The two talk to each other with a messaging system called Mojo. When a page wants speech recognition, the renderer sends a message called StartSpeechRecognitionRequestParams to the browser process, and the browser process decides whether the request is allowed.
The feature has a second mode. A renderer can say "I will supply my own audio, you do not need the device microphone". It does this by filling in a field called audio_forwarder in that message. When the browser sees that field, it trusts it: it assumes no microphone is involved, so it skips the permission question entirely.
On desktop computers that assumption is fine, because the desktop speech code really does use the audio the renderer sends and never opens the microphone. On Android the code is different. The Android speech code ignores the audio_forwarder field completely and always opens the real device microphone. So the browser skips the permission check because it thinks no microphone is needed, and then the Android code opens the microphone anyway.
The consequence: if an attacker can already run code inside the renderer (a "compromised renderer"), they can send a forged message claiming to supply their own audio, skip the permission prompt, and still get the phone's microphone recorded and the transcribed words sent back to them. The only precondition is that the Chrome app already has the Android-level RECORD_AUDIO permission, which it will have after any earlier legitimate microphone grant to any site. The attacker's own site never needs to have been granted anything.
This is a logic flaw, not a memory corruption bug. Nothing crashes and no memory is misused; the code simply makes the wrong decision. The issue is tracked as CVE-2026-13856, described as insufficient validation of untrusted input, in the Speech component, on Android only.
Context
What the Web Speech API is
An API (Application Programming Interface) is a defined way for one piece of software to ask another piece of software to do something. You can think of it as a restaurant menu: you pick an item by name, and the kitchen knows what to do with it. The Web Speech API is the menu a web page uses to ask the browser for speech-to-text.
How the two halves of Chrome talk
Chrome separates the web page (untrusted, runs in the renderer) from the privileged work (trusted, runs in the browser process). Mojo is the internal message system between them. A Mojo message is a structured packet with named fields, a bit like a form with boxes to fill in. The browser process reads the form and decides what to do.
The permission model
The permission model is per origin. Before speech recognition starts, the browser is supposed to run a check called CheckRecognitionIsAllowed, which is what causes the "Allow this site to use your microphone?" prompt for the calling origin.
The second mode
The feature also supports a mode where the renderer supplies its own audio stream through the audio_forwarder field. In that case the browser assumes no device microphone is needed and skips the permission gate.
The flaw in one sentence
On Android, a compromised renderer can claim to supply its own audio, skip the permission check, and still cause the Android backend to open the real device microphone. The affected component is Speech, the platform is Android only, and the issue is tracked as CVE-2026-13856 (insufficient validation of untrusted input).
Setup
The test device
The reproduction was done at commit [redacted] on a Pixel 7 Pro running AOSP Android 15 (SDK 35). A commit is a saved snapshot of the source code; the long string is its unique identifier.
The precondition
The Chrome app must already hold the Android-level RECORD_AUDIO permission. That is the state after any prior legitimate microphone grant to any origin, so it is a realistic condition on a phone in normal use. The attack itself does not require the attacker's origin to have been granted anything.
The tools
The researcher needed a Chromium checkout (a local copy of the Chrome source code) with a renderer and browser instrumentation patch, the Android build toolchain (autoninja), adb (the Android Debug Bridge, a command-line tool for talking to a connected phone) with a connected device, and a local HTTP server for the proof of concept. A proof of concept (PoC) is a small demonstration that proves the bug is real.
The threat model
The threat model is a compromised renderer: the attacker can already send arbitrary Mojo messages from the renderer process to the browser process. In plain terms, we assume the attacker already has a foothold inside the part of Chrome that runs the web page, and we ask what damage they can do from there.
Finding it
The commit that introduced the field
The starting point is the commit that added MediaStreamTrack support to the Web Speech API, [redacted] (2024-08-01, author Evan Liu, review at https://chromium-review.googlesource.com/c/chromium/src/+/5631655). That change introduced the audio_forwarder field in StartSpeechRecognitionRequestParams and rewired the permission model around it: if the field is present, the renderer is providing audio, so no microphone access is needed.
The mismatch
What looked wrong is the mismatch between that assumption and the Android backend. On desktop, the recogniser really does consume the forwarded stream and never opens the microphone, so treating the field as a permission bypass is sound. On Android the code takes a different branch and creates a recogniser that has no knowledge of audio_forwarder at all, yet the permission decision is still made from the field's presence. The browser therefore believes it is not touching the microphone while the Android backend opens it anyway.
Exploitation
Step 1: understand the permission gate
The session records whether the microphone is needed purely from the presence of the forwarded audio configuration:
// content/browser/speech/speech_recognition_manager_impl.cc:620-625
auto session = std::make_unique<Session>();
session->id = session_id;
session->config = config;
session->context = config.initial_context;
session->use_microphone = !audio_forwarder_config.has_value();
Line by line:
auto session = std::make_unique<Session>();creates a new session object, the record that tracks one speech recognition request.std::make_uniqueis C++ for "create this object and manage its memory safely".session->id = session_id;stores the numeric identifier of this session.session->config = config;copies in the configuration the renderer sent.session->context = config.initial_context;copies in the context, which includes which origin is asking.session->use_microphone = !audio_forwarder_config.has_value();is the important line.has_value()asks "did the renderer fill in theaudio_forwarderfield?". The!flips the answer. So if the field is present,use_microphonebecomes false. The browser is deciding whether it needs the microphone based only on what the renderer claimed.
use_microphone is the sole gate for permission checks. In StartSession, when it is false the whole permission path is skipped and recognition is dispatched immediately:
// content/browser/speech/speech_recognition_manager_impl.cc:249-277
void SpeechRecognitionManagerImpl::StartSession(int session_id) {
if (sessions_[session_id]->use_microphone) {
microphone_session_id_ = session_id;
if (delegate_) {
delegate_->CheckRecognitionIsAllowed(
session_id,
base::BindOnce(
&SpeechRecognitionManagerImpl::RecognitionAllowedCallback,
weak_factory_.GetWeakPtr(), session_id));
}
return;
}
// Permission check skipped entirely.
base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(
FROM_HERE,
base::BindOnce(&SpeechRecognitionManagerImpl::DispatchEvent,
weak_factory_.GetWeakPtr(), session_id, EVENT_START));
}
Line by line:
void SpeechRecognitionManagerImpl::StartSession(int session_id) {is the function that starts a recognition session.if (sessions_[session_id]->use_microphone) {checks the flag set in the previous snippet. If the microphone is needed, we go into the permission path.microphone_session_id_ = session_id;remembers which session is using the microphone.if (delegate_) {checks that the object responsible for asking the user exists.delegate_->CheckRecognitionIsAllowed(...)is the permission check. It is given a callback,RecognitionAllowedCallback, to run once the user has answered.base::BindOncepackages the function and its arguments so it can be called later.return;leaves the function after setting up the permission check.- The comment
// Permission check skipped entirely.marks the path taken whenuse_microphoneis false. base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(...)schedules work to run on the current thread.base::BindOnce(&SpeechRecognitionManagerImpl::DispatchEvent, ..., session_id, EVENT_START)packages a call toDispatchEventwith the eventEVENT_START, which is what actually begins recognition.
So a renderer that sets audio_forwarder reaches EVENT_START without any origin check. The step was taken to show that the entire permission decision rests on one boolean derived from renderer-supplied input.
Step 2: confirm the Android branch ignores the field
On Android, CreateSession falls into the #else branch and unconditionally builds an Android recogniser:
// content/browser/speech/speech_recognition_manager_impl.cc:741-743
#else
session->recognizer = new SpeechRecognizerImplAndroid(this, session_id);
#endif
Line by line:
#elseis a preprocessor directive. It means "if the condition above was false, compile this part instead". The condition above is#if !BUILDFLAG(IS_ANDROID), so this branch is the one compiled for Android.session->recognizer = new SpeechRecognizerImplAndroid(this, session_id);creates the Android speech recogniser and attaches it to the session.thispasses the manager itself so the recogniser can call back into it.#endifcloses the conditional block.
That class delegates through JNI to the Java implementation, which calls the platform API to listen to the real microphone:
// SpeechRecognitionImpl.java:298-312
private void startRecognition(String language, boolean continuous, boolean interimResults) {
mRecognizer.startListening(mIntent);
}
Line by line:
private void startRecognition(String language, boolean continuous, boolean interimResults) {declares a private method that takes a language, a flag for continuous listening and a flag for interim results. JNI is the bridge that lets Java code and C++ code call each other.mRecognizer.startListening(mIntent);calls the Android platform's speech recogniser and tells it to start listening.mIntentis an Android Intent, a description of what service to use. This is the line that opens the real microphone.}closes the method.
The audio_forwarder value is never consulted here. The browser skipped the permission check on the strength of a field the backend does not use. This step was taken to prove that the two halves of the code disagree.
Step 3: check what validation exists
SpeechRecognitionDispatcherHost::Start does check that channel_count and sample_rate are positive when audio_forwarder is present, but those values are trivially supplied by an attacker. channel_count is how many audio channels the stream has, and sample_rate is how many samples per second it contains. Nothing rejects audio_forwarder on Android, where it has no effect, and nothing re-verifies the permission at the point where the recogniser actually starts capturing audio. This step was taken to rule out the possibility that some other check would catch the forged message.
Step 4: build the forged message
The attacker sends a StartSpeechRecognitionRequestParams message containing a valid audio_forwarder PendingReceiver (it need not be bound to anything functional), channel_count set to 1, and sample_rate set to 16000. A PendingReceiver is a Mojo object that represents one end of a communication channel; it only has to exist, not to be connected to anything real. The browser accepts the parameters, sets use_microphone to false, and starts recognition with no permission check. On a device with Google Mobile Services installed, the Android SpeechRecognizer captures microphone audio and returns transcription results through the SpeechRecognitionSessionClient Mojo interface to the compromised renderer. This step was taken to show the exact shape of the message an attacker would send.
Step 5: reproduce on device
Apply the renderer and browser instrumentation patch:
cd ~/chromium/src
git apply issue_ipc006/patch.diff
Line by line:
cd ~/chromium/srcmoves into the local copy of the Chromium source code.git apply issue_ipc006/patch.diffapplies the patch file, which adds logging so the researcher can see what the code is doing. This step was taken so the internal decisions become visible in the device log.
Build and install the APK:
autoninja -C out/android chrome_public_apk
out/android/bin/chrome_public_apk install
Line by line:
autoninja -C out/android chrome_public_apkbuilds the Chrome Android package.autoninjais the build tool,-C out/androidsays where the build output goes, andchrome_public_apkis the build target. An APK is the installable app file format on Android.out/android/bin/chrome_public_apk installinstalls the freshly built app on the connected device. This step was taken so the instrumented build runs on the phone.
Serve the PoC and forward the port to the device:
python3 -m http.server 8888 --directory issue_ipc006 &
adb reverse tcp:8888 tcp:8888
Line by line:
python3 -m http.server 8888 --directory issue_ipc006 &starts a simple web server on port 8888 serving theissue_ipc006folder, which contains the proof-of-concept page. The&runs it in the background. This step was taken so the phone can load the test page over HTTP.adb reverse tcp:8888 tcp:8888makes the phone's port 8888 forward to the computer's port 8888. This step was taken solocalhost:8888on the phone reaches the server on the computer.
Launch Chrome against the local page:
adb logcat -c
out/android/bin/chrome_public_apk launch \
--args='--enable-logging=stderr' \
http://localhost:8888/poc.html
Line by line:
adb logcat -cclears the device log so only new lines are captured.logcatis Android's system log viewer.out/android/bin/chrome_public_apk launchstarts the installed app.--args='--enable-logging=stderr'passes a Chrome flag that sends internal logging to the standard error stream, whichlogcatcaptures.http://localhost:8888/poc.htmlis the page to open. This step was taken to run the proof of concept under controlled conditions.
No permission dialog appears. Within a few seconds the following shows up in adb logcat:
04-30 20:49:38.955 8255 8267 E chromium: [ERROR:third_party/blink/renderer/modules/speech/speech_recognition_controller.cc:124] POC: Forged audio_forwarder injected by compromised renderer
04-30 20:49:38.959 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:628] POC: CreateSession use_microphone=0 audio_forwarder_config=1
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognition_manager_impl.cc:254] POC: StartSession use_microphone=0
04-30 20:49:38.960 8208 8271 E chromium: [ERROR:content/browser/speech/speech_recognizer_impl_android.cc:46] POC: SpeechRecognizerImplAndroid::StartRecognition called - will open REAL microphone via Android SpeechRecognizer API
04-30 20:49:38.974 8208 8208 E SpeechRecognizer: no selected voice recognition service
Line by line:
- The first line comes from the renderer (PID 8255) and says the forged
audio_forwarderwas injected. A PID is a process identifier, the number the operating system gives each running program. - The second line comes from the browser process (PID 8208) and shows
use_microphone=0andaudio_forwarder_config=1, meaning the field was present and the microphone flag was turned off. - The third line shows
StartSession use_microphone=0, confirming the permission path was skipped. - The fourth line shows
SpeechRecognizerImplAndroid::StartRecognitionwas called and states it will open the real microphone. - The fifth line,
no selected voice recognition service, is an artefact of the AOSP test device lacking Google Speech Services.
The trace shows the renderer (PID 8255) injecting the forged audio_forwarder, the browser process (PID 8208) setting use_microphone=0 and skipping CheckRecognitionIsAllowed, and SpeechRecognizerImplAndroid::StartRecognition being invoked. The final line, no selected voice recognition service, is an artefact of the AOSP test device lacking Google Speech Services (AGSA/SSBG). On a production device with GMS, startListening() would succeed and deliver transcription results to the attacker. This step was taken to prove the permission check was skipped while the real microphone backend was still called.
Because this is a logic permission bypass and not a memory safety violation, there is no ASAN or HWASAN report. ASAN and HWASAN are tools that detect memory errors; they have nothing to report here because no memory is misused. Verification rests on the logcat trace showing the permission path skipped while the real microphone backend was called.
Root cause
The permission decision and the audio source are decided in two different places that disagree on Android. The browser process treats the presence of audio_forwarder as proof that no microphone is needed, and derives use_microphone from it. The Android recogniser, SpeechRecognizerImplAndroid, ignores the field entirely and always calls the platform SpeechRecognizer API, which captures from the device microphone.
The existing defences did not stop it because the only validation on the forwarded-audio path is the positivity check on channel_count and sample_rate, which an attacker satisfies trivially. There is no rejection of audio_forwarder on Android and no re-check of permission where capture actually begins. The desktop path is sound because its recogniser genuinely consumes the forwarded stream, so the same field is a valid signal there.
The Android SpeechRecognizer API used here is the in-process variant (SpeechRecognizer.createSpeechRecognizer with a RecognitionListener), which runs silently with no system UI. On Android 12 and later the OS shows a small green privacy indicator dot in the status bar; earlier versions give no indication at all.
Impact
Any origin rendered by a compromised renderer can silently activate the microphone and receive speech transcription results without the user seeing a permission prompt, provided the Chrome app already holds the Android-level RECORD_AUDIO permission. The attacker does not need a prior grant for their own origin. The result is unauthorised audio capture, with recognised speech delivered back to the compromised renderer. Exfiltration means sending data out to somewhere the attacker controls.
The attack requires a compromised renderer, and it is Android only. On Android 12 and later the green privacy dot gives a visible signal; on earlier versions there is none. The Chrome VRP is Chrome's Vulnerability Reward Program, which pays researchers for reporting security bugs.
Fix
The report does not describe the patch that was applied. What the analysis implies is that the browser must not treat audio_forwarder as a permission bypass on a platform whose recogniser ignores it: either reject the field on Android, or make the Android recogniser honour the forwarded stream, and re-verify permission at the point where capture actually starts rather than relying on a flag derived from renderer-supplied input.
Variants to test
- Other Mojo messages that carry an optional renderer-supplied resource and use its presence to relax a browser-side check. A positive result is a message where the browser skips a permission or policy gate because a field is set, while the backend that handles the request ignores that field.
- Platform-specific branches in the same manager, such as
#if !BUILDFLAG(IS_ANDROID)versus#else. A positive result is a permission decision made before the branch that is only valid for one of the branches. - Fields validated only for shape, like
channel_countandsample_ratehere. A positive result is a check that accepts any positive value and never ties the value to the actual consumer of the data. - Features that gained a new optional input in a recent commit. A positive result is a commit that changes a permission model alongside adding the field, where the old backend path was not updated.
- Silent platform APIs with no user-visible prompt, such as the in-process
SpeechRecognizer. A positive result is capture that succeeds with no system UI on versions before the OS privacy indicator existed.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a menu of allowed requests.
- APK: the installable app file format on Android.
- ASAN / HWASAN: tools that detect memory errors in programs; they report nothing for logic bugs.
- audio_forwarder: a field in the speech recognition message that lets the renderer supply its own audio instead of using the device microphone.
- autoninja: the build tool used to compile Chromium.
- browser process: the trusted part of Chrome that can touch the microphone and show permission prompts.
- channel_count: the number of audio channels in a stream.
- CheckRecognitionIsAllowed: the browser function that asks the user for microphone permission for an origin.
- commit: a saved snapshot of source code with a unique identifier.
- compromised renderer: a renderer process that an attacker already controls and can use to send arbitrary messages.
- CVE: a public identifier for a known security vulnerability.
- exfiltration: sending data out to somewhere the attacker controls.
- GMS: Google Mobile Services, the Google apps and services on many Android devices.
- Intent: an Android description of an action or service to use.
- JNI: the bridge that lets Java code and C++ code call each other.
- logcat: Android's system log viewer.
- Mojo: Chrome's internal message system between the renderer and the browser process.
- origin: the combination of protocol, host and port that identifies a website, such as
https://example.com. - PendingReceiver: a Mojo object representing one end of a communication channel; it only has to exist, not to be connected.
- permission model: the rules for when a site is allowed to use a sensitive resource such as the microphone.
- PID: process identifier, the number the operating system gives each running program.
- proof of concept (PoC): a small demonstration that proves a bug is real.
- RECORD_AUDIO: the Android permission that lets an app record from the microphone.
- renderer: the part of Chrome that runs the web page, treated as untrusted.
- sample_rate: how many audio samples per second a stream contains.
- SpeechRecognizer: the Android platform API that turns speech into text.
- SpeechRecognitionSessionClient: the Mojo interface that returns transcription results to the renderer.
- use_microphone: the internal flag that decides whether the browser performs the permission check.
- Web Speech API: the browser feature that lets a page ask for speech-to-text.