Microsoft Teams (work or school) for macOS com.microsoft.teams2.modulehost.app helper app library injection vulnerability
The Microsoft Teams helper app modulehost loads dynamic libraries from relative paths and has the disable-library-validation entitlement, allowing unsigned libraries to be loaded. An attacker could copy the app to a controlled location and inject a malicious library to inherit the app's permissions, potentially accessing the camera, microphone, location, and other data.
Originally disclosed on Cisco Talos
A library injection vulnerability exists in the com.microsoft.teams2.modulehost.app helper app of 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 helper app uses the disable-library-validation entitlement, which turns off the security check that normally prevents loading unsigned libraries, and it loads libraries via relative paths.
Impact
An attacker could use the app's permissions to take photos, record audio, exfiltrate data, and more; if permissions were already granted, actions execute without a prompt, otherwise a prompt appears as if from Microsoft Teams.
What the attacker needed
Attacker can copy the app to a controlled location; attacker can place a malicious library
The fix
Microsoft fixed this issue in version 24124.1412.2911.3341.
How it was found
- Copy the Microsoft Teams application to a location the attacker controls.
- Place a malicious dynamic library in the expected relative path for the helper app.
- Launch the helper app to trigger loading of the malicious library.
- Use the inherited permissions to access features like camera, microphone, or location.
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 is about a helper program that comes with Microsoft Teams on Mac. The helper is allowed to load extra code libraries from its own folder without checking who made them. A bad app could put its own library there and get the same access as Teams, like using the camera or microphone.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.