Netskope Client Service Local Privilege Escalation
The Netskope client service ran with SYSTEM privileges and could be driven by a local user through a local socket, while a user-writable JSON configuration file let the user redirect the service to an attacker-controlled server. By chaining a malicious ZIP extraction (zip slip) with a DLL side-loading flaw in netsh.exe, a local user could escalate from USER to SYSTEM.
Published on hdwsec.fr
One of our clients recently called on us to check whether it was possible to compromise the company laptops they send to their employees. It’s a matter of checking with and without identifier if vulnerabilities exist.
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 service trusted a user-writable configuration file for remote URLs and extracted downloaded archives without validating entry paths, then loaded a missing DLL from a system path.
Impact
A local user could elevate their privileges from USER to SYSTEM on the audited laptop, and the exploit only takes a few seconds to trigger.
What the attacker needed
Local user session on the laptop; Netskope Client Service installed; attacker-controlled server reachable
The fix
The vendor integrated a fix, and the service should not trust user-writable configuration for download URLs and should validate archive entry paths before extraction.
How it was found
- Modify the nsbranding.json file to point the AddonManagerHost field at an attacker-controlled server
- Force the agent to reload the JSON file without restarting the service
- Make the agent download and extract a crafted ZIP file containing a relative path that drops a DLL into the system directory
- Send command 115 so the service launches netsh.exe, which loads the dropped DLL and spawns a shell
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 laptop has a security program that runs with the highest Windows permissions (SYSTEM), while the normal user has much lower permissions. The researcher found that a normal user could change a settings file the program trusts, make it download a file from a server the user controls, and trick it into loading the user's own code with those high permissions. That means a logged-in user could take full control of the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.