ProtonVPN VPN client connect privilege escalation vulnerability
The ProtonVPN client's service, running with system privileges, executed OpenVPN with a user-supplied configuration file. A crafted configuration file could bypass a validation check and cause arbitrary commands to run with system privileges.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the connect functionality of ProtonVPN VPN client 1.5.1. A specially crafted configuration file can cause a privilege escalation, resulting in the ability to execute arbitrary commands with the system’s privileges.
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
An attacker could execute arbitrary commands with system privileges, but only if they can supply a malicious configuration file to the service.
What the attacker needed
Ability to supply a configuration file; local access to the client
The fix
The validation was patched to reject quoted option names, but the text does not state that this specific bypass was fixed.
How it was found
- Create a configuration file containing quoted 'script-security' and 'up' options.
- The GUI passes the configuration file to the privileged service.
- The service runs OpenVPN with the file, which executes the specified program with system privileges.
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.
The VPN program has two parts: a normal window you interact with and a background service with high permissions. The window creates a settings file and asks the service to run another program using that file. Because the service did not properly check the file, a malicious file could make it run any program with high permissions.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.