Skip to content
Info disclosure Write-up Beginner

How I Found My First Bug Using Shodan

An unauthenticated MailHog email testing tool was publicly accessible on a staging server, allowing anyone to view and delete all emails. An attacker could read potentially sensitive staging emails and disrupt the development environment.

bughunt.bochi Follow

Published on medium.com

When I embarked on my pentesting journey, I never imagined my first bug would be hiding in plain sight — on an open port, no less. This is the story of how I hunted down my first vulnerability, reported it, and ultimately bagged my first bounty.

Yash Nimbalkar, 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 MailHog service was deployed on a publicly accessible server without any authentication or network restrictions.

What the attacker needed

Internet access; Shodan account (free tier may suffice)

The fix

The endpoint was eventually secured after the researcher persisted, though the text does not specify the exact fix.

How it was found

  1. Search Shodan for the target domain and find an open port.
  2. Access the MailHog interface at the exposed IP and port.
  3. View and delete emails without authentication.

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 company left an email testing tool called MailHog open to the internet without a password. This meant anyone who found it could read all the emails it had stored and even delete them. The tool was meant only for developers to test email sending, not for public access.

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.