Skip to content
Race condition Write-up Intermediate

Local Privilege Escalation Discovered in GlobalProtect App

A race condition in the GlobalProtect app's Windows installer allowed a low-privileged user to overwrite a batch file executed with SYSTEM privileges. An attacker could execute arbitrary commands as SYSTEM during an upgrade.

criticalstart.com

Published on criticalstart.com

A race condition vulnerability in the Palo Alto Networks GlobalProtect app on Windows allowed a local limited Windows user to execute programs with SYSTEM privileges. This issue can be exploited only while performing a GlobalProtect app upgrade.

The author, on criticalstart.com

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

The installer created and executed a batch file in a world-writable directory without securing its ownership, enabling a time-of-check to time-of-use race.

Impact

A local low-privileged user could execute arbitrary programs with SYSTEM privileges, but only during a GlobalProtect app upgrade.

What the attacker needed

Low-privileged local user; GlobalProtect app upgrade in progress; target file does not already exist

The fix

The vulnerability was fixed in GlobalProtect App 5.1.4 and 5.0.10.

How it was found

  1. Create a batch file in the Windows temp directory with a command to run and the normal installer command.
  2. Run a loop that continuously overwrites that batch file.
  3. Connect to a GlobalProtect server with a higher version to trigger an update prompt.
  4. Click Yes to start the update, or use Check for Updates from the About window.
  5. After the update completes, the command runs 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 write-up has not been written yet. The Original tab links to the source.

The installer runs with high system rights and uses a temporary file that any user can write to. A normal user can repeatedly replace that file with their own commands just before it runs, so their commands run with the installer's high rights.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.