Skip to content
RCE Advisory Intermediate CVE-2018-4005

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.

Tyler Bohan Follow

Originally disclosed on Cisco Talos

Critical 9.3 View original

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.

Tyler Bohan, on Cisco Talos

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

  1. Connect to the helper tool's XPC service.
  2. Call the configureRoutingWithCommand function with a malicious string.
  3. 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.

More by Tyler Bohan

View all

84 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.