Skip to content
IDOR Write-up Intermediate

How a “Draft Auto-Save” Feature Exposed Confidential Enterpri

A draft-recovery endpoint accepted an array of document IDs, but the API gateway only checked the first element for authorisation while the internal service passed the whole array to a Redis multi-key lookup. An attacker could therefore read uncommitted draft text from other tenants' workspaces.

T4nv1 Follow

Published on medium.com

When auditing modern web apps, the highest-impact flaws rarely sit inside the obvious settings pages. They hide inside features designed to make life convenient for the user — like real-time collaboration, auto-suggestions, or background auto-saves.

T4nv1, 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 gateway authorised only the first element of an array parameter, while the downstream service passed the full array to a multi-key cache lookup without per-key ownership checks.

Impact

An attacker could pull uncommitted, real-time draft text from any workspace on the platform, up to 50 target document IDs per request.

What the attacker needed

An account on the platform; knowledge of a target document ID; ability to send crafted JSON to the draft-recovery endpoint

The fix

The issue was fixed by enforcing a string-only type check on the document ID at the gateway and making the internal service verify workspace ownership for each key in a multi-key lookup.

How it was found

  1. Create a document on a test account and observe the auto-save WebSocket frame containing the document ID.
  2. Try swapping in another workspace's document ID on the WebSocket; the gateway rejects it.
  3. Trigger the REST draft-recovery fallback endpoint with your own document ID.
  4. Send an array containing your document ID first and a victim document ID second.
  5. Receive both drafts in the response, including the victim's confidential content.

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 app lets you save drafts of documents. A backup endpoint that fetches those drafts was supposed to check you own the document first. It only checked the first ID in a list, then fetched every ID in the list, so you could sneak in someone else's document ID and read their private draft.

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 T4nv1

View all

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