Skip to content
RCE Advisory Intermediate CVE-2018-4010

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.

Paul Rascagneres Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Paul Rascagneres, 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

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

  1. Create a configuration file containing quoted 'script-security' and 'up' options.
  2. The GUI passes the configuration file to the privileged service.
  3. 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.

More by Paul Rascagneres

View all

1 more disclosed report, 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.