“GitHub Recon: Hacking the Frontend Without Touching the App”
The author found multiple exposed secrets and unprotected endpoints by scanning public GitHub repositories and JavaScript bundles, including Stripe keys, JWT tokens, AWS credentials, and an unauthenticated admin export endpoint. These allowed access to staging environments, user data, and cloud resources without ever opening the web application.
javascript.plainenglish.io
Published on javascript.plainenglish.io
Every day, developers commit millions of lines of code. But guess what?
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, sensitive configuration files and secrets were committed to public repositories and not rotated, and some internal endpoints lacked authentication.
Impact
The exposed secrets and endpoints could allow access to staging admin dashboards, user data, cloud storage, and third-party services, potentially leading to data breaches or financial loss.
What the attacker needed
Public GitHub repositories; No authentication on some endpoints; Secrets not rotated
The fix
Secrets should be removed from public repositories, rotated immediately, and endpoints should enforce authentication; .env files should be gitignored.
How it was found
- Search GitHub with dorks like filename:.env org:target-org to find exposed configuration files.
- Download JavaScript bundles and use JSLinkFinder to extract API endpoints.
- Use Wayback Machine and GitHub commit history to find deleted endpoints and secrets.
- Scan repositories with Gitleaks and TruffleHog to discover hardcoded credentials.
- Verify discovered endpoints and secrets manually, for example with curl or Burp Suite.
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.
Developers sometimes accidentally upload secret keys or internal addresses to public code repositories like GitHub. Anyone can search these repositories and find these secrets, then use them to access private systems or data. This write-up shows how one researcher found many such secrets and unprotected endpoints without ever using the app's normal interface.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.