Shimo VPN helper tool configureRoutingWithCommand privilege escalation vulnerability
The Shimo VPN helper tool exposes an XPC service that accepts a user-supplied string and writes it to a script file, then executes that script as root. A local attacker can therefore run arbitrary commands with root privileges.
Originally disclosed on Cisco Talos
An exploitable privilege escalation vulnerability exists in the Shimo VPN 4.1.5.1 helper service in the configureRoutingWithCommand function. A user with local access can use this vulnerability to raise their privileges to root.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
A local user could gain root privileges, leading to full control of the machine.
What the attacker needed
Local access to the machine
How it was found
- Connect to the helper tool's XPC service.
- Call the configureRoutingWithCommand function with a malicious string.
- The helper writes the string to a script file and runs it as root.
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.
A helper tool is a background program that runs with high privileges to do tasks the main app cannot. Here, the helper tool takes text from any local user and runs it as a root script, so a normal user can become the all-powerful root user. This only works if the attacker can already run code on the same Mac.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.