IDOR allows unauthorized payment hijacking
An IDOR vulnerability in a payment details update endpoint allowed an attacker to change another user's payment information by manipulating an identifier. The identifier was a hash, but the attacker later found a way to obtain these hashes from profile URLs and public sources.
medium.com
Published on medium.com
FREE READ
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 server did not verify that the authenticated user owned the payment record identified by the `id` parameter before updating it.
Impact
An attacker could change another user's payment details, potentially leading to payment hijacking or financial loss.
What the attacker needed
Authenticated user account; victim's hashed identifier
How it was found
- Log in and go to the profile page with the payment form.
- Capture the request that sends payment details to the server.
- Change the `id` parameter to another user's hash.
- Send the request and observe that the other user's payment details are changed.
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.
An IDOR (Insecure Direct Object Reference) is a flaw where a website uses an identifier (like a user ID) to access data but doesn't check if you're allowed to access that data. Here, the payment form used a hidden identifier to specify which user's payment details to update, and the attacker could change it to another user's identifier to overwrite their payment info.
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.