Skip to content
Access control Write-up Intermediate

Vertical Privilege Escalation from Manager to Owner: A Bug Bounty Story

A manager-level user could modify a login request to change their role to owner and add owner permissions, gaining full owner access. The attacker could then control the entire system.

swaroopvenkat828 Follow

Published on medium.com

In my recent pen testing engagement, I came across an interesting scenario that I’d like to share with you. After reporting my previous findings, I was exploring other vulnerabilities and discovered a dependency confusion issue in a program.

swaroop 04|16, 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 trusted client-supplied role and permission data during login instead of validating the user's actual role on the server side.

Impact

A manager-level user could gain full owner access, giving them control over the entire system.

What the attacker needed

A manager-level account; ability to intercept and modify requests

How it was found

  1. Create an account and invite two users: one as Owner and one as Manager.
  2. Log in as the Manager while capturing all requests with a proxy tool.
  3. Observe the login request containing the role set to Manager.
  4. Modify the request to replace the Manager role and permissions with those of the Owner.
  5. Forward the modified request and turn off interception.
  6. Verify that the Manager now has Owner permissions in the UI.

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, users have roles like 'manager' or 'owner' that decide what they can do. Here, the app trusted a role value sent from the browser during login, so a manager could simply edit that value to 'owner' and also copy the owner's permissions. This let them do everything an owner could, like manage the whole account.

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 swaroopvenkat828

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.