Skip to content
RCE Advisory Advanced

(Pwn2Own) Microsoft Teams WebView Incorrect Privilege Assignment Remote Code Execution Vulnerability

A WebView in Microsoft Teams was created with inappropriate privileges, allowing an attacker to execute arbitrary code in the context of the current process. No user interaction is required if the attacker and target are in the same Teams organisation and are both participants in a meeting.

p3rr0 Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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 and are both participants in a meeting.

Hector "p3rr0" Peralta @hperalta89, 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, a WebView was instantiated with privileges that were too broad, allowing web content to run code in the host process.

Impact

An attacker could execute arbitrary code in the context of the current process, but only if they and the target are in the same Teams organisation and both participants in a meeting.

What the attacker needed

Attacker and target in same Teams org; both participants in a meeting

The fix

The vulnerability was fixed 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.

A WebView is a component that lets an app show web content inside it. Here, the app gave that web content more power than it should have had. An attacker who shares a meeting with the victim could use that extra power to run their own code on the victim's computer.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.