(Pwn2Own) Microsoft Teams chat Client-Side Template Injection Remote Code Execution Vulnerability
A flaw in Microsoft Teams chat message rendering allowed crafted chat messages to execute JavaScript composed from a user-supplied string. An attacker in the same Teams organisation could execute arbitrary code in the context of the current process at low integrity without user interaction.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Teams. No user interaction is required if the attacker and target are in the same Teams organization.
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
Impact
An attacker could execute arbitrary code in the context of the current process at low integrity, with no user interaction required if both parties are in the same Teams organisation.
What the attacker needed
Attacker and target in same Teams org
The fix
The vulnerability was fixed by Microsoft on August 31, 2022.
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 displays chat messages, and it builds some of the page content from the text people type. If that text is not handled safely, an attacker can send a message that makes Teams run their JavaScript code. This is like letting someone slip instructions into a letter that the reader then follows.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.