Improper privilege management in CredentialProvider (CVE-2026-113283)
The GCPW cloud-association feature did not filter privileged local accounts when mapping Google Workspace users to Windows accounts, allowing an attacker with Workspace directory privileges to map their account to the built-in Administrator. A secondary bug that overwrote account flags inadvertently enabled the account, and the password reset flow then allowed the attacker to set a new password and gain local SYSTEM privileges.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 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 without the Chrome Security team.
Overview: The GCPW cloud-association feature fails to filter privileged local accounts when mapping Google Workspace users to Windows accounts. An attacker with Workspace directory privileges can map their account to the built-in Administrator; a secondary bug inadvertently enables the account, allowing a password reset. This allows the attacker to escalate privileges to local SYSTEM on the enrolled machine.
Affected files:
chrome/credential_provider/gaiacp/gaia_credential_base.ccchrome/credential_provider/gaiacp/os_user_manager.ccchrome/credential_provider/gaiacp/gaia_credential.h
Estimated timestamp from git blame: 2024-01-16
Description
A potential Local Privilege Escalation (LPE) vulnerability exists in the Google Credential Provider for Windows (GCPW) cloud-association feature. It stems from a combination of unfiltered account mapping and a logic error that overwrites account flags.
When a Workspace user logs in and enable_cloud_association is active, GCPW retrieves the Enhanced_desktop_security.Local_Windows_accounts custom schema attribute to map the Google account to a local Windows account. The function OSUserManager::GetUserSID calls LookupAccountName to resolve this username to a SID. However, it performs no filtering to reject well-known privileged accounts (such as the built-in Administrator, RID 500).
Additionally, after a successful mapping, CGaiaCredentialBase::ValidateOrCreateUser calls OSUserManager::SetDefaultPasswordChangePolicies to enforce password rules. In this function, info1008.usri1008_flags is set using a direct assignment (=) rather than a bitwise OR (|=). This unconditionally clears existing flags, including UF_ACCOUNTDISABLE, inadvertently enabling the mapped account even if the OS had it disabled by default.
Finally, because the local Windows password does not match the Google password, GCPW displays the "Forgot password" flow. Submitting this flow calls OSUserManager::SetUserPassword, which uses NetUserSetInfo level 1003 to forcefully reset the local password without requiring the original password, running in the SYSTEM context of LogonUI.
Potential Steps to Reproduce
(Note: These are suggested steps based on static code analysis, as our tooling agent does not have the ability to execute code to verify this live).
- An attacker with Workspace User Management privileges (or a compromised admin account) sets the
Enhanced_desktop_security.Local_Windows_accountsattribute for their user (e.g.,[email protected]) toun:Administrator. - The attacker initiates a login on a GCPW-enrolled Windows machine via the "Add user" tile.
- The attacker authenticates successfully with Google.
- GCPW maps the account to the local built-in
AdministratorSID and inadvertently enables the account by overwriting its flags inSetDefaultPasswordChangePolicies. - GCPW prompts for the local Windows password. The attacker clicks the "Forgot password" link and submits the confirmation.
- GCPW force-resets the local
Administratorpassword to the attacker's Google password. - The attacker is logged into the Windows desktop as the built-in
Administrator, achieving local SYSTEM privileges.
Suggested Fix
- Filter Privileged SIDs: In
OSUserManager::GetUserSIDorCGaiaCredential::ValidateExistingUser, validate the resolved SID to explicitly reject mapping to well-known privileged RIDs (such asDOMAIN_USER_RID_ADMIN/ 500) and ensure theSID_NAME_USEis appropriate for a standard user. - Fix Flag Overwrite: In
OSUserManager::SetDefaultPasswordChangePolicies, first retrieve the current account flags usingNetUserGetInfo(e.g., level 1 or 4). Then, apply the new policies using a bitwise OR (|=) so that existing flags likeUF_ACCOUNTDISABLEare preserved.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 combination of missing filtering of privileged local accounts during cloud-association mapping and a direct assignment that cleared existing account flags, including the disabled flag.
Impact
An attacker with Workspace directory privileges could escalate to local SYSTEM on an enrolled machine, but the report notes these steps are based on static analysis and have not been executed.
What the attacker needed
Workspace User Management privileges; GCPW-enrolled Windows machine; enable_cloud_association active
The fix
The report suggests filtering privileged SIDs during mapping and preserving existing account flags by using a bitwise OR instead of a direct assignment.
How it was found
- An attacker with Workspace User Management privileges sets the custom schema attribute for their user to map to the built-in Administrator account.
- The attacker starts a login on a GCPW-enrolled Windows machine using the 'Add user' tile.
- The attacker authenticates with their Google account.
- GCPW maps the account to the local Administrator SID and inadvertently enables the account by overwriting its flags.
- GCPW prompts for the local Windows password; the attacker uses the 'Forgot password' flow and submits the confirmation.
- GCPW force-resets the local Administrator password to the attacker's Google password, and the attacker logs in with SYSTEM privileges.
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.
This report describes a flaw in a tool that lets people sign in to Windows using their Google account. The tool did not check whether the Windows account being linked was a powerful one, like the built-in Administrator. Because of a coding mistake, it also turned that account back on and let the attacker reset its password, giving them full control of the computer.
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.