Skip to content
Access control Write-up Beginner

CVE-2026–38075: API keys remained valid after account suspensio

RocketAdmin's API key authentication middleware did not check whether the associated user account was suspended, so a suspended user could continue accessing protected API endpoints with an existing API key. The key retained the permissions of the suspended account, allowing continued access until the key was separately revoked.

Prath Follow

Published on prathameshbagul.medium.com

RocketAdmin 1.6.10 and earlier contained an improper access control vulnerability in its API key authentication middleware.

Prath, on prathameshbagul.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

The API key authentication middleware verified the key's existence and association with a user but failed to check the user's current account status (suspended) before granting access.

Impact

A suspended account could retain API access with the same permissions, potentially allowing continued access by terminated users or persistence after account compromise; the key did not grant new privileges beyond those already assigned to the account.

What the attacker needed

Valid RocketAdmin user account; API key issued while account active; account suspended without key revocation

The fix

The API key authentication path should reject a key when the associated account is suspended or otherwise prohibited from authenticating; RocketAdmin confirmed the issue was fixed.

How it was found

  1. Authenticate as an active user via the login endpoint.
  2. Create an API key using the authenticated session.
  3. Verify the API key works by accessing a protected endpoint.
  4. Suspend the associated account (e.g., by setting suspended=true in the database).
  5. Reuse the existing API key to access the same protected endpoint.

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 an account is suspended, the system should block all ways of logging in. Here, the password login was blocked, but an API key (a secret token used by programs to access the system) still worked because the code never checked if the account was suspended. This meant a suspended user could keep using the system through that 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.