Skip to content
Info disclosure Write-up Beginner

️ Information Disclosure Vulnerability: Exposing API Keys and T

An endpoint exposed API keys and tokens directly on a web page. An attacker could use these keys to gain unauthorised access to critical resources on the platform.

Abhijeet kumawat Follow

Published on medium.com

I’m Abhijeet Kumawat, a passionate security researcher 🕵️‍♂️, and today, I’m excited to share a recent vulnerability I discovered in a private program related to Information Disclosure or Sensitive Data Exposure. In this blog post, I’ll walk you through the entire process I used to uncover exposed API keys and tokens.

Abhijeet kumawat, 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 rendered sensitive credentials in its response without any access control or redaction.

Impact

The exposed keys could have led to unauthorised access to critical resources on the target platform.

What the attacker needed

Access to the exposed endpoint

How it was found

  1. Enumerate subdomains using several tools and merge the results.
  2. Filter the list to find live subdomains.
  3. Extract endpoints from the live hosts.
  4. Take screenshots of the endpoints automatically.
  5. Review the screenshots and spot exposed API keys and tokens.
  6. Visit the endpoint manually to confirm the keys work.

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.

API keys are like passwords that let programs talk to a service. If they are shown on a public web page, anyone who finds that page can copy them and act as the application, potentially reaching private data or functions.

What is Info disclosure?

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

More by Abhijeet kumawat

View all

2 more disclosed reports, best first.

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.