Skip to content
IDOR Write-up Beginner

Authentication Token Leads To IDOR

The website's authentication token was not enforced on HTTP methods other than PATCH, allowing an attacker to register for an event using another user's account details by removing the token and changing identifiers. This is an IDOR vulnerability that lets an attacker act as another user.

mohit Follow

Published on tox7cv3nom.github.io

Here is the article how i was able to bypass authentication token and able to exploit idor and add any user to add events of website ..before coming on main topic that how i find the vulnerablity let me clear your core concepts about authorization tokens

mohit (@mohit29295572), on tox7cv3nom.github.io

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 authentication token was only validated on PATCH requests, leaving other HTTP methods unprotected.

Impact

An attacker could register for events using another user's identity and resume, potentially impersonating them.

What the attacker needed

A free account; ability to intercept requests; knowledge of another user's details

How it was found

  1. Observe that requests without an auth token return 401 only for PATCH method, while other methods return 200.
  2. Find a page with an event registration form that accepts a resume and name.
  3. Create a second account and register for the event, then log out.
  4. Intercept the registration request, change the email, name, and ID to the first account's details, and remove the auth token.
  5. Submit the modified request and see the registration succeed under the first account.

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.

Websites use a token to check who you are when you make a request. Here, the site only checked the token for one type of request (PATCH) but not for others, so someone could pretend to be another user by changing the request and removing the token. This let them sign up for an event using someone else's name and resume.

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 mohit

View all

2 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.