Microsoft Teams (work or school) for macOS library injection vulnerability
Microsoft Teams for macOS loads dynamic libraries from relative paths and has the disable-library-validation entitlement enabled, allowing an attacker to inject a malicious library. A malicious application could copy Teams to a controllable location and inject a library to inherit Teams' permissions, potentially accessing the camera, microphone, and user data.
Originally disclosed on Cisco Talos
A library injection vulnerability exists in Microsoft Teams (work or school) 24046.2813.2770.1094 for macOS. A specially crafted library can leverage Teams’s access privileges, leading to a permission bypass.
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
The application has the com.apple.security.cs.disable-library-validation entitlement enabled, which allows loading unsigned dynamic libraries, and it loads libraries via relative paths, enabling library injection.
Impact
An attacker could potentially take pictures, record audio, exfiltrate data, and more, using Teams' permissions; if permissions are not yet granted, Teams may prompt the user, potentially leading them to grant access.
What the attacker needed
Attacker can place a malicious app on the system; attacker can copy Teams to a controllable location
The fix
Microsoft fixed this issue in version 24124.1412.2911.3341.
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.
This bug lets a bad app trick Microsoft Teams into loading extra code that the bad app controls. Because Teams has special permissions (like camera and microphone access), the bad code can use those permissions without asking you again. The root problem is that Teams is allowed to load unsigned libraries, which is normally blocked for security.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.