How i was able to bypass a Pin code Protection
The physical card activation endpoint required a PIN code, but a separate virtual card activation endpoint only required the card UUID. An attacker could use the virtual card activation request with a physical card's UUID to activate the physical card without knowing its PIN.
Published on xko2x.medium.com
Hello guys, I Hope all are doing good. my name is kerolos sameh(AKA xko2x), I’m 17 years old bug hunter in HackerOne.
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 virtual card activation endpoint did not verify that the card being activated was actually a virtual card, allowing it to be used for physical cards as well.
What the attacker needed
Access to a physical card's UUID; ability to send requests to the activation endpoint
How it was found
- Find the virtual card activation endpoint in the JavaScript files.
- Observe that the virtual card activation request only requires the card UUID.
- Replace the virtual card UUID with a physical card UUID in the request.
- Send the modified request to activate the physical card without a PIN.
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 PIN code is a secret number used to protect a card. The researcher found that one part of the website asked for this PIN, but another part did not. By sending a request to the part that did not ask for a PIN, they could activate a physical card without knowing its secret number.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.