Skip to content
IDOR Write-up Beginner

Who’s Applying for You? A Look at Broken Access Control

The job-application endpoint trusted a client-supplied email field to identify the applicant instead of the authenticated session, so an attacker could submit an application under any other candidate's email. This let an attacker create applications in other users' accounts without their consent.

medium.com

Published on medium.com

Hi! Imagine waking up to an email congratulating you on your application for a job you’ve never heard of.

Osama, on medium.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

The server used a client-supplied email field as the identity of the applicant instead of the authenticated user's identity from the session.

Impact

An attacker could create job applications in other candidates' accounts without their knowledge or consent.

What the attacker needed

A candidate account; ability to intercept and modify requests; knowledge of another candidate's email

The fix

The server should derive the applicant's identity from the authenticated session and reject or overwrite any client-supplied email that does not match it.

How it was found

  1. Intercept the HTTP request that submits a job application.
  2. Change the email field in the request body to another candidate's email address.
  3. Send the modified request; the server returns HTTP 200 and creates the application under the other candidate's 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.

When you log in to a website, the server should decide who you are from your session, not from what your browser sends in the request body. Here the server believed an email address typed into the request, so anyone could pretend to be another person by changing that field. This is called an insecure direct object reference (IDOR): the server lets you act on someone else's account because it does not check that the account is really yours.

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.

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.