How I Hacked Proton VPN and Got Paid
The password reset OTP endpoint lacked proper rate limiting, allowing an attacker to send many parallel requests and trigger numerous OTP emails. This could lead to resource exhaustion and unwanted financial expenses for the service.
josekuttykunnelthazhebinu Follow
Published on medium.com
Today I wanna say about one of my previous finding which earned me a bounty from proton VPN with the help of 2Pac. Also, stick around till the end for the moral of the story.
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 rate limiting mechanism was not atomic or did not account for concurrent requests, allowing a race condition to bypass the limit.
Impact
An attacker could cause resource exhaustion and unwanted financial expenses by triggering many OTP emails, potentially leading to denial of service or increased costs.
What the attacker needed
Access to the password reset endpoint; ability to send parallel requests
How it was found
- Identify the password reset OTP API request.
- Send 100 parallel requests using Burp Suite Repeater's group feature.
- Observe that all 100 OTP emails are sent, bypassing the rate limit.
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 rate limit is a cap on how many times you can do something in a short period, like requesting a password reset code. The website only blocked after 8 requests normally, but by sending many requests at the exact same time, the limit was bypassed. This meant the attacker could make the site send lots of emails, costing money and resources.
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.