Skip to content
Access control Write-up Beginner

Bypass Admin Panel Access Steps — Bug Tuesday

The article describes a technique to bypass admin panel access by intercepting the login response and modifying a JSON status field from 0 to 1 and adding a user_type field set to admin. If the server trusts this client-side response, the attacker could gain administrative privileges.

kerstan Follow

Published on medium.com

kerstan - Medium Read writing from kerstan on Medium. AI | Programming Knowledge | Bug Bounty Hunter X: https://x.com/kerstanhuntermedium.com

kerstan, 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 relies on client-side data (the JSON response) to determine authentication and authorisation, instead of validating credentials and roles on the server side.

Impact

If the server accepts the altered response, an attacker could gain administrative privileges and access the admin console.

What the attacker needed

Access to the login page; ability to intercept HTTP traffic (e.g., Burp Suite)

The fix

The server should not trust client-side data for authentication or authorisation; it should validate credentials and roles on the server side.

How it was found

  1. Navigate to the login page of the target system.
  2. Enter the username 'admin' and a random password.
  3. Click the login button and intercept the request with Burp Suite.
  4. Switch Burp Suite to interception mode to halt HTTP requests.
  5. In the intercepted HTTP response, find the JSON object with a 'status' field of '0' and change it to '1', then add a 'user_type' field with value 'admin'.
  6. Allow the request to proceed to the server and check if access to the admin console is granted.

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, the server sends back a message saying whether it worked. This article suggests that if you can intercept that message and change it to say 'success' and 'admin', the website might believe you are an administrator. That would be a serious flaw because the server should never trust the browser's word about who you are.

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 kerstan

View all

7 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.