How To Get E Mail Addresses From Smtp Server
An SMTP server allowed anonymous connections and supported the VRFY command, letting an attacker enumerate valid email addresses. The attacker could then use these addresses for spam or phishing, and in some cases send mail impersonating legitimate users.
Published on systemweakness.com
First of all, it must be said that doing this on third-party servers for which you don’t have authorized access is illegal.
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 SMTP server was configured to allow anonymous connections and to respond to the VRFY command, revealing whether a user exists.
Impact
Attackers could harvest email addresses for spam or phishing, and in some cases send mail impersonating legitimate users, bypassing anti-spoofing defences like DMARC.
What the attacker needed
SMTP server with no authentication; Network access to port 25
The fix
Configure SMTP authentication and disallow anonymous logins.
How it was found
- Find an SMTP server that allows connections without authentication.
- Connect to the server on port 25 using netcat.
- Send the VRFY command for each candidate username.
- Look for responses containing the 252 code, which indicates a valid user.
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.
SMTP is the protocol used to send email. Some servers let anyone connect without a password, and they may answer questions about whether a given email address exists. This lets an attacker build a list of real addresses to target with spam or scams.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.