Skip to content
Info disclosure Write-up Beginner

How to Easily Find Exposed Credentials in Bug Hunting

The author found exposed admin credentials and internal endpoints for a company by searching public code-sharing sites like Pastebin and Codebeautify using Google dorks. An attacker could use these credentials to access internal systems, though the company said the credentials were outdated.

osintteam.blog

Published on osintteam.blog

Hi readers, this write-up is a quick guide one on how I found Exposed Credentials of company internals on third party exposures via Google Dorking. People usually miss this, as it is not directly related to the main domain while Google Dorking.

RivuDon, on osintteam.blog

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 developers shared code snippets containing credentials and internal endpoints on public paste and code-sharing sites.

Impact

The exposed credentials and endpoints could allow an attacker to access internal systems, though the company said the credentials were outdated.

What the attacker needed

Public code-sharing sites used by developers; Google search access

How it was found

  1. Choose a target domain.
  2. Search Pastebin for the domain using a Google dork.
  3. Find exposed admin credentials and endpoints in the results.
  4. Search Codebeautify for the domain using a Google dork.
  5. Find more leaked credentials and endpoints.
  6. Report the findings to the company.

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.

This is about finding secrets that developers accidentally left on public websites. The researcher used Google to search sites where people share code snippets, and found a company's admin username and password plus internal web addresses. Anyone could then try to log in with those details.

What is Info disclosure?

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

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.