Skip to content
IDOR Write-up Beginner

I Found a Bug That Could Delete Anyone’s Profile on a U.S. Navy

The profile edit endpoint accepted a user-supplied identifier in both the URL and request body without verifying ownership, so an attacker could overwrite or destroy any other user's profile by changing the number. Because IDs were sequential, the attacker could do this to every user.

Mohamed Adel Follow

Published on abdelaalx2000.medium.com

I was just poking around a U.S. Navy portal one afternoon when I stumbled across something that made me stop and double-check what I was seeing.

Mohamed Adel, on abdelaalx2000.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

Impact

An attacker could overwrite a victim's email and personal information, destroy their profile data entirely, and do this to every user because IDs were sequential.

What the attacker needed

A free account; victim has a profile; sequential user IDs

How it was found

  1. Visit the profile edit URL containing your user ID.
  2. Intercept the edit request in Burp Suite and note the SmeId field in the body.
  3. Create a second test account with a different ID.
  4. Change both the URL ID and the body SmeId to the second account's ID and forward the request.
  5. Observe that the server accepts the request without an authorization error.

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.

A website often uses a number to identify your account, like a label on a locker. If the site does not check that the locker belongs to you before letting you change what is inside, anyone can swap the number and mess with someone else's locker. This 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.

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.