Skip to content
Info disclosure Write-up Intermediate

From Exposed Mail Trap to Server Shell: A Bug Bounty Tale

An internal mail testing service was exposed on a public subdomain without authentication, letting anyone read captured emails. The inbox contained an admin notification, so the researcher reset the WordPress administrator password and uploaded a plugin to run commands on the server.

medium.com

Published on medium.com

In the world of bug bounty hunting, the most critical vulnerabilities often hide in plain sight — not in complex zero-days, but in misconfigured internal services that teams forget exist. This is the story of how an exposed mail testing service became the entry point to a full server compromise.

SecKillua0, 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 an internal mail testing service was deployed on a public subdomain without authentication, and its captured emails exposed the administrator identity needed for a password reset.

Impact

The chain gave full administrator access to WordPress and command execution as the web server user inside a container, exposing database credentials and environment variables and allowing possible lateral movement.

What the attacker needed

Publicly reachable mail testing service; no authentication on that service; WordPress admin email in captured mail

The fix

The mail testing service was placed behind authentication and the WordPress credentials were rotated, though the text does not say how the plugin upload path itself was restricted.

How it was found

  1. Enumerate subdomains and find one hosting a mail testing service.
  2. Visit the service and confirm the inbox is readable without logging in.
  3. Read a pending comment approval email to learn the WordPress admin address.
  4. Trigger a WordPress password reset and collect the reset email from the exposed inbox.
  5. Set a new password and log in as WordPress administrator.
  6. Upload and activate a plugin containing a PHP shell, then run commands through it.

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 mail testing service is a tool developers use to catch emails sent by a test system instead of delivering them. This one was reachable from the internet with no login, so anyone who found the address could read every message inside. One message named the site administrator, which let the researcher take over the admin account and then the server.

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.