Skip to content
XSS Advisory Advanced

(Pwn2Own) Microsoft Teams Cross-Site Scripting Remote Code Execution Vulnerability

The Microsoft Teams bot app manifest description parameter lacked proper validation, allowing injection of an arbitrary script. An attacker could exploit this to execute code in the context of the current process, but user interaction is required.

VCSLAB Follow

Originally disclosed on Zero Day Initiative

Medium 5.0 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Teams. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

vcslab of Team Viettel (@vcslab), on the Zero Day Initiative

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the application failed to validate or sanitise user-supplied data in the description parameter of a bot app manifest, allowing script injection.

Impact

An attacker could execute arbitrary code in the context of the current process, but the target must visit a malicious page or open a malicious file.

What the attacker needed

Victim visits a malicious page; or opens a malicious file

The fix

Microsoft issued an update to correct this vulnerability.

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 report has not been written yet. The Original tab links to the source.

Microsoft Teams lets you install bot apps, and each app has a manifest file that describes it. The description field in that file was not properly checked, so someone could put a script in it. If a user opened a malicious page or file, that script could run and let the attacker run code on the user's computer.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by VCSLAB

View all

1 more disclosed report, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.