Skip to content
Leaked secrets Write-up Beginner

Not All Vulnerabilities Require Highly Technical Exploits | Secu

A developer had committed credentials for an internal admin panel to a public GitHub repository. The panel was publicly accessible without two-factor authentication, and the credentials were valid, so an attacker could log in to the admin panel.

Sushant Soni Follow

Published on medium.com

When people think of security vulnerabilities, they often imagine complex exploits or advanced hacking techniques. But in reality, not all vulnerabilities require deep technical expertise; sometimes, a simple secret commit is all it takes.

Sushant Soni, on medium.com

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, credentials for an internal admin panel were hardcoded in source code and committed to a public repository, and the panel itself lacked network restrictions or two-factor authentication.

Impact

An attacker could log in to the internal admin panel with valid credentials because it was publicly accessible and had no two-factor authentication.

What the attacker needed

Public GitHub repository; credentials committed to code; admin panel reachable from internet; no two-factor authentication

The fix

The issue was fixed by enabling secret scanning and push protection, using environment variables or vaults instead of hardcoding credentials, restricting admin panels to VPN, IP whitelisting or SSO, and training developers.

How it was found

  1. Search a company's GitHub repositories using keywords for secrets.
  2. Narrow the search to specific user accounts found via the People tab.
  3. Review the results and find committed credentials.
  4. Confirm the admin panel is publicly accessible and the credentials work.

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.

Someone accidentally saved a username and password for a company's private admin page inside public code on GitHub. Because the admin page was open to the internet and had no extra login step, anyone who found those details could log in as an administrator.

What is Leaked secrets?

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

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.