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.
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
- Perform subdomain enumeration to find subdomains.
- Discover that several subdomains have exposed .git folders.
- Find credentials for the SMTP server in one of the exposed folders.
- Verify the SMTP credentials are valid.
- 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.