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

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.cc
  • third_party/crashpad/crashpad/client/crash_report_database_win.cc
  • chrome/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

  1. Path Derivation In chrome/credential_provider/gaiacp/gcp_crash_reporting_utils.cc, GetSystemTempFolder retrieves the machine's TEMP folder 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, GetFolderForCrashDumps appends the hardcoded folder name L"GCPW Crashpad":

    C++
    base::FilePath GetFolderForCrashDumps() {
      base::FilePath system_temp_dir = GetSystemTempFolder();
      ...
      return system_temp_dir.Append(kCrashpadDumpsFolder);
    }
    
  2. Insecure Directory Initialization When InitializeGcpwCrashReporting is 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::PathExists and base::CreateDirectory on Windows do not inspect whether the folder is an NTFS junction. If a junction exists at C:\Windows\TEMP\GCPW Crashpad, the calls succeed and proceed directly to opening and writing files within the junction target.

  3. Crashpad Database Initialization Within Crashpad's Windows-specific database implementation (third_party/crashpad/crashpad/client/crash_report_database_win.cc), the helper function EnsureDirectory checks for the FILE_ATTRIBUTE_DIRECTORY attribute but does not validate whether FILE_ATTRIBUTE_REPARSE_POINT is 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::Initialize traverses the junction to create subdirectories such as reports and attachments, and creates settings.dat under 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.

  1. 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"
    
  2. Trigger GCPW initialization (e.g., by locking the workstation with Win+L or logging out, forcing LogonUI.exe to run the GCPW DLL as SYSTEM).

  3. Notice that the SYSTEM process creates reports\ and attachments\ subfolders, as well as settings.dat, inside the redirected target folder.

  4. If a crash occurs in a process running under SYSTEM that 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

  1. 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 shared C:\Windows\TEMP folder.
  2. 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_POINT attribute.

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.

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 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

  1. 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.
  2. Trigger GCPW initialisation, for example by locking or logging out so LogonUI loads the GCPW DLL as SYSTEM.
  3. Observe that the SYSTEM process creates the reports and attachments subfolders and settings.dat inside the redirected target.
  4. 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.

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.