$50k BOUNTY JUST FOR GITHUB TOKEN LEAKS
A GitHub token was found in a .env file inside an Electron app's app.asar archive. The token was valid and had push and pull permissions on Shopify's public and private repositories, potentially allowing an attacker to insert backdoors.
medium.com
Published on medium.com
Got $50K Bounty Just for Github token leaks. This is big bounty for token leaks.
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 a developer accidentally committed a GitHub token into a .env file that was bundled into the Electron app's app.asar archive.
Impact
The token could allow arbitrary push and pull to Shopify repositories, potentially permitting the placement of backdoors.
What the attacker needed
Access to the Electron app; ability to extract app.asar
How it was found
- Extract the app.asar file from the Electron app.
- Find a .env file containing a GH_TOKEN variable.
- Use the token to authenticate against the GitHub REST API.
- Check the token's access to organisations and repositories.
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 Electron app is a desktop program built with web technology, and its files can be unpacked to see what is inside. A GitHub token is like a password that lets someone access code repositories. Here, a secret token was left inside the app's files, and it gave access to Shopify's code, which could let someone change the code.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.