(Pwn2Own) Microsoft Teams chat Client-Side Template Injection Remote Code Execution Vulnerability
A flaw in how Microsoft Teams renders chat messages allowed crafted message content to execute JavaScript in the context of the client process. An attacker in the same Teams organisation could run arbitrary code 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
Root cause
Likely the chat message rendering treated user-supplied strings as template or code input rather than inert text, allowing client-side template injection.
Impact
An attacker in the same Teams organisation could execute arbitrary code in the context of the current process at low integrity, without user interaction.
What the attacker needed
Attacker and victim in same Teams org
The fix
The vendor fixed the vulnerability on 31 August 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 apparently built some of the display from text supplied by the sender without properly treating it as plain text. That let a sender sneak in JavaScript, a programming language that runs inside the app, so the attacker's code ran on the victim's computer. The attacker needed to be in the same Teams organisation as the victim.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.