Skip to content
IDOR Write-up Beginner

Undeleted Secrets: Uncovering an IDOR Vulnerability in “Recentl

The 'Recently Deleted' section of a web application allowed any user to access deleted posts of other users by changing the post ID in the API request. An attacker could read sensitive content that users believed was deleted.

Wahid Najim Follow

Published on medium.com

During a security assessment of a web application, I identified a critical Insecure Direct Object Reference (IDOR) vulnerability within the “Recently Deleted” section. This flaw allowed unauthorized access to deleted items, including sensitive content belonging to other users, via direct URL manipulation.

Wahid Najim, 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 backend did not check whether the requesting user owned the post before returning it, even though the post was marked as deleted.

Impact

An attacker could read other users' deleted posts, which may contain sensitive information such as personal data or credentials.

What the attacker needed

A user account; ability to create and delete posts; knowledge of other users' post IDs

The fix

The application should enforce proper access controls on deleted items and consider hard deletion instead of soft deletion.

How it was found

  1. Create a post in the application.
  2. Delete the post and observe it moves to 'Recently Deleted'.
  3. Capture the deletion request with a proxy to see the API call.
  4. Directly request the deleted post's endpoint and see it loads.
  5. Change the post ID to another user's post ID and retrieve their deleted 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.

When you delete something on a website, it might not be truly gone—just hidden. This report shows that by changing a number in the web address, someone could see other people's deleted posts. That's a problem because deleted items can contain private 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.