Skip to content
IDOR Write-up Intermediate

My Therapist Said Tiny Problems Don’t Matter. These Vulnerabili

The application stored AI-generated document summaries in predictable paths based on user ID and filename, and lacked access control on the summarization endpoint, allowing an attacker to read other users' summaries. By exhausting a victim's AI tokens, the error message leaked filenames, enabling the attacker to download the original documents.

Remmy Follow

Published on medium.com

The program packs a punch with features like AI-powered resume analysis, fine-grained RBAC for wrangling admins and users, and collaborative documentation tools that actually make teamwork less painful. Now here’s where things get fun: I stumbled upon a bunch of tiny, seemingly harmless IDORs — basically the digital…

Remmy, 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 application used predictable, user-ID-based paths for storing summaries and failed to enforce proper authorisation checks on the summarization and settings endpoints, allowing access to other users' data.

Impact

An attacker could read other users' document summaries and, by exhausting their AI tokens, obtain filenames to download the original documents, but only for users who skipped the tutorial and thus had a known initial filename.

What the attacker needed

Attacker has an account; victim skipped tutorial; victim used AI summarize

The fix

The application should enforce proper authorisation checks on all user-specific endpoints and avoid using predictable, user-ID-based paths for storing files.

How it was found

  1. Create a second account to act as the attacker and observe the storage pattern for summaries.
  2. Send a request to the summarization endpoint with a different userId to enable auto-summarize for the victim.
  3. Exhaust the victim's AI tokens by sending many summarize requests, causing an error that lists their filenames.
  4. Use the leaked filenames to construct the predictable summary URL and download the victim's documents.

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.

This report describes a chain of small security mistakes. First, the app saved document summaries in a folder named after the user's ID, so anyone could guess the location. Second, the app didn't check if you were allowed to summarise someone else's document. By using up a victim's AI credits, the app revealed the names of their files, which could then be downloaded.

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.