Skip to content
Info disclosure Write-up Intermediate

“Keyed In” Compromising an entire organization through their

An API key was left in plain text in the Postman documentation for the developer API, and a forgotten 'zombie' API endpoint allowed fetching the main account details, including Twilio credentials. An attacker could use the key to access the organisation's main account, retrieve connected app secrets, and potentially create or delete accounts and users.

S1renhead Follow

Published on medium.com

Today I'd walk you through on how I compromised an entire organization through their API. But before we get started let me give you a brief introduction about the organization and what they do.

S1renhead, 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 could access the organisation's main account, retrieve Twilio credentials, and potentially create or delete accounts and users, leading to full compromise of the organisation's API services.

What the attacker needed

Access to the developer subdomain; Ability to open Postman documentation; Knowledge of the zombie API endpoint

The fix

The report was resolved, but the text does not specify the fix; likely the API key should be removed from documentation and the zombie API should be decommissioned or properly secured.

How it was found

  1. Gather subdomains and find the developer subdomain.
  2. Open the API documentation in Postman and inspect the authorization tab.
  3. Find the plaintext API key in the request.
  4. Use search engine dorking to find a zombie API with sensitive endpoints.
  5. Send a request to the 'Get Account Details' endpoint using the API key.
  6. Retrieve account details including Twilio credentials and other connected app information.

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.

An API key is like a password that lets software talk to a service. Here, the key was accidentally published in the API documentation, so anyone who found the docs could use it. The key also unlocked an old, forgotten part of the system that returned sensitive account information, including credentials for another service (Twilio).

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.