Skip to content
Access control Write-up Intermediate

From a Single Parameter to Persistent Admin Access: A Privilege Escalation Rooted in Business Logic

The backend trusted a client-supplied parameter to decide a user's role, so a standard user could gain temporary admin access. By exploiting weak validation between token claims and request data, the attacker made this access persistent and could create privileged accounts and read API keys for external integrations.

vivekbhatt.sec Follow

Published on medium.com

A client-controlled parameter influenced server-side authorization, enabling temporary privilege escalation. By identifying weaknesses in how token-based authorization was validated, it became possible to transition this access into persistent administrative control — ultimately exposing sensitive API keys tied to…

Vivekbhatt Sec, 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 backend made authorization decisions based on a client-controlled parameter and did not consistently validate token-derived roles against trusted server-side data.

Impact

An authenticated standard user could gain persistent administrative control, create privileged accounts, and read API keys that could allow actions against external integrations under the organisation's identity.

What the attacker needed

An authenticated account with standard privileges

The fix

The client implemented remediation by enforcing strict server-side authorization checks, ignoring client-controlled role indicators, validating token claims against trusted backend sources, restricting sensitive data exposure based on roles, and auditing all endpoints for consistent access control.

How it was found

  1. Intercept normal application requests and notice a parameter that appears to define the user's role or access scope.
  2. Modify the parameter in a controlled way and replay the request; the server returns data normally reserved for higher-privileged users without error.
  3. Replay similar requests across multiple API endpoints while keeping the same session but altering the parameter, confirming the issue is systemic.
  4. Observe that elevated access works only when the manipulated parameter is present, so the privilege is request-dependent.
  5. Analyse how session tokens are handled and exploit inconsistencies between token-derived roles and request-level authorization to stabilise elevated privileges beyond a single request.
  6. Use administrative role management to create new high-privileged accounts and assign elevated roles through legitimate workflows.

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 application let the browser tell the server what role the user had, instead of the server checking for itself. A normal user could change that value in a request and the server would treat them as an administrator. The attacker then found a way to keep that admin access across requests and used it to create more admin accounts and read secret API keys.

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.