How I Exploited an OTP Bypass Vulnerability on a Cryptocurrency Platform
A staging environment exposed a list of whitelisted email addresses in a JavaScript-accessible API endpoint. By intercepting the OTP request and changing the login-hint parameter to their own email, an attacker could receive the OTP and log in as a whitelisted user, gaining dashboard access.
Published on medium.com
In this write-up, I will walk you through how I discovered and exploited an OTP (One-Time Password) bypass vulnerability on a cryptocurrency platform. The issue allowed me to gain unauthorized access to the dashboard, which could have had severe implications for both the platform and its users.
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
Impact
An attacker could gain unauthorised access to the dashboard, potentially leading to data exposure and privilege escalation if the targeted user has admin rights.
What the attacker needed
Access to the staging environment; knowledge of a whitelisted email; ability to intercept HTTP requests
The fix
The vulnerability was fixed according to the timeline.
How it was found
- Navigate to the staging website.
- Review publicly accessible JavaScript files.
- Locate the API endpoint that reveals whitelisted email addresses.
- Identify a whitelisted email address from that endpoint.
- Enter the whitelisted email into the login form to request an OTP.
- Intercept the OTP request and change the login-hint parameter to the attacker's email, then forward it.
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 one-time password (OTP) is a code sent to your email or phone to prove it is you. Here, the site trusted a hidden field that told it where to send the code, so an attacker could change that field to their own email and receive the code meant for someone else. This let them log in as that person without knowing their password.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.