(Pwn2Own) Microsoft Teams URL Allowlist Bypass Remote Code Execution Vulnerability
Microsoft Teams did not properly verify approved subdomains in its domain allowlist for content delivery, allowing an attacker to bypass the allowlist. A remote attacker could execute arbitrary code on the victim's machine if the victim visited a malicious page or opened a malicious file.
Originally disclosed on Zero Day Initiative
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.
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 allowlist check matched only the parent domain and did not correctly validate subdomains, so a crafted subdomain of an approved domain passed the check.
Impact
An attacker could execute arbitrary code in the context of the current process at low integrity, but the victim must first 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
The vendor fixed the vulnerability 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 uses a list of trusted domains to decide what content it will load. The check for whether a subdomain belongs to a trusted domain was flawed, so an attacker could sneak in content from an untrusted source. If the victim opened a malicious page or file, the attacker could run their own code on the victim's computer.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.