Spoofing Microsoft 365 Like It’s 1995
Microsoft 365's direct send feature allows unauthenticated SMTP connections to a smart host, enabling spoofed emails to be sent to internal users from internal or trusted external domains. An attacker could send phishing emails that appear to come from colleagues or trusted brands, potentially bypassing email gateways.
Published on blackhillsinfosec.com
Those of us on the offensive side of security often find ourselves in the position to test our clients’ resilience to phishing attacks. According to the Verizon 2021 Data Breach Investigations Report,1 phishing comprises 25% of all breaches.
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 direct send feature allows unauthenticated SMTP relay to internal users and trusts emails from the organization's own domain, so spoofed emails are accepted.
Impact
Attackers could send spoofed phishing emails to internal users, potentially bypassing third-party email gateways and landing in inboxes, though outbound emails are blocked and some phishing templates may be filtered.
What the attacker needed
Microsoft 365 subscription with Exchange Online; Knowledge of target's smart host address; Ability to connect to port 25
The fix
There is no 'Disable Direct Send' feature; defenders should correctly configure mail gateway settings to allow only specific IP addresses to send emails on behalf of the enterprise.
How it was found
- Connect to the smart host (company-com.mail.protection.outlook.com) on port 25.
- Send an email with a spoofed From address to an internal recipient using unauthenticated SMTP.
- Optionally, add a bypass spam filter rule in Exchange admin center to ensure delivery to inbox.
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.
Microsoft 365 has a feature called 'direct send' that lets devices like printers send email without logging in. The problem is that anyone on the internet can use it to send emails that look like they come from someone inside the company, because the system trusts emails from its own domain. This means an attacker can send fake emails that appear legitimate, tricking employees into clicking links or giving up information.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.