Skip to content
IDOR Write-up Beginner

Let’s Talk About Encryption And IDORs(Yes, IDOR,s Again)— @bxmbn

An API endpoint encrypted any given policy ID, and the resulting encrypted string served as an access key to retrieve the policy PDF. Because policy IDs were sequential, an attacker could encrypt any ID, obtain the key, and access any user's policy, then use details from the PDF to log into the management portal and take over the policy.

Kevin Follow

Published on bxmbn.medium.com

Imagine a system designed to protect sensitive user data — like insurance policies — only to have a single misstep turn it into an open book. That’s exactly what I stumbled upon while poking around a certain event registration protection service.

bombon, on bxmbn.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 system used a deterministic encryption of the policy ID as the sole access token for the PDF, without any additional authentication or authorisation check.

Impact

An attacker could view, modify, or cancel any user's policy without their knowledge, and potentially take over the policy.

What the attacker needed

Knowledge of a valid policy ID pattern; no authentication required

The fix

The system should require proper authentication and authorisation before allowing access to policy PDFs, rather than relying on a deterministic encryption of the policy ID as an access token.

How it was found

  1. Send a GET request to the encryption endpoint with a target policy ID.
  2. Receive the encrypted string in the response.
  3. Use the encrypted string in a request to the certificates/policies endpoint to retrieve the PDF.
  4. Extract the purchase date from the PDF.
  5. Log into the management portal using the policy number and purchase date.

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.

The website had a tool that turned a policy number into a secret code. That secret code was then used as a password to open the policy PDF. Since policy numbers were easy to guess (they just went up by one), anyone could make a secret code for any policy and read 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 Kevin

View all

1 more disclosed report, 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.