Skip to content
Access control Write-up Beginner

How I Got My First Bounty

The publish endpoint accepted a client-supplied status and post identifier without checking ownership, so a user could approve their own submission and later unpublish any other user's post. The author escalated a low-severity approval bypass into unauthorised removal of other users' content.

0xsponge Follow

Published on 0xsponge.medium.com

During extensive subdomain enumeration, I identified a subdomain inspire.example.comdedicated to collecting website design inspirations. Its core functionality allows users to submit a form with their design idea and wait for an admin review and approval.

Adhamkhairy, on 0xsponge.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 authenticated user could approve their own submissions and unpublish other users' posts, though the initial approval bypass was considered low because admins removed posts roughly every 20 minutes.

What the attacker needed

A user account; ability to submit a post; victim's post ID

How it was found

  1. Submit a design inspiration post through the form.
  2. Observe the publish request containing the post ID and a status value.
  3. Change the status from Denied to Approved and resend it.
  4. Send the same request again to see the status change to Unpublished.
  5. Open the published post page and find the post ID in the page source.
  6. Replace the own post ID with a victim's ID and resend the request.

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 let users submit design ideas that an admin had to approve. The button that changes a post's status sent the new status and the post's ID to the server, and the server believed whatever it was told. By changing the ID, the author could change the status of someone else's post.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by 0xsponge

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.