How I Found a Critical Bug Using Claude Desktop (Free)
An API endpoint used predictable numeric user IDs and lacked authorization checks, allowing an attacker to read any user's personal and financial data. The same endpoint also accepted writes to sensitive fields, enabling fund redirection, email hijacking and balance manipulation.
medium.com
Published on medium.com
A private bug bounty program for a fitness company. Think celebrities, athletes, and executives as 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
Root cause
Likely missing authorization checks combined with predictable sequential IDs and mass assignment of sensitive fields.
What the attacker needed
A free account; access to the JavaScript bundle; an AI assistant to analyse the code
The fix
The API should enforce authorization so users can only access their own records, use non-sequential identifiers, and restrict writable fields to an allowlist with separate workflows for sensitive changes.
How it was found
- Analyse the JavaScript bundle to enumerate API endpoints and build a valid request.
- Send a request using your own numeric account ID and observe the full profile returned.
- Change the ID by one and receive another user's data without any authorization check.
- Increment the ID repeatedly to enumerate many users' profiles.
- Modify the bank account, email and balance fields and observe the server accepting the changes.
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 API is the part of a website that apps talk to behind the scenes. Here, the server handed back anyone's account details just because the request included that person's number, without checking that the requester owned the account. The same endpoint also let the requester change bank details, email addresses and balances.
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.