Skip to content
Info disclosure Write-up Beginner

When the Interview Fails but the Security Does Too

Several subdomains exposed .git folders, and one contained valid SMTP server credentials. The researcher used these credentials to send emails through the company's email system.

medium.com

Published on medium.com

Hiyya I am Raunak Gupta, a Security Researcher and Bug Bounty Hunter for fun and profit.

Raunak Gupta Aka B1scuit, 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, the .git directory was left publicly accessible on a subdomain, and a configuration file within it contained plaintext SMTP credentials.

Impact

An attacker could send emails using the company's email system, potentially for phishing or spam.

What the attacker needed

Exposed .git folders on subdomains; valid SMTP credentials in a file

How it was found

  1. Perform subdomain enumeration to find subdomains.
  2. Discover that several subdomains have exposed .git folders.
  3. Find credentials for the SMTP server in one of the exposed folders.
  4. Verify the SMTP credentials are valid.
  5. Use the credentials to send emails via the company's SMTP server.

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.

A .git folder is part of a website's source code history and should not be publicly accessible. If it is, anyone can download it and look for secrets like passwords. Here, a password for the company's email server was found, letting the researcher send emails as the company.

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.