Skip to content
IDOR Write-up Beginner

How I was able to delete Google Gallery Data [IDOR]

A Gallery API endpoint accepted a collection identifier without checking that it belonged to the logged-in user. By swapping their own collection id for another user's, an attacker could delete that user's collection.

Yogesh Tantak Follow

Published on medium.com

Yogesh Tantak

Yogesh Tantak, 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 delete endpoint used the client-supplied collection id without verifying it belonged to the authenticated user.

Impact

A malicious user could delete any other user's collections in Gallery, though the report does not state how the attacker would learn a victim's collection id.

What the attacker needed

A Gallery account; victim's collection id known

How it was found

  1. Find the Gallery API endpoint that handles deletion, which takes a project id and a collection id.
  2. Capture a delete request made for your own collection.
  3. Replace your collection id with another user's collection id.
  4. Send the modified request and observe the other user's collection being deleted.

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.

When a website lets you act on one of your own items, it should also check that the item really belongs to you. Here the server trusted whatever identifier the app sent, so changing it to someone else's number let the attacker delete their data. This kind of flaw is called an insecure direct object reference, or IDOR.

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 from Google

View all

The newest disclosed reports for this program.

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.