Skip to content
IDOR Write-up Intermediate

300$ ETag Bounty

A product validation endpoint checked an ETag header against the wrong product's latest response, so a request aimed at another user's product could be accepted once the attacker adjusted the ETag to the value the server revealed in its error. This let the attacker read draft product metadata, including the owner identifier and product details.

medium.com

Published on medium.com

(FREE LINK)

Musab Sarı, 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 validation endpoint tied the ETag check to the wrong product record, and the error response disclosed the expected ETag value, allowing the check to be satisfied for a victim's product.

Impact

An attacker could read draft product metadata for other users, including the owner identifier and product details, though attempts to modify the victim's data did not succeed.

What the attacker needed

An authenticated account; knowledge of a victim product identifier

The fix

The bug was resolved according to the timeline.

How it was found

  1. Send a PUT request to the product validation endpoint to create a new product.
  2. Modify the product and note the server accepts the request without validation.
  3. Replace the product identifier with a victim's identifier and append the validate path.
  4. Observe the server's error response, which reveals the expected ETag.
  5. Change the ETag value to match what the error indicated and resend the request.

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.

Every web response can carry a small tag called an ETag, which the server uses to tell whether a client already has the latest version of something. Here the server compared the tag against the wrong product, and its error message told the attacker which tag it expected, so they could supply it and get past the check. The result was that one user could read another user's unpublished product information.

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.