Information leak in MediaCapture (CVE-2026-84348)
WebRTC diagnostic logging writes raw C++ heap pointers into native log messages, and the resulting logs are saved to a predictable path inside the user profile. If chained with a separate file-read or path traversal flaw, an attacker could learn heap addresses and bypass ASLR.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The WebRTC diagnostic logging mechanism registers a native log callback that captures global events across the browser process and audio service. Some components, such as MediaStreamPowerLogger and system audio outputs, write raw C++ heap pointers using %p formatting into these native log messages. These log files are subsequently stored at predictable local paths, potentially allowing an attacker to bypass ASLR if chained with a file-read vulnerability.
Affected files:
chrome/browser/media/webrtc/webrtc_text_log_handler.cccontent/browser/renderer_host/media/media_stream_power_logger.cc
Estimated timestamp from git blame: 2026-03-05
Potential Browser Process Heap Address Disclosure via WebRTC Diagnostic Logging
Root Cause Analysis
- Unconditional Log Callback Registration:
In chrome/browser/media/webrtc/webrtc_text_log_handler.cc, WebRtcTextLogHandler::OnGetNetworkInterfaceListFinish unconditionally registers a native log callback when starting text logging, regardless of whether it was triggered by a privileged extension or via the Web API:
auto log_message_callback =
base::BindRepeating(&ForwardMessageViaTaskRunner,
base::SequencedTaskRunner::GetCurrentDefault(),
base::BindRepeating(&WebRtcTextLogHandler::LogMessage,
weak_factory_.GetWeakPtr()));
content::GetIOThreadTaskRunner({})->PostTask(
FROM_HERE,
base::BindOnce(&content::WebRtcLog::SetLogMessageCallback,
render_process_id_, std::move(log_message_callback)));
- Log Broadcast of Raw Pointers:
MediaStreamManager::AddLogMessageOnIOThread broadcasts all native log messages to every registered callback:
void MediaStreamManager::AddLogMessageOnIOThread(const std::string& message) {
for (const auto& callback : log_callbacks_) {
callback.second.Run(message);
}
}
Multiple components in the browser process and audio service log raw heap pointers to the native log. For example, MediaStreamPowerLogger (content/browser/renderer_host/media/media_stream_power_logger.cc) logs raw this pointer heap addresses using the %p format specifier:
void MediaStreamPowerLogger::OnSuspend() {
SendLogMessage(base::StringPrintf("OnSuspend([this=%p])", this));
}
Similarly, some low-latency audio inputs and outputs (e.g., PulseAudioOutputStream in media/audio/pulse/pulse_output.cc) write raw this pointers into their log callbacks.
- Predictable Local Storage:
When logging is finished via finishDiagnosticLogging with should_upload_on_stop=false, the accumulated log buffer is compressed and written to a predictable directory inside the user's profile:
<profile>/WebRTC Web API Logs/<epoch>.gz
Potential Exploitation Scenario
While a web origin cannot directly read local files, this behavior acts as a potential browser-process ASLR bypass primitive for an attacker:
- An attacker origin allowlisted by enterprise policy (or a compromised renderer invoking the
blink::mojom::RTCLoggingDispatcherMojo interface directly) initiates WebRTC diagnostic logging. - A system power or thermal event occurs (such as a device suspend/resume or CPU load thermal change), triggering the browser process to write the raw
thispointer heap address ofMediaStreamPowerLoggerto the native log. - The page stops diagnostic logging, causing the browser to compress the accumulated logs into
<profile>/WebRTC Web API Logs/<epoch>.gz. - Any separate directory traversal or local file-read vulnerability can be used to retrieve and extract the gzip file, exposing the exact layout of the browser process partition allocator.
(Note: These are potential steps; our tooling does not currently have the capability to execute proof-of-concept exploit code.)
Suggested Remediation
To resolve this issue, avoid printing raw C++ pointer addresses inside log messages. Pointers logged via %p format specifiers in MediaStreamPowerLogger, low-level audio/video wrappers, and other diagnostic emitters should be sanitized, hashed, or replaced with logical identifiers (such as unique integer IDs or object UUIDs) before being written to native logs.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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 diagnostic logging code formats raw object pointers with %p and stores the logs at a predictable local path, without sanitising the addresses.
Impact
This could act as an ASLR bypass primitive, but only when chained with a separate local file-read vulnerability; the text notes no proof-of-concept was executed.
What the attacker needed
Enterprise allowlist or compromised renderer; a power or thermal event occurs; a separate file-read vulnerability
The fix
Raw pointer addresses in log messages should be sanitised, hashed or replaced with logical identifiers before being written.
How it was found
- An allowlisted origin or a compromised renderer starts WebRTC diagnostic logging.
- A power or thermal event makes the browser log a raw heap pointer.
- The page stops logging, so the logs are compressed into a predictable profile folder.
- A separate file-read or traversal flaw is used to retrieve and unpack the log.
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.
Some browser logging code writes memory addresses into log files. Those files are saved in a known folder, so if another bug lets an attacker read files, they could learn where things sit in memory and make further attacks easier. On its own this does not let anyone read the files.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.