Skip to content
SSRF Write-up Intermediate

MS Teams: 1 feature, 4 vulnerabilities

The link preview feature in Microsoft Teams had four vulnerabilities: a server-side request forgery that allowed access to internal Microsoft services, a spoofing issue where the preview link target could be set independently of the displayed link, an IP address leak for Android users, and a denial of service that crashed the Android app. An attacker could use these to scan internal ports, conduct phishing, leak IP addresses, or make channels unusable for Android users.

Fabian Bräunlein Follow

Published on positive.security

While investigating [the Windows 10 RCE we recently published)(https://positive.security/blog/ms-officecmd-rce), we were [at one point)(https://positive.security/blog/ms-officecmd-rce#teams-code-execution-via---inspect-debugger-and-mitm-with-sop-bypass) looking for a way to bypass Teams'/Electron's Same-Origin Policy.…

Fabian Bräunlein, on positive.security

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 link preview feature did not properly validate or restrict the URLs used for fetching previews and thumbnails, and the Android client lacked checks on thumbnail domains.

Impact

The SSRF could be used for internal port scanning and sending HTTP-based exploits; the spoofing could improve phishing; the IP leak could expose Android users' IP addresses and user agents; and the DoS could make channels unusable for Android users. Only the IP leak was patched.

What the attacker needed

Microsoft Teams account; Ability to send messages; Victim uses Android for IP leak/DoS

The fix

The text does not state a fix for most issues; only the IP address leak was patched, and the report suggests removing the ftps:// scheme from allowed protocols for hardening.

How it was found

  1. Send a message with a link to an internal address such as [redacted] or the Azure metadata service.
  2. Observe that the preview is generated, indicating the server fetched the internal URL.
  3. For spoofing, set the preview link target to a different location than the displayed link.
  4. For IP leak, intercept the message sending and change the thumbnail URL to a non-Microsoft domain.
  5. For DoS, send a message with an invalid preview link target (e.g., 'boom') to crash the Android app.

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 creates previews for links you share. The researchers found that the server making these previews could be tricked into fetching internal addresses, that the preview could show one link but actually open another, that Android phones could be made to load images from any website (revealing the user's IP address), and that a malformed link could crash the Android app. These are like a mailroom that will fetch any package you ask for, a fake label on a package, a leaky envelope, and a letter that explodes.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More by Fabian Bräunlein

View all

1 more disclosed report, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.