Skip to content
Info disclosure Write-up Beginner

From Dorking to Critical: Exposing Company Database Credentials a

A public GitHub repository belonging to the company exposed source code, database dumps and admin login files that anyone could find through GitHub code search. An attacker could read administrator credentials, user personal data and database configuration, and potentially escalate to account takeover or server compromise.

0xRedFox29 Follow

Published on medium.com

Di write up ini tidak ada coding tidak ada bypass, hanya mengandalkan google dorking untuk mencari file-file penting di github yang terbuka aksesnya ke publik.

0xRedFox29, 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 sensitive files such as database dumps, configuration and admin credentials were committed to a publicly accessible GitHub repository.

Impact

Exposed admin credentials, user personal data and database configuration could allow account takeover or server compromise.

What the attacker needed

Public GitHub repository; no account needed to view code

The fix

The exposure was fixed, presumably by removing the sensitive files from the public repository.

How it was found

  1. Search GitHub code for error keywords combined with the target domain.
  2. Open a matching code result containing an error keyword.
  3. Use the file search to look for database and admin login files.
  4. Find admin personal data and passwords inside the database dump.
  5. Download the full source 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 write-up has not been written yet. The Original tab links to the source.

Developers sometimes upload their project files, including database backups and password files, to a public code hosting site like GitHub. If those files are not meant to be public, anyone can find them by searching the site for error messages or file names. Here the author used simple search queries, called dorking, to locate such files and download them.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by 0xRedFox29

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.