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.
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.
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
- Look at the /me page source and find the whoami snippet listing roles and access rules.
- Note that a normal user cannot create, read, update or destroy BillRate while an administrator can.
- Send a normal profile update request to the users API endpoint.
- Add the billability_target and billrate fields to that same request.
- 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.