Microsoft Office for Mac cannot properly disable XLM macros
Microsoft Office for Mac, when set to 'Disable all macros without notification', still executes XLM macros embedded in SYLK files without prompting the user. An attacker could convince a user to open a crafted file and execute arbitrary code with the user's privileges.
kb.cert.org
Published on kb.cert.org
The Microsoft Office for Mac option "Disable all macros without notification" enables XLM macros without prompting, which can allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable system.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a logic flaw in how Office for Mac applies the 'Disable all macros without notification' setting to XLM macros in SYLK files, causing them to run instead of being blocked.
Impact
A remote, unauthenticated attacker may be able to execute arbitrary code with the privileges of the user running Excel by convincing them to open a specially crafted file.
What the attacker needed
Office for Mac with macros disabled; victim opens a crafted SYLK file
The fix
The issue was fixed in Office 2016 for Mac build 16.16.16 and Office 2019 for Mac build 16.31, and blocking SYLK files at email and web gateways is recommended as a mitigation.
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 write-up has not been written yet. The Original tab links to the source.
Macros are small programs that can be embedded in documents. Normally Office warns you before running them, but here a setting meant to block all macros actually let a special old type run silently. So opening a malicious file could let an attacker run their own code on your Mac.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.