Skip to content
Access control Write-up Intermediate

EN | Administrator level Privilege Escalation story

A regular user could add extra fields to their own profile update request and change values that should only be editable by an administrator, such as bill rate and access rules. This let the author escalate from a basic account to administrator-level privileges, though the report was closed as a duplicate.

Samet Sahin Follow

Published on web.archive.org

In January of this year, I participated in a private program on HackerOne that was vulnerable to a Privilege Escalation. This is a private program, I can not disclose the name or company-related information per their request because of this I censored some parts of screenshots and requests.

Samet Sahin (@sametsahinnet), on web.archive.org

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 profile update endpoint accepted and saved fields the user was not permitted to modify, without checking authorisation for those fields.

Impact

A regular user could grant themselves administrator-level privileges, though the report was marked as a duplicate of an earlier one.

What the attacker needed

A regular user account; ability to send a modified profile update

How it was found

  1. Look at the /me page source and find the whoami snippet listing roles and access rules.
  2. Note that a normal user cannot create, read, update or destroy BillRate while an administrator can.
  3. Send a normal profile update request to the users API endpoint.
  4. Add the billability_target and billrate fields to that same request.
  5. Observe that the account now has administrator-level privileges.

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 edit your profile, the website sends your changes to a server. This server accepted extra fields the normal form never sends, and saved them without checking whether you are allowed to change them. That let a normal user set values reserved for administrators.

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.