Hacking on a plane: Leaking data of millions and taking over any account
An API endpoint allowed changing the user_name parameter to retrieve personal and payment information of any user, and a password reset endpoint allowed changing the user field to set a new password for any account. An attacker could access data of millions and take over accounts without user interaction.
This is a short write-up about how I could have accessed the personal and financial information for tens of millions of users as well as take over anyone’s account without user interaction.
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 access personal and financial information of tens of millions of users and take over any account without user interaction.
What the attacker needed
A free account; victim's username, email, or customer ID
The fix
The vulnerabilities were fixed by the third-party provider after disclosure.
How it was found
- Create a test account and browse the site while capturing requests.
- Notice a request to /edge/apidecorator/v3/customer that returns account information and includes a user_name parameter.
- Change the user_name parameter to another user's username (or email, or customer_id) and observe that it returns that user's data.
- For password reset, intercept the PUT request to /edge/apidecorator/v2/customer/ that contains a resetPassword object and a user field.
- Change the user field to a victim's username and send the request.
- Log in with the new password to confirm account takeover.
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.
The website had two flaws. First, a request that fetched your account details could be tricked into fetching someone else's details by changing a username in the request. Second, a password reset request could be altered to reset someone else's password. This meant an attacker could see private data and even log in as anyone.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.