Skip to content
IDOR Write-up Intermediate

Advisory: IDOR in Microsoft Teams Allows for External Tenants to Introduce Malware

Microsoft Teams enforced the restriction on sending files to external tenants only in the client, so an attacker could bypass it by changing the recipient ID in the message request. This let an external tenant deliver a file, such as malware, directly into a target's Teams inbox.

Max Corbridge Follow

Published on labs.jumpsec.com

Advisory: IDOR in Microsoft Teams Allows for External Tenants to Introduce Malware

Max Corbridge, on labs.jumpsec.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 the file-sending restriction for external tenants was enforced only in the Teams client, so the server did not independently verify that the recipient was in the same tenant.

Impact

An external tenant could deliver a file, including malware, directly into a target's Teams inbox, bypassing email anti-phishing controls; the authors used it to gain an initial foothold in a red team engagement.

What the attacker needed

A Microsoft account; target uses default Teams external access; victim accepts external message request

The fix

Microsoft was notified and validated the issue but said it did not meet the bar for immediate servicing; organisations should restrict or allow-list external access in the Teams Admin Center.

How it was found

  1. Start a message to a user in another organisation (external tenant).
  2. Intercept the POST request used to send a message.
  3. Change the recipient ID in the request from the external recipient to the internal one.
  4. Send the request with a file attached, which is then delivered to the target's 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 Teams normally stops people from outside your organisation from sending you files. The check that enforces this was done only in the Teams app on the user's computer, not on Microsoft's servers. By changing the recipient identifier in the request, an outsider could make the server accept a file and it would appear in the victim's inbox.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More from Microsoft (Teams)

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.