Skip to content
Info disclosure Write-up Beginner

$1,000 Bug Bounty: Complete Email System Takeover

An exposed .env file on a certification vendor's website contained plaintext SMTP credentials, which allowed the author to log into the admin email account. The author could read and send emails, access customer orders and voucher codes, and potentially compromise other systems using the exposed AWS and database credentials.

medium.com

Published on medium.com

I had the pleasure of uncovering a critical vulnerability that netted me $1,000 in bounty rewards, all thanks to a simple information disclosure bug. The target was a certification vendor selling exam vouchers for CEH, CCNP, CompTIA, and other security certifications.

Raja Uzair Abdullah, 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

The web server served the .env configuration file publicly without access restrictions, exposing plaintext credentials.

Impact

An attacker could read and send emails as the admin, access customer orders and voucher codes, and potentially use exposed AWS and database credentials for deeper compromise.

What the attacker needed

None

The fix

The company fixed the issue and rotated all credentials within four hours.

How it was found

  1. Manually append /.env to the website URL.
  2. Observe that the .env file loads and contains plaintext credentials.
  3. Use the discovered SMTP credentials to log into the admin email account.

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 .env file is a configuration file that often stores secrets like passwords and API keys. If a website accidentally makes this file publicly accessible, anyone can read those secrets. Here, the email password was exposed, so the author could log into the company's admin email account.

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.