Skip to content
IDOR Write-up Beginner

IDOR in support.mozilla.org through Code Review

The reply endpoint on support.mozilla.org accepted a delete_images parameter that deleted any image by ID without checking ownership. An attacker could delete other users' images.

Brandon Roldan Follow

Published on noob3xploiter.medium.com

Bounty$1,500 View original

I was trying to improve my static analysis code, specifically django apps, so i decided to hack a random project in github. And i found kitsune. https://github.com/mozilla/kitsune

Brandon Roldan, on noob3xploiter.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 reply view lacked an ownership check before deleting an image specified by the delete_image parameter.

Impact

An attacker could delete images belonging to other users.

What the attacker needed

Access to the reply endpoint; knowledge of an image ID

The fix

The endpoint should have been fixed to check that the user deleting the image is the owner, as the real delete function does.

How it was found

  1. Find the reply endpoint that accepts a delete_images parameter.
  2. Send a request with delete_images and a delete_image ID.
  3. Observe that the image is deleted without ownership verification.

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.

An IDOR (Insecure Direct Object Reference) is when a website lets you access or change something just by guessing its ID, without checking if you're allowed. Here, a hidden feature in the reply form let anyone delete any image by supplying its ID, even if they didn't own 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 Brandon Roldan

View all

1 more disclosed report, best first.

More from Mozilla

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.