I Funded A Strangers Bank Card With My Own Money And That S Exactly The Problem
The VulnBank API allowed an authenticated user to fund another user's virtual card by changing the card_id parameter, because it only checked authentication and not ownership. An attacker could use their own session to modify another user's card balance.
Published on infosecwriteups.com
There’s a moment in every appsec learner’s journey where a vulnerability stops being a bullet point on the OWASP API Top 10 and starts being something you actually did. For me, that moment was watching one user’s card get funded by another user’s session — no exploit chain, no payload, just a number in a URL that…
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 authenticated attacker could fund or modify another user's virtual card without authorization, potentially leading to financial manipulation or unauthorized changes to other users' accounts.
What the attacker needed
A free account; knowledge of another user's card ID
The fix
The API should enforce an ownership check on every object-level query, such as adding a condition that the card's user_id matches the authenticated user's ID, and ideally centralize this in an authorization layer.
How it was found
- Create two separate user accounts, each with a virtual card.
- Capture the card funding request for each user in a proxy tool.
- Remove the session cookie and Authorization header from a funding request and send it to confirm authentication is enforced.
- Take one user's valid token and use it to fund the other user's card by changing the card_id parameter.
- Observe that the request succeeds with a 200 OK response.
- Reverse the roles and repeat to confirm the vulnerability works both ways.
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.
This is a broken access control bug where the server checks that you are logged in but not whether you are allowed to touch a specific item. In this case, any logged-in user could change another user's card balance by simply changing a number in the request. It's like having a key to your own locker but the lock also opens everyone else's locker.
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.