Shimo VPN helper tool code-signing privilege escalation vulnerability
The Shimo VPN helper tool validates code signing with a basic check that only verifies a binary is signed, not who signed it. A local attacker can replace the OpenVPN executable with a self-signed binary, which the helper then runs as root, escalating privileges.
Originally disclosed on Cisco Talos
An exploitable privilege escalation vulnerability exists in the Shimo VPN helper service due to improper validation of code signing. 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
Root cause
The code-signing check uses kSecCSBasicValidateOnly, which only verifies that a binary is signed, without validating the signing authority.
Impact
A local user could escalate privileges to root, gaining full control of the system.
What the attacker needed
Local access to the machine; ability to replace files in the Shimo app directory
How it was found
- Create a malicious executable and sign it with a self-signed certificate.
- Replace the OpenVPN binary in the Shimo application directory with the malicious executable.
- Use the Shimo application to attempt an OpenVPN connection, causing the helper to run the replaced binary 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 runs with high privileges to do tasks like starting VPN connections. It checks that the program it runs is signed, but only that it has some signature, not that it is from a trusted source. So an attacker can sign their own malicious program and trick the helper into running it as root, taking full control of the machine.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.