Exploiting GlobalProtect for Privilege Escalation, Part One: Windows
The Windows GlobalProtect VPN client's privileged service accepted a software-upgrade request containing a path to an MSI file in the user's temp directory, then copied and executed it with SYSTEM rights. A local unprivileged user could exploit a race condition in that update process to escalate to SYSTEM.
crowdstrike.com
Published on crowdstrike.com
{{media:0}} Blog
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a time-of-check-to-time-of-use flaw: the privileged service verifies and then later uses a file in a user-writable temp location, so the file can be changed between the check and the use.
Impact
An unprivileged local user could reliably escalate to SYSTEM on machines running the affected GlobalProtect client.
What the attacker needed
Local access to the machine; GlobalProtect client installed; unprivileged user account
The fix
It was fixed in GlobalProtect versions 5.0.4 and 4.1.13, released by Palo Alto Networks.
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 write-up has not been written yet. The Original tab links to the source.
A VPN client has two parts: a background service that runs with the highest Windows privileges, and a normal user-facing program. The user-facing part asks the powerful service to install updates, and the service trusts a file path the user controls. A race condition means the attacker swaps or changes a file at just the right moment so the powerful service runs something it should not.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.