Bug Bounty Findings: 10 Major Vulnerabilities Exposed in Cloverleaf’s Application — IDOR — Part 2
The billing page used a numeric organizationId parameter without checking whether the logged-in user belonged to that organisation, so changing the number showed other organisations' billing details. A separate API endpoint returned an organisation's ID from its name, making it easy to find valid IDs to try.
Welcome to the second part of my series on security issues found in web application (app.target.me). In this article, I’ll talk about Insecure Direct Object References (IDOR) -a serious problem that allows attackers to access or change data they shouldn’t be able to.
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 attacker could view other organisations' billing details, including user counts and payment amounts, and could potentially disrupt billing or impersonate another organisation during checkout.
What the attacker needed
An authenticated account; knowledge of a target organisation name
The fix
The backend should check that the authenticated user is allowed to access the organisation tied to the supplied ID, and predictable numeric IDs should be replaced with non-sequential unique identifiers.
How it was found
- Open the billing page and note the numeric organizationId parameter in the address.
- Change organizationId to other numbers and observe that billing details of unrelated organisations are returned.
- Query the organisation validation API with a subdomain name to obtain the matching organisation ID.
- Use the returned ID in the billing page to view that organisation's billing information.
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 happens when a website lets you change a number or name in the address to reach someone else's data, because it never checks that the data is yours. Here, the billing page took an organisation number from the address bar and showed that organisation's billing details without asking whether you were a member. A second endpoint also handed out those numbers when given an organisation name, so guessing was not even needed.
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.