1000$ IDOR : Unauthorized Project Inclusion in Expense
A user could include a disabled project's ID in an expense submission request, bypassing the admin's restriction that should prevent expense reports for that project. This allowed the creation of expense reports tied to projects that should be inaccessible.
Published on infosecwriteups.com
Hi Everyone! Today, I’m excited to talk about a critical vulnerability I discovered in a platform (let’s call it ExamFit), which allowed users to bypass project status restrictions and submit unauthorized expense reports.
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 did not re-check the project's status or the user's authorisation for that project when processing the expense submission, only relying on the client-side restriction.
Impact
Attackers could submit fraudulent expense reports tied to disabled projects, leading to financial inaccuracies and compliance breaches.
What the attacker needed
A standard user account; knowledge of a disabled project ID
The fix
The server should verify the project's status and the user's authorisation for that project on every expense submission, not just rely on client-side restrictions.
How it was found
- Log in to the platform with a standard user account.
- Send a POST request to the expense submission endpoint, including a disabled project's ID in the projectId parameter.
- Submit the request and observe that the project status restriction is bypassed.
- Check from an admin account whether the disabled project appears in the expense report.
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.
When an administrator disables a project, the system should stop anyone from filing expenses against it. Here, the server only checked the project ID when the page was loaded, not when the expense was actually submitted, so a user could still send a request with the disabled project's ID and it was accepted. This is an insecure direct object reference (IDOR): the server trusts an identifier supplied by the user without checking whether that user is allowed to use it.
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.