Why you shouldn't use a commercial VPN: Amateur hour with Windscribe
The Windscribe VPN privileged helper on macOS authenticates callers by checking the sender's process ID and executable path, which is racy, and it invokes openvpn through a shell while only filtering some metacharacters. An attacker could exploit this to execute commands as root.
Published on gergelykalman.com
This is a writeup about a user to root privilege escalation due to a race condition in Windscribe VPN's software.
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 privileged helper relies on a racy PID/path check for authentication and constructs shell commands from untrusted input while filtering only some metacharacters, allowing command injection.
Impact
An attacker could escalate from a normal user to root on macOS.
What the attacker needed
Windscribe VPN installed; local access to the machine
How it was found
- The helper checks the sender's PID and executable path, which fails initially.
- Retry rapidly; eventually the check passes due to a race condition.
- The helper resolves and executes the command, running the injected payload 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 write-up has not been written yet. The Original tab links to the source.
A VPN program often runs a small background service with high privileges (root) to set up network connections. This service trusted any program that looked like the official Windscribe app, but it checked the program's identity in a way that could be fooled by timing. Also, it built shell commands from user input without blocking all dangerous characters, so an attacker could sneak in extra commands that run as root.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.