Microsoft OneNote for macOS library injection vulnerability
Microsoft OneNote for macOS loads libraries from relative paths and has the disable-library-validation entitlement, allowing an attacker to inject a malicious library. An attacker could then use OneNote's permissions to record audio, send emails, or exfiltrate data.
Originally disclosed on Cisco Talos
A library injection vulnerability exists in Microsoft OneNote 16.83 for macOS. A specially crafted library can leverage OneNote’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.
Impact
An attacker could potentially record audio, send emails through Microsoft Outlook, exfiltrate data, and more, using OneNote's permissions; some actions may prompt the user if permission was not already granted.
What the attacker needed
Local access to the machine; ability to copy the app to a controllable location
The fix
Microsoft fixed this issue in Version 16.86 (24060916).
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 macOS app that can be tricked into loading a malicious library (a file with code) because it doesn't check who made the library. An attacker who can place a file on the same computer could get the app to run their code with the app's permissions, which might include access to the microphone or email.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.