How I found 4 IDORs in the same target
The application's API endpoints for creating bank accounts, listing and deleting invitations, and deleting bank accounts did not properly check the caller's role or company membership. An attacker with a low-privileged account could create bank accounts on any company, read invitation identifiers, delete invitations, and delete bank accounts despite lacking the required role.
medium.com
Published on medium.com
Hello guys its me again! Today I will explain to you 4 IDORs I found in the same target and I’ll also tell you how I discovered them.
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 API endpoints authorised requests based on the supplied company identifier and a valid session cookie, but did not verify the caller's role or membership in that company before performing the action.
Impact
A low-privileged or unrelated user could create bank accounts on any company, list and delete invitations, and delete bank accounts, potentially disrupting money movement and membership management.
What the attacker needed
A valid account on the target; knowledge of a company identifier; knowledge of an invitation or bank account identifier
How it was found
- Map the CRUD operations and which roles (Admin, Support, Developer, View-Only) are allowed to perform them.
- Send a request to create a bank account with an admin cookie and a company identifier, then repeat it with a view-only user's cookie.
- Request the invitations list with a normal user's cookie and company identifier to obtain invitation identifiers.
- Send a delete request for an invitation using a view-only user's cookie.
- Try deleting a bank account with a view-only cookie and observe the forbidden response.
- Repeat the bank account deletion with Support and Developer cookies and observe success.
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 when a website lets you act on a record just by knowing its identifier, without checking that you are allowed to. Here, the server trusted the company identifier and the user's cookie but did not verify the user's role or membership. So a low-privileged user could perform actions reserved for admins on companies they did not belong to.
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.