Insufficient validation of untrusted input in Printing (CVE-2026-10971)
An unvalidated printer name supplied by a renderer process is passed to a Windows API call in the browser process, allowing a compromised renderer to force an authenticated NTLM connection to an attacker-controlled host. This can leak the user's NTLM credentials and enable authenticated SSRF.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 20 days
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A compromised renderer can provide a malicious UNC path as a printer name, which is processed unvalidated by the browser process. On Windows, this leads to a privileged API call that can trigger an authenticated NTLM connection to an attacker-controlled host, leaking credentials.
Affected files:
chrome/browser/printing/print_backend_service_manager.ccchrome/browser/printing/printer_query_oop.ccchrome/browser/printing/print_view_manager_base.cc
Estimated timestamp from git blame: 2021-07-09
Summary
A potential vulnerability exists in the Chrome printing stack on Windows where an unvalidated printer name (device name) supplied by a renderer process is used in a privileged GDI/Spooler API call within the browser process. A compromised renderer can leverage this to force the browser process to initiate an authenticated NTLM connection to an arbitrary UNC path, leading to the leakage of the user's NTLM credentials and enabling authenticated SSRF attacks.
Root Cause
In chrome/browser/printing/print_view_manager_base.cc, the UpdatePrintSettings Mojo method receives print settings from the renderer as a dictionary. This dictionary contains a deviceName field which is intended to be the name of the target printer.
The function PrintSettingsFromJobSettings in printing/print_settings_conversion.cc extracts this name and stores it in a PrintSettings object without performing any validation or sanitization on the string content.
On Windows, when the printer type is kLocal, the browser process proceeds to query printer information. This eventually leads to a call to PrintBackend::GetPrinterDriverInfo(printer_name). In the Windows implementation (printing/backend/print_backend_win.cc), this function calls ::OpenPrinter with the attacker-controlled string.
Even when Out-of-Process (OOP) printing is enabled, the browser process still performs an in-process call to GetPrinterDriverInfo within PrintBackendServiceManager::SetCrashKeys for crash reporting purposes. This bypasses the isolation that OOP printing aims to provide for printer driver interactions.
Potential Attack Path
- Renderer Compromise: An attacker gains control over a renderer process.
- Malicious IPC: The compromised renderer sends an
UpdatePrintSettingsIPC to the browser process with a maliciousdeviceNameset to a UNC path (e.g.,\\attacker.evil\fake_printer). - Browser Execution:
PrintViewManagerBasein the browser process receives the request and, for local printers, invokesPrinterQuery::UpdatePrintableAreaorPrintBackendServiceManager::GetPaperPrintableArea. - Privileged Sink: These functions call
GetPrinterDriverInfoin the browser process, which executes::OpenPrinteron the malicious UNC path. - Credential Leak: The Windows Spooler service attempts to connect to the UNC path. The attacker's server at
attacker.evilrequests authentication, and the browser process sends the user's NTLM hash.
Impact
- NTLM Credential Leak: Capture of the user's NTLM hash for offline cracking or NTLM relay attacks.
- Authenticated SSRF: Forcing the browser process to make SMB/RPC requests to internal or external network resources.
- Security Boundary Bypass: Bypassing the isolation of the printing stack by forcing privileged calls in the browser process using unvalidated renderer data.
Suggested Fix
The browser process must validate that the deviceName provided by the renderer corresponds to an actually installed and available printer on the system before passing it to any backend or crash-reporting functions. Validation should occur at the IPC entry point in PrintViewManagerBase or during the conversion in PrintSettingsFromJobSettings.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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
The browser process does not validate the printer name (deviceName) received from the renderer before using it in a Windows API call that can initiate a network connection.
Impact
A compromised renderer could leak the user's NTLM credentials and force the browser process to make SMB/RPC requests to internal or external network resources, bypassing the isolation of the printing stack.
What the attacker needed
Compromised renderer process; Windows operating system
The fix
The browser process should validate that the deviceName corresponds to an actually installed and available printer before passing it to any backend or crash-reporting functions.
How it was found
- Compromise a renderer process.
- Send an UpdatePrintSettings IPC with a malicious deviceName set to a UNC path.
- The browser process receives the request and, for local printers, invokes printer query functions.
- These functions call GetPrinterDriverInfo, which executes OpenPrinter on the malicious UNC path.
- The Windows Spooler service connects to the UNC path, and the attacker's server requests authentication, causing the browser process to send the user's NTLM hash.
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.
A renderer is the part of the browser that displays web pages. If an attacker can take control of it, they can send a special printer name to the browser's core process. On Windows, the core process then tries to connect to that name over the network, which can reveal the user's login credentials to the attacker.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.