Skip to content
Access control Write-up Beginner

The Ghost in the Admin’s Wallet: A Tale of Unauthorized Access

An API endpoint intended for administrators lacked server-side authorisation checks, so any logged-in standard user could call it. A standard user retrieved a JSON list of 472 wallet top-up orders, exposing user names, email addresses and transaction histories.

alimramadan92 Follow

Published on medium.com

Date: October 5, 2025 Subject: Unauthorized Administrative Access Leading to Critical Information Disclosure

CYX, 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 endpoint relied on its admin- name or client-side routing for protection and never enforced a server-side role check.

Impact

Any non-admin user could read the full transaction log, including user names, email addresses and top-up histories, which could enable phishing or social engineering.

What the attacker needed

A standard non-admin account

The fix

The endpoint should enforce server-side role checks so only users with an Admin role can retrieve the data and everyone else receives a 403 Forbidden response.

How it was found

  1. Map the application's API endpoints by intercepting traffic and reading the main JavaScript file.
  2. Spot an endpoint whose path contains an admin- prefix.
  3. While logged in as a standard non-admin user, send a GET request to that endpoint.
  4. Observe a 200 OK response containing a JSON array of wallet top-up orders.

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.

A website's server should check who you are before handing over private data. Here, a page meant only for staff could be opened by any ordinary logged-in user, because the server never checked for an admin role. That let an ordinary user download a list of other people's names, email addresses and payment top-up records.

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.