Skip to content
Leaked secrets Disclosed report Beginner

Leaking Of Sensitive Information on Github

Sensitive credentials, including API keys and OAuth client secrets, were exposed in the public GitHub repository of the Liberapay project; the reporter did not attempt exploitation.

harris0ft Follow

Originally disclosed on HackerOne

  • Disclosed after 9 hours

##Summary: Sensitive Data were leaked in https://github.com/liberapay/liberapay.com

##Steps To Reproduce:

  1. Install gitleaks from https://github.com/zricethezav/gitleaks

  2. Run the following command in a Linux terminal

gitleaks -v --pretty -r=https://github.com/liberapay/liberapay.com

The following keys were leaked:

1. AWS ID: "AKIAJRT6BUQHIPYENYWQ"

2. 'twitch_secret' : "o090sc7828d7gljtrqc5n4vcpx3bfx"
 
3. 'facebook_app_secret' : "3bcb5dc6ce821e5202870c1e6ef5bbc4"
   'facebook_app_id' :  "1418954898427187"

4. 'twitter_id'  :  "h8bBZtoPNz63S5RkZdbo9R5zb"
   'twitter_consumer_key' : "h8bBZtoPNz63S5RkZdbo9R5zb"

5. 'github_client_secret'  :  "46f75669895e96029d57b64832d6f2c8e6291a0e"

6. 'bitbucket_secret' : "Y5G6A9BaWDxn2gLKZwwkrGtVE3Zjd7y7"

7. 'google_client_secret'  :  "7AkgPekyWr6stQWdM6y1TtV6"

8. 'openstreetmap_secret'  : "W08UgEhxQnh7nMzB7GfSFcqcwPnZMmKMNyxWdcw4"

9. 'GITHUB_CLIENT_SECRET'  :  "e69825fafa163a0b0b6d2424c107a49333d46985"

10. 'BALANCED_API_SECRET'] = '90bb3648ca0a11e1a977026ba7e239a9'"

11. FB.init( { apiKey: 'a279adbe87e2b3c505e777af99a5260d', xfbml: true } );",

12. "Google API key" :  "AIzaSyDFwxAtyIPi08FgI58rMsL5A9CqvL3kOaY"

Impact

I didn't try anything with the keys, just thought it would be a good idea to share this finding with you in case it can be used in a way that I don't know. So its up to you to assess the risk.

Best Regards

The original report as published on HackerOne, by harris0ft. 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, sensitive credentials were hardcoded in the source code and committed to a public repository.

Impact

The leaked keys could allow an attacker to access third-party services and potentially compromise user accounts or data, though the reporter did not attempt exploitation.

What the attacker needed

Public GitHub repository; No authentication needed

How it was found

  1. Install gitleaks from its GitHub repository.
  2. Run gitleaks against the Liberapay GitHub repository URL.
  3. Observe the leaked keys in the output.

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.

The report found secret keys left in a public code repository on GitHub. The keys include ones for Facebook, Twitter and AWS. The reporter did not try using them.

What is Leaked secrets?

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

More by harris0ft

View all

1 more disclosed report, best first.

More from Liberapay

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.