Alternative link
The profile update endpoint accepted any user ID in the URL while only checking that a valid authorisation token existed, so a logged-in user could modify another user's first and last name and read back their email, company details, referral code and subscription plan. Because user IDs were 24-character hex strings and the endpoint had no brute-force protection, an attacker could in principle enumerate IDs and tamper with many accounts.
0x00sec.org
Published on 0x00sec.org
vict0ni February 7, 2020, 5:37pm 1
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 validated that an Authorization header was present but never checked that the token's user matched the user ID in the request path.
Impact
An authenticated attacker could change other users' names and read their email, company, VAT number, phone, referral code and subscription details; with enough computing power they could potentially do this across all users, though the text notes user IDs are not trivially known and would need to be captured or brute-forced.
What the attacker needed
A free account; a second account to test against; knowledge of the victim's user ID
How it was found
- Register two accounts and capture the profile update request for the first account.
- Note the user ID in the request path and the authorisation token used.
- Send the same update request but replace the path user ID with the second account's ID, keeping the first account's token.
- Observe a successful response containing the second account's and company's details.
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.
Every account has a hidden identifier, and the app should check that the person making a change actually owns the account named in the request. Here it only checked that the request carried some valid login token, not whose account was being edited. So anyone with an ordinary account could edit someone else's profile and see their private details by swapping the identifier in the request.
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.