Skip to content
Access control Write-up Intermediate

How Note-Taking and Hacktivity Analysis Led to Privilege Escalation

A staff user with member management permissions could edit the email address of a pending admin user via an HTTP request, despite the UI restricting such edits. By changing the pending admin's email to an attacker-controlled address, the attacker could complete registration and gain full admin privileges.

ahmedsamirghallab Follow

Published on medium.com

Today, I want to share a story about uncovering a vulnerability. While my experience played a part, the real MVPs were my organized notes and analyzing Hacktivity.

Ahmed Samir Ghallab, 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 authorisation check for editing user details was missing or inconsistent for pending users, allowing a staff user to change a pending admin's email via API even though the UI prevented it.

Impact

An attacker with member management permissions could escalate to full admin privileges on the application.

What the attacker needed

Attacker has member management permissions; a legitimate admin invites a new admin; attacker can intercept HTTP requests

How it was found

  1. Create an account and add a user with member management permissions.
  2. Invite a new admin user as a legitimate admin.
  3. Intercept the HTTP request for editing pending users.
  4. Modify the pending admin's email to an attacker-controlled email.
  5. Complete the registration process using the invitation to gain admin 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.

In many apps, an admin can invite other people to join with admin rights. The app was supposed to stop lower-level staff from changing an invited admin's email address, but it only blocked this in the normal web interface, not in the underlying request. By sending a crafted request, the attacker redirected the invitation to their own email and became an admin.

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.

More by ahmedsamirghallab

View all

2 more disclosed reports, best first.

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.