Skip to content
RCE Write-up Advanced

Cache Me If You Can: Local Privilege Escalation in Zscaler Client Connector (CVE-2023-41973)

A local privilege escalation in Zscaler Client Connector chained several bugs, including RPC caller validation bypass and Authenticode verification bypass.

Eugene Lim Follow

Published on spaceraccoon.dev

A couple months ago, my colleague Winston Ho and I chained a series of unfortunate bugs into a zero-interaction local privilege escalation in Zscaler Client Connector. This was an interesting journey into Windows RPC caller validation and bypassing several checks, including Authenticode verification.

Eugene Lim (@spaceraccoonsec), Winston Ho, on spaceraccoon.dev

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 the root cause is that ZSATrayManager trusted cached process IDs without proper validation, failed to check the password type in PERFORM_APP_REVERT, and allowed path traversal in the installer name, while ZSAService loaded DLLs from the current directory.

What the attacker needed

Local access to a Windows machine with Zscaler Client…; Ability to run a low-privileged process

How it was found

  1. Brute force cached PIDs to make RPC calls to ZSATrayManager.
  2. Bypass password protection for the PERFORM_APP_REVERT function.
  3. Send path traversal payload in previousInstallerName argument.
  4. ZSATrayManager executes DLL-hijacked ZSAService.exe that passes the Authenticode check.
  5. Hijack DLL leads to local privilege escalation.

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.

This report describes how a normal user could chain several bugs in a security program to escalate privileges. The weaknesses involved fooling the program, skipping a password check, and a file path trick. The result was local privilege escalation.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.