Skip to content
Access control Advisory Advanced CVE-2026-17803

Insufficient validation of untrusted input in Save to Drive (CVE-2026-17803)

A logic flaw in Chrome's Save to Drive feature lets a compromised PDFium renderer supply a spoofed filename and arbitrary file content that the browser uploads to the user's Google Drive using its privileged OAuth token. The account chooser does not show the filename, so the user cannot notice the substitution.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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: A logic vulnerability in Chrome's 'Save to Drive' feature allows a compromised PDFium renderer to perform authenticated writes of arbitrary data to a user's Google Drive. The browser process trusts renderer-provided metadata and file content during the upload flow, bypassing intended sandbox restrictions. The attack is facilitated by the lack of filename visibility in the 'Save to Drive' user interface.

Affected files:

  • chrome/browser/save_to_drive/pdf_content_reader.cc
  • chrome/browser/save_to_drive/multipart_drive_uploader.cc
  • chrome/browser/save_to_drive/resumable_drive_uploader.cc
  • chrome/browser/save_to_drive/save_to_drive_flow.cc
  • chrome/browser/extensions/api/pdf_viewer_private/pdf_viewer_private_api.cc
  • components/pdf/browser/pdf_document_helper.cc

Estimated timestamp from git blame: 2025-09-08

Summary

A logic vulnerability has been identified in the Chrome 'Save to Drive' flow that allows a compromised, sandboxed PDFium renderer process to write arbitrary files to a user's Google Drive. The browser process acts as a confused deputy, using its privileged OAuth credentials to upload data and metadata provided by the untrusted renderer without sufficient validation or user transparency.

Technical Analysis

When a user interacts with a PDF, the sandboxed renderer can influence the 'Save to Drive' process through several vectors:

  1. Filename Spoofing: The PDF renderer (plugin) can set the document title by sending a message to the extension frame, which then calls the pdfViewerPrivate.setPdfDocumentTitle API. The browser process implementation in PdfViewerPrivateSetPdfDocumentTitleFunction::Run (chrome/browser/extensions/api/pdf_viewer_private/pdf_viewer_private_api.cc) updates the WebContents title to this renderer-provided string without sanitization or origin validation.

  2. UI Masking: When the 'Save to Drive' flow is initiated, the browser displays an AccountChooser dialog (chrome/browser/ui/views/save_to_drive/account_chooser_view.cc). This dialog displays generic text (e.g., 'Save to Google Drive') but does not show the filename to the user. This prevents the user from noticing if the filename has been spoofed (e.g., changed from document.pdf to malicious.exe).

  3. Content Control: The browser retrieves the file content from the renderer via the pdf::mojom::SaveDataBufferHandler Mojo interface. The PDFContentReader (chrome/browser/save_to_drive/pdf_content_reader.cc) trusts the total_file_size and the bytes provided by the renderer-hosted Mojo implementation.

  4. Privileged Upload: The SaveToDriveFlow (chrome/browser/save_to_drive/save_to_drive_flow.cc) retrieves the spoofed title from the WebContents and uses it as the filename for the upload. The browser then uses an OAuth2 token with full https://www.googleapis.com/auth/drive scope to perform the upload via the browser-process URLLoaderFactory.

Because the PDFium renderer is normally denied network and filesystem access, the ability to perform authenticated writes to the user's cloud storage represents a significant bypass of sandbox isolation.

Potential Impact

An attacker who has already compromised the PDFium renderer can place arbitrary files into a user's Google Drive. This could be used to deliver malicious executables, plant spoofed documents, or exfiltrate data by masquerading as a legitimate 'Save to Drive' operation. While the attack requires the user to initiate the save and select an account, the lack of filename visibility makes the operation effectively silent.

Potential Reproduction Steps

  1. Compromise a sandboxed PDFium renderer (e.g., via a simulated memory corruption exploit).
  2. From the renderer, send a metadata update to change the document title to payload.exe.
  3. The extension UI will call chrome.pdfViewerPrivate.setPdfDocumentTitle('payload.exe'), updating the browser's tab title.
  4. The renderer triggers the save flow by calling chrome.pdfViewerPrivate.saveToDrive() (this API does not require a user gesture in the IDL).
  5. The user is presented with the Account Chooser. They see a request to 'Save to Google Drive' and select their account.
  6. The browser process fetches the title payload.exe and the malicious bytes from the renderer.
  7. The browser uploads the malicious file to the user's Google Drive.

Suggested Fix

  1. User Transparency: Modify the AccountChooser UI in chrome/browser/ui/views/save_to_drive/account_chooser_view.cc to explicitly display the filename being saved.
  2. Metadata Validation: Sanitize and validate the filename in the browser process before using it in the Drive API request. Ensure the extension is consistent with the expected file type (e.g., enforce a .pdf extension).
  3. Content Verification: Perform basic validation on the data returned by the SaveDataBufferHandler (e.g., verify the PDF magic header) to ensure the renderer is not providing entirely different file types.

Evaluated with Chrome root at commit: 29093e11cf509e3593f6229e4b1b075cca356049


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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 trusts renderer-supplied metadata and content during the Save to Drive flow and uploads it with its own OAuth credentials without validating the filename or file type or showing the filename to the user.

Impact

An attacker who has already compromised the PDFium renderer could place arbitrary files into the user's Google Drive, though the user must still initiate the save and select an account.

What the attacker needed

Compromised PDFium renderer; user initiates save and picks an account

The fix

The account chooser should display the filename, the browser should sanitise and validate the filename and enforce the expected file type, and it should check the content returned by the renderer.

How it was found

  1. Compromise a sandboxed PDFium renderer.
  2. From the renderer, change the document title to a chosen filename.
  3. The extension UI calls the PDF viewer private API to set the tab title.
  4. The renderer triggers the save flow without a user gesture.
  5. The user sees the account chooser and selects an account.
  6. The browser fetches the title and bytes from the renderer and uploads them to Google Drive.

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.

Chrome runs PDFs in a locked-down helper process (the renderer) that normally cannot touch the network or your files. This report says that helper can trick the main browser into uploading a file of its choosing to your Google Drive, because the browser trusts the name and bytes the helper provides and the confirmation dialog never shows the filename.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.