Skip to content
Access control Write-up Intermediate

Puzzle to Pwnage: Decoding Hidden Endpoints for Maximum Exploitation

An undocumented base64 decoding endpoint on a development API exposed a GraphQL mutation that decoded arbitrary payloads server-side. By sending a crafted base64 payload, the attacker claims to have gained admin context and accessed user data and payment tokens.

infosecwriteups.com

Published on infosecwriteups.com

Free link ๐ŸŽˆ

Iski, on infosecwriteups.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

The attacker could access all user data and developer tokens, potentially leading to full account compromise.

What the attacker needed

Access to the development API endpoint; no authentication required

The fix

The report states a hotfix was deployed, but does not describe the fix; it should remove or properly secure development endpoints and enforce authorization on GraphQL mutations.

How it was found

  1. Discovered the endpoint /decode/base64 during reconnaissance.
  2. Sent a POST request with base64-encoded data to the endpoint.
  3. Introspected the GraphQL schema and found a devDecode mutation.
  4. Sent a crafted base64 payload to the devDecode mutation.
  5. Received a response indicating admin context.
  6. Queried adminListAllUsers and getPaymentTokens to extract data.

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 hidden web address meant for developers was left active. It accepted encoded text and decoded it on the server. The author says that by sending a special encoded message, they tricked the server into treating them as an administrator, letting them see other users' details and payment tokens.

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.