Link following in CredentialProvider (CVE-2026-76037)
GCPW creates its Crashpad database under the machine-wide temp folder without checking for NTFS junctions, so a low-privileged user can pre-create that path as a junction. A SYSTEM process then follows the junction, letting the attacker redirect directory creation and potentially capture minidumps containing sensitive memory.
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: A potential local privilege escalation vulnerability exists in Google Credential Provider for Windows (GCPW) because it roots its Crashpad database under C:\Windows\TEMP without performing NTFS junction validation. A low-privileged local user can pre-create this path as a junction pointing to an attacker-controlled or system-protected folder. When a SYSTEM process subsequently initializes the database or writes minidumps, it traverses the junction, resulting in arbitrary directory creation or potential credential leakage.
Affected files:
chrome/credential_provider/gaiacp/gcp_crash_reporting_utils.ccthird_party/crashpad/crashpad/client/crash_report_database_win.ccchrome/credential_provider/setup/gcp_installer_crash_reporting.cc
Estimated timestamp from git blame: 2018-11-27
Description
A potential local privilege escalation (LPE) and information disclosure vulnerability exists in Google Credential Provider for Windows (GCPW) due to insecure initialization of its Crashpad database directory. GCPW resolves and initializes its Crashpad database path under the machine-wide temp directory (C:\Windows\TEMP) without verifying whether the resolved target folder contains an NTFS junction or reparse point.
On Windows, the default DACL for C:\Windows\TEMP grants BUILTIN\Users the permission to create files and subfolders. When a SYSTEM-privileged process (such as LogonUI.exe loading the GCPW credential provider DLL, or the GCPW background service) initializes crash reporting, it attempts to set up the Crashpad database under C:\Windows\TEMP\GCPW Crashpad. Since neither GCPW nor Crashpad performs reparse point (junction) validation, a local low-privileged user can hijack this creation process.
Technical Analysis
-
Path Derivation In
chrome/credential_provider/gaiacp/gcp_crash_reporting_utils.cc,GetSystemTempFolderretrieves the machine'sTEMPfolder path by querying the registry:C++ base::FilePath GetSystemTempFolder() { base::win::RegKey reg_key( HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", KEY_QUERY_VALUE); std::wstring temp_string; if (reg_key.ReadValue(L"TEMP", &temp_string) != ERROR_SUCCESS) return base::FilePath(); return base::FilePath(temp_string); }This resolves to
C:\Windows\TEMP. Next,GetFolderForCrashDumpsappends the hardcoded folder nameL"GCPW Crashpad":C++ base::FilePath GetFolderForCrashDumps() { base::FilePath system_temp_dir = GetSystemTempFolder(); ... return system_temp_dir.Append(kCrashpadDumpsFolder); } -
Insecure Directory Initialization When
InitializeGcpwCrashReportingis called, it verifies the existence of the directory and attempts to create it:C++ void InitializeGcpwCrashReporting(GcpCrashReporterClient* crash_client) { ... base::FilePath crash_dir = GetFolderForCrashDumps(); if (crash_dir.empty() || (!base::PathExists(crash_dir) && !base::CreateDirectory(crash_dir))) { ... } }The standard
base::PathExistsandbase::CreateDirectoryon Windows do not inspect whether the folder is an NTFS junction. If a junction exists atC:\Windows\TEMP\GCPW Crashpad, the calls succeed and proceed directly to opening and writing files within the junction target. -
Crashpad Database Initialization Within Crashpad's Windows-specific database implementation (
third_party/crashpad/crashpad/client/crash_report_database_win.cc), the helper functionEnsureDirectorychecks for theFILE_ATTRIBUTE_DIRECTORYattribute but does not validate whetherFILE_ATTRIBUTE_REPARSE_POINTis set:C++ bool EnsureDirectory(const base::FilePath& path) { DWORD fileattr = GetFileAttributes(path.value().c_str()); ... if ((fileattr & FILE_ATTRIBUTE_DIRECTORY) == 0) { ... } return true; }As a result,
CrashReportDatabaseWin::Initializetraverses the junction to create subdirectories such asreportsandattachments, and createssettings.datunder the target directory with default security descriptors.
Potential Attack Steps
Please note: These are potential steps based on static analysis; our tooling does not currently have the capability to execute code or verify this dynamically with a live proof of concept.
-
From a low-privilege user context, pre-create the junction pointing to an attacker-owned directory (to intercept minidumps) or a protected system directory:
CMD mklink /J "C:\Windows\TEMP\GCPW Crashpad" "C:\Users\Public\attacker_folder" -
Trigger GCPW initialization (e.g., by locking the workstation with
Win+Lor logging out, forcingLogonUI.exeto run the GCPW DLL as SYSTEM). -
Notice that the SYSTEM process creates
reports\andattachments\subfolders, as well assettings.dat, inside the redirected target folder. -
If a crash occurs in a process running under
SYSTEMthat uses this crash directory, the resulting minidump containing sensitive process memory (such as cleartext passwords, tokens, or LSA secrets) is written to the attacker-accessible folder, leading to complete local privilege escalation.
Suggested Fix
- Relocate the Database Directory: Move the GCPW Crashpad database to a secure, non-user-writable directory, such as a subdirectory of
C:\Windows\System32\config\systemprofile\AppData\Local\GCPW\instead of the sharedC:\Windows\TEMPfolder. - Reparse Point Validation: If the database must reside in a shared location, ensure that GCPW and Crashpad explicitly query the path attributes and refuse to initialize if any path component contains the
FILE_ATTRIBUTE_REPARSE_POINTattribute.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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 code checks only that the crash directory exists or can be created, and never verifies that no component of the path is an NTFS reparse point (junction).
Impact
A local user could cause arbitrary directory creation and, if a SYSTEM process crashes, obtain a minidump with sensitive memory, potentially leading to full local privilege escalation; the report notes this is based on static analysis and was not dynamically verified.
What the attacker needed
Local low-privileged user account; ability to create a junction in the Windows temp folder; a SYSTEM process using GCPW crash reporting
The fix
The database should be moved to a non-user-writable directory, and any shared location should be rejected if a path component carries the reparse point attribute.
How it was found
- As a low-privileged user, create a junction at the GCPW Crashpad path under the Windows temp folder pointing to an attacker-controlled or protected directory.
- Trigger GCPW initialisation, for example by locking or logging out so LogonUI loads the GCPW DLL as SYSTEM.
- Observe that the SYSTEM process creates the reports and attachments subfolders and settings.dat inside the redirected target.
- If a SYSTEM process crashes, its minidump is written to the attacker-accessible folder.
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.
On Windows, a junction is a folder shortcut that programs follow automatically. GCPW, a login component that runs with high privileges, puts its crash-report folder in a shared temp location that ordinary users can write to. Because it never checks whether that folder is really a shortcut, a normal user can point it somewhere else and make the high-privilege program write there instead.
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.