Skip to content
Leaked secrets Disclosed report Beginner

client_secret Token disclosure

A GitHub repository's HTML file contained a hardcoded client_secret token in a request URL, which was publicly visible.

yumi Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in under an hour
  • Disclosed after under an hour

Greetings,

I think I've discovered a client_secret token disclosure.

Proof of concept:

1. Go to https://github.com/AspenWeb/experimental-javascript-version/blob/master/www/blog/index.html

2. At the line 6, a client_secret token it's disclosed.

request('https://api.github.com/repos/zetaweb/aspen/issues?client_id=f58e3c865648d1eae132&client_secret=b1e49a627a30e3d41568ecaf976436f4bfbbefba', function (error, response, body) {

Thanks for your attention and let me know if you need anything. Regards, Yumi

The original report as published on HackerOne, by yumi. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, the developer hardcoded the client_secret directly into the source code instead of storing it securely.

Impact

The client_secret was publicly exposed, so anyone viewing the file could see it.

What the attacker needed

Access to the public GitHub repository

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 report has not been written yet. The Original tab links to the source.

A client_secret is like a password that an application uses to prove its identity to another service. Here, someone accidentally put this password in a public file on GitHub, so anyone could see it and use it to pretend to be the application.

What is Leaked secrets?

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.

More by yumi

View all

5 more disclosed reports, best first.

More from Aspen

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Leaked secrets and credentials

The lesson behind this report.

Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.