Skip to content
XSS Advisory Intermediate

(Pwn2Own) Microsoft Teams amsVideo Cross Site Scripting Vulnerability

The Teams endpoint failed to properly validate the amsVideo parameter, allowing an attacker to inject an arbitrary script. An attacker could combine this with other flaws to run code in the context of the current process.

Anonymous Follow

Originally disclosed on Zero Day Initiative

Medium 6.3 View original

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

Anonymous, 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 Teams endpoint placed the user-supplied amsVideo parameter into a page without validating or encoding it, so script content was treated as code.

Impact

An attacker could execute arbitrary code in the context of the current process, but only if the target visits a malicious page or opens a malicious file and the flaw is chained with other vulnerabilities.

What the attacker needed

Victim visits a malicious page; victim opens a malicious file; chained with other vulnerabilities

The fix

It was fixed in version 1.4.00.11161.

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.

A web page or app can take input from a link and put it into the page without checking it first. If that input is a script, the app may run it as if it were its own code. Here the input was a parameter called amsVideo in Microsoft Teams.

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 Anonymous

View all

2,270 more disclosed reports, 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.