Skip to content
Access control Write-up Intermediate

Bug Bounty Challenge: Day 16–11/04/2024

The author found that an endpoint accepted a PUT request despite the OPTIONS response listing only GET and HEAD, and that changing the id parameter to another id they owned was accepted. They then used a parameter discovery tool to find a hidden 'Name' parameter, but changing it returned access denied, so no IDOR was achieved.

wallotry Follow

Published on wallotry.medium.com

I’ve got some good news — a bounty was paid last night and I managed to escalate a vulnerability from a year ago that was informative to a medium.

Wallotry, on wallotry.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

The author could send PUT requests that the server appeared not to allow and could reference another id they owned, but the attempt to modify a hidden parameter was blocked, so no unauthorised access was demonstrated.

What the attacker needed

An account on the target; knowledge of the endpoint; a second id owned by the tester

The fix

The endpoint should reject HTTP methods that are not explicitly supported and should enforce authorisation checks on every parameter, including hidden ones.

How it was found

  1. Send an OPTIONS request to the endpoint and observe that only GET and HEAD are advertised.
  2. Send a PUT request to the same endpoint and see that it is accepted.
  3. Change the id parameter in the PUT request to another id owned by the tester and observe that it works.
  4. Use a parameter discovery tool on the endpoint to find hidden parameters such as 'Name'.
  5. Change the value of the 'Name' parameter and observe an access denied response.

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.

Web servers often advertise which request methods they allow, such as GET for reading and PUT for updating. Here the server said only GET and HEAD were allowed, but it still accepted a PUT request. The author could change an identifier in that request to another account they controlled, which is a sign of a possible access control flaw, but the final attempt to change a hidden field was blocked.

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 wallotry

View all

7 more disclosed reports, 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.