Skip to content
IDOR Write-up Intermediate

How a Unique Combination Opened the Door to an IDOR

Signed agreement PDFs were served from a separate host without any authentication, and their URLs used a predictable numeric pattern. By brute-forcing the dynamic part of that pattern across different months, an attacker could retrieve other customers' agreements containing PII such as SSNs, addresses, names and dates of birth.

medium.com

Published on medium.com

IDOR Vulnerability that exposed 17 Million user data (IDOR Diaries) Hi all, this write-up is about a vulnerability I discovered a few months back on a private bug bounty program.infosecwriteups.com

Supun Halangoda (Suppa), 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

Likely the PDF files were stored on a separate host that lacked any authentication or authorisation check, and the file names used a predictable numeric pattern that could be enumerated.

Impact

An attacker could access other customers' signed agreement PDFs containing PII such as SSNs, addresses, names and dates of birth, including production data of actual customers.

What the attacker needed

A free account; access to the 'View My Agreements' feature

The fix

A temporary fix added an authorization token to each request, and the functionality was later migrated to Amazon S3 with signed URLs providing secure, temporary access.

How it was found

  1. Log in to the SaaS application and open the 'View My Agreements' feature to obtain a sample agreement PDF URL.
  2. Request the PDF URL directly and observe that it returns the PDF without any authentication.
  3. Generate more sample PDFs and compare their URLs to identify a dynamic part and a fixed part in the numeric pattern.
  4. Brute-force the dynamic part while keeping the fixed part unchanged, but only retrieve your own agreements.
  5. Cross-reference the fixed part with the agreement signed date and realise it encodes the month and year.
  6. Brute-force the dynamic part while incrementing the month value to find other customers' PDF agreements.

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.

A PDF of a signed agreement was stored at a web address that anyone could open, with no login check. The address ended in a number that followed a simple pattern, so by guessing numbers an outsider could find other people's agreements. Those files contained personal details like social security numbers and home addresses.

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.