EASY P3 “Broken Access Control”
A user account could update its own profile fields even though the interface did not allow it, by intercepting and modifying the profile update request. This is a broken access control issue that lets a low-privileged user change restricted profile information.
Hello Hunters! I’m Abdelrahman (A0xtrojan), and I’m excited to share my write-up with you, in public program
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 server did not verify that the user had permission to update the profile fields, relying only on the interface hiding the option.
Impact
A low-privileged user could change restricted profile information that the interface did not allow them to edit.
What the attacker needed
Two accounts: admin and user; invited user account; Burp Suite to intercept requests
The fix
The server should enforce authorisation checks on profile update requests so that users can only change fields they are permitted to edit.
How it was found
- Create two accounts, one admin and one normal user.
- As the admin, invite an employee by email and set their details.
- Log in as the invited user and note that profile fields cannot be changed in the interface.
- Intercept the profile update request with Burp Suite and modify it.
- Observe that the profile name updates successfully.
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.
The website has two kinds of accounts: an admin who manages employees, and a normal user who should not be able to change their own employee details. The researcher found that by catching the request the browser sends when saving a profile and changing it, the normal user could still update their name. This is called broken access control because the server did not check whether the user was allowed to make that change.
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.