Skip to content
Race condition Disclosed report Intermediate

MozillaVPN: Elevation of Privilege via a Race Condition Vulnerability

A race condition during installation or update of Mozilla VPN on macOS allowed a local attacker to replace the VPN binary with a malicious one, which then executed with root privileges. The attacker could thus escalate from local user to root.

northsea Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 27 days
  • Paid in 12 days
  • Disclosed after 19 months

Summary by the program

A race condition vulnerability was discovered in Mozilla VPN which leads to local privilege escalation to root on macOS. The race condition existed when the application is being installed or updated, a local attacker can replace the VPN binary with a malicious one which is executed as root. The exploit requires access to the local device, such as a previous malware infection, therefore the issue was assigned with a medium severity.

The fix was released in version 2.20.

The original report as published on HackerOne, by northsea. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Likely a time-of-check to time-of-use flaw where the installer or updater did not securely handle the binary file, allowing it to be replaced before execution.

Impact

A local attacker could escalate privileges to root on macOS, but the exploit requires prior access to the device, so the severity was rated medium.

What the attacker needed

Local access to the device; installation or update in progress

The fix

The issue was fixed in version 2.20.

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 race condition is when two actions happen at nearly the same time and the program does not handle the order correctly. Here, while the VPN software was being installed or updated, an attacker with access to the same computer could quickly swap the real VPN program file for a malicious one. Because the installer ran that file with the highest level of permission (root), the attacker's code also ran with those permissions, giving them full control of the machine.

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.

More by northsea

View all

2 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.