Skip to content
IDOR Write-up Beginner

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.

Abhi Sharma Follow

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.

Abhi Sharma, on infosecwriteups.com

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

  1. Log in to the platform with a standard user account.
  2. Send a POST request to the expense submission endpoint, including a disabled project's ID in the projectId parameter.
  3. Submit the request and observe that the project status restriction is bypassed.
  4. 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.

More by Abhi Sharma

View all

22 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.