Skip to content
Access control Write-up Intermediate

Debug Logs to Admin Panel Access

A debug logs page exposed an API endpoint that, when accessed with a normal user's JWT token and the GET method, returned the complete list of users. The attacker then used the OPTIONS method to discover that POST and PUT were allowed, and by modifying the response body from the users list, successfully added a new user and logged in to the admin panel.

medium.com

Published on medium.com

It’s been a while, guys! Today, I’m gonna share how I got access to the admin panel in a private program.

CYB3RC4T, 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

Impact

An attacker with a normal user account could access the complete user list and create new users, potentially leading to admin panel access.

What the attacker needed

A normal user account; access to the debug logs page

How it was found

  1. Found an API endpoint on the debug logs page that did not appear during fuzzing.
  2. Accessed the endpoint and was prompted to log in with credentials.
  3. Captured the request, changed the method to GET, and added an authorization header with a normal user JWT token.
  4. Received the complete users list.
  5. Sent an OPTIONS request to discover that POST and PUT methods were allowed.
  6. Took the response body from the users-fetching request, changed the data to create a new user, and sent it via POST.

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 had a hidden API endpoint that was supposed to be protected, but it accepted a regular user's login token and returned all user data. The attacker then figured out they could also create new users by sending a modified request, which let them log in as an admin. This is like finding a back door that only checks if you have any key, not the right key.

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.