Authorization bypass — Low-privileged user can view organization members and user details
A user listing endpoint returned sensitive user details to low-privileged users when requests were replayed with their cookies, despite the UI showing a permission error. An attacker with a low-privileged account could view organization members' emails, roles, and last login timestamps.
Published 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 server-side endpoint did not enforce authorization checks and relied on the UI to block access.
Impact
A low-privileged user could view organization members' emails, roles, and last login timestamps, which could aid phishing or further attacks.
What the attacker needed
A low-privileged account; ability to capture and replay requests
The fix
The server should enforce authorization checks on every request and bind session cookies to the authenticated identity with server-side validation.
How it was found
- Create an admin account and invite a new user as a Collaborator.
- Accept the invite and log in as the low-privileged user.
- As the low-privileged user, go to the member list and see a permission error.
- Log in as admin, go to the member list, capture the request, and send it to repeater.
- Replace the cookies with the low-privileged user's cookies and send the request.
- Observe that the response still contains admin-level user data.
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 should check on its server whether you are allowed to see something, not just hide the button in the browser. Here, the server did not check properly, so a normal user could trick it into showing private information about other users. This is called an authorization bypass because the server skipped the permission check.
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.