Skip to content
Leaked secrets Disclosed report Beginner

Github Token Leaked publicly for https://github.sc-corp.net

A GitHub token was publicly exposed in a code repository, potentially allowing unauthorised access to an internal GitHub instance. The reporter did not test the token's access but shared the finding.

th3g3nt3lman Follow

Originally disclosed on HackerOne

Critical 9.8 View original
  • Triaged in 7 hours
  • Fixed in 22 days
  • Paid in 3 days
  • Disclosed after 52 days

###Description :

GitHub is a truly awesome service but it is unwise to put any sensitive data in code that is hosted on GitHub and similar services as i was able to find github token indexed 7 hours Ago by user ██████ - Software Engineer - Snap Inc

Issue & POC :

You can find the leak in this link : https://github.com/█████/leetcode/blob/0eec6434940a01e490d5eecea9baf4778836c54e/TopicMatch.py


import os
import requests
import sys
pull_number = 76793
pull_url = "https://github.sc-corp.net/api/v3/repos/Snapchat/android/pulls/" + str(pull_number)
payload = {}
payload["Authorization"] = "token " + "9db9ca3440e535d90408a32a9c03d415979da910"
print payload
r = requests.get(pull_url,

```

## Impact

I didn't try anything with the token, and dont know what access it has, and i know that in order to login to https://github.sc-corp.net you need to have an email @snap but still i though it would be a good idea to share this finding with you in case it can be used in a way that i dont know.

Best Regards

The original report as published on HackerOne, by th3g3nt3lman. 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 a sensitive token in source code that was committed to a public repository.

Impact

The token could allow access to the internal GitHub instance, but the reporter did not verify its permissions and noted that login requires a Snap email address.

What the attacker needed

Public GitHub repository; token committed in code

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 secret token, like a password, was accidentally left in public code on GitHub. Anyone who finds it could use it to access a private system, though the reporter did not check what it could do.

What is Leaked secrets?

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

More from Snapchat

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.