Skip to content
Info disclosure Write-up Beginner

How did I extract the API key in less than half an hour? my story

An API key was exposed in a login request intercepted by the researcher, and the initial report only provided the key without an exploitation method. The researcher later demonstrated how an attacker could use the key to send unauthorised data to analytics servers and obfuscate event logs.

DARN Follow

Published on medium.com

On Nov 19 2024, my first entry into the Hacker One platform, and I found a site with few discovered vulnerabilities. I was attracted by the matter and said that it did not have many testers and I could find myself in it.

DARN, 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 API key was included in a client-side request without proper protection, allowing it to be intercepted and reused.

Impact

An attacker could send unauthorised data to analytics servers and obfuscate event logs, potentially disrupting analytics.

What the attacker needed

Access to the login page; ability to intercept network traffic

How it was found

  1. Log in to the site and intercept the login request using Burp Suite.
  2. Drop the first registration request and observe the second request containing an API key.
  3. Use the API key to send unauthorised data to analytics servers and obfuscate event logs.

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 a program talk to a service. Here, the key was visible in a network request when logging in, so anyone who looked could copy it. The researcher showed that with this key, someone could send fake data to the site's analytics and mess up the logs.

What is Info disclosure?

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

More by DARN

View all

1 more disclosed report, 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.