Skip to content
Access control Write-up Intermediate

Improper Access Control Worth $$$ Bounty

A user-update endpoint lacked proper authorisation checks, allowing a low-privileged user to change other users' name and email by supplying their numeric ID. The attacker could modify account details of any user in the organisation.

medium.com

Published on medium.com

Hello everyone, I’ll share how I found an improper access control vulnerability and earned a three-digit bounty. Let’s get started!

mohaned haron, 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 endpoint relied on the client-supplied user ID and did not verify that the authenticated user had permission to modify that specific user record.

Impact

A low-privileged user could change the name and email address of any user in the organisation, which could lead to account takeover or data tampering.

What the attacker needed

A low-privileged user account; knowledge of a valid numeric user ID

How it was found

  1. Review the Swagger UI to find the user update endpoint.
  2. As an admin, remove unnecessary parameters from the request body until only name, surname, username, full name, and email remain.
  3. Replace the admin cookie with a low-privileged user cookie and resend the request.
  4. Fuzz numeric user IDs to find a valid ID for the low-privileged account.

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 has different user roles, like admin and regular user. The regular user should not be able to change other people's details. Here, the server did not check who was making the request, so a regular user could change anyone's name and email if they knew the person's numeric ID.

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.

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.