Skip to content
Access control Write-up Beginner

#6. Bug Bounty Series: Vertical Privilege Escalation via Session

The application stored a user's role in browser session storage under a parameter called UserAdminRoles, and the server trusted this client-side value. An attacker with a low-privilege employee account could edit that value to grant themselves super admin rights.

Cyb3r M!nds Follow

Published on cyb3rmind.medium.com

Hello👋 and welcome, fellow cyber explorers!. Today, I’m excited to share my another write-up on vertical privilege escalation where I escalated the Low User privilege to Super Admin.

Cyb3r M!nds, on cyb3rmind.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 a client-controlled session storage value to determine the user's role instead of checking the role on the server side.

Impact

An employee could gain super admin privileges, allowing them to access the admin panel, delete and view logs of other users, and modify application values.

What the attacker needed

A low-privilege employee account; ability to edit browser session storage

How it was found

  1. Log in with an employee account and open the browser developer tools.
  2. Inspect session storage and find the UserAdminRoles parameter, which is blank.
  3. Log in with an admin account and observe that UserAdminRoles contains IsAdmin.
  4. Edit the employee's UserAdminRoles value to IsAdmin and see the admin tab appear.
  5. Change the value to IsSuperAdmin, IsAdmin, IsManager and refresh the page.
  6. The employee account now has super 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.

When you log in, a website often saves small pieces of information in your browser, such as your role. Here, the site saved the user's role in a place the user can easily change. The server then believed whatever role the browser sent, so a normal employee could simply edit that value to become an administrator.

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.

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.