Skip to content
Account takeover Write-up Beginner

#LifeAmongstBugs02: Intercepting the State’s Secrets

Several MailCatcher instances were left publicly accessible on government subdomains, allowing anyone to read outgoing emails including password reset links. An attacker could use a reset link to take over any account, and other issues included a CSRF cart-clearing link and account enumeration via error messages.

anmolvats220703 Follow

Published on medium.com

Welcome back to my bug hunting series! This month has been quite the whirlwind.

newklei, 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 a development email-testing tool was deployed on public subdomains without authentication and left running in production.

Impact

An attacker could read password reset tokens in real time and take over accounts, including access to sensitive portals, PII and internal communications; the CSRF and enumeration issues were rated informational/low.

What the attacker needed

Publicly reachable MailCatcher instance; attacker can trigger a password reset; victim has an account on the system

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.

MailCatcher is a testing tool that pretends to be an email server so developers can see emails without sending them for real. Here it was left open to the internet, so anyone could read every email the system sent, including password reset links. With a reset link, a stranger could change someone else's password and take over their account.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.