My 1000 Bounty Bug How I Stopped Companies From Losing Money With An Idor Flaw
An expense validation endpoint accepted an expense identifier supplied by the client without checking that the caller belonged to the company that owned that expense. An attacker with an account at a different company could therefore approve or reject another company's expense requests.
Published on infosecwriteups.com
Discover the intriguing tale of how I stumbled upon an IDOR (Insecure Direct Object Reference) vulnerability in Examfit’s (Virtual Name of private program)Expense Validation system, and how this flaw had the potential to lead to unauthorized expense approvals, potentially costing companies a fortune.
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 expense validation endpoint authorised the action only by the expense identifier in the request, without verifying that the caller's company owned that expense.
Impact
An attacker could approve or reject another company's expense requests, and by submitting fake expenses and approving them could cause financial loss to companies.
What the attacker needed
Accounts at two different companies; ability to intercept requests
The fix
The report says the issue was addressed after being reported, but does not describe the change; properly, the endpoint should check that the caller belongs to the company that owns the expense before acting on it.
How it was found
- Create an expense request from an employee account at the victim company.
- Note the victim company's identifier while the request is being processed.
- Log in to a second account belonging to a different company and capture the expense validation request.
- Replace the expense identifier in the captured request with the victim's expense identifier.
- Send the modified request.
- Open the expense requests and confirm the targeted expense has been approved.
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.
Companies use this service to track expense claims, and someone has to approve or reject each claim. The approval request sent to the server included an identifier for the expense, and the server trusted it without checking that the person sending it worked for the company that owns that expense. By changing the identifier, a user from a different company could approve someone else's claim.
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.