Skip to content
Misconfiguration Write-up Intermediate

Spamming Microsoft 365 Like It’s 1995

Microsoft 365's Direct Send feature allows unauthenticated senders to spoof emails to internal users, and the author found that device code phishing emails often landed in inboxes or junk folders despite default protections. An attacker could send spoofed emails to trick users into granting access via device code phishing.

Steve Borosh Follow

Published on blackhillsinfosec.com

I previously blogged about spoofing Microsoft 365 using the direct send feature enabled by default when creating a business 365 Exchange Online instance (https://www.blackhillsinfosec.com/spoofing-microsoft-365-like-its-1995/). Using the direct send feature, it may be possible to send emails from outside or inside of…

Steve Borosh (@424f424f), on blackhillsinfosec.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

Impact

Spoofed device code phishing emails could land in user inboxes or junk folders, potentially leading to credential theft or unauthorized access, though results varied and some emails were quarantined.

What the attacker needed

Knowledge of target's smart host; ability to send SMTP email; target uses Exchange Online

The fix

Restrict the Direct Send smart host to only allow sending from specific IP addresses or with a certificate.

How it was found

  1. Identify the target organization's Direct Send smart host address.
  2. Use a tool like PowerShell's Send-MailMessage to send emails through the smart host.
  3. Craft a device code phishing email template.
  4. Send the emails to target users and observe delivery (inbox, junk, or quarantine).
  5. Vary encoding, subject, and sender domain to test filter behavior.
  6. Send a large number of emails to test consistency.

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 anyone send email to a company's users without logging in, as long as they know the company's mail server address. The author found that even with default spam filters, many spoofed emails still reached users' inboxes or junk folders. This means an attacker could send fake emails that look like they come from a trusted source, potentially tricking users into giving away access.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Steve Borosh

View all

1 more disclosed report, best first.

More from Microsoft (Exchange)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.