Skip to content
Info disclosure Write-up Beginner

How I Got 200 euro bounty?

A JavaScript file exposed an internal JWT and an API key with an application ID for a third-party API. Using these, the author listed sensitive file names and then downloaded a financial document.

doordiefordream Follow

Published on doordiefordream.medium.com

Today i explain how i found the information disclosure vulnerability using JWT and API key exploit.

DOD cyber solutions, on doordiefordream.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 list and download sensitive third-party files, including financial documents and employee information; the service was third-party and technically out of scope, but the report was accepted and paid.

What the attacker needed

Access to the public website; JavaScript files are publicly readable

How it was found

  1. Open the target site and view the page source.
  2. Search the source for .js references and inspect each JavaScript file.
  3. Search the JavaScript files for keywords such as a JWT prefix and API key.
  4. Use the found API key and application ID in a request to list files.
  5. Take a file name from the listing and request the file using the JWT.

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.

Websites often load JavaScript files that contain configuration values. If secrets like API keys or login tokens are left in those files, anyone can read them and use them to access data the site meant to keep private.

What is Info disclosure?

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

More by doordiefordream

View all

6 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.