Team members can trigger arbitrary code execution in Slack Desktop Apps via HTML Notifications
Slack's desktop clients rendered HTML notifications without sanitising the input, so a team member could send a malicious link that caused code execution on a victim's computer. The issue was fixed by sanitising notification input on the backend and adding context isolation in the desktop clients.
- Triaged in 15 days
- Fixed in 3 months
- Paid in 55 days
- Disclosed after 14 months
Summary by the program
A vulnerability in Slack's desktop clients allowed a user within a Slack team to send a malicious link to a teammate which would cause code to be executed on that victim's local computer. The issue hinged on a special type of Slack notification called HTML notifications. We resolved the issue by sanitizing the input to these notifications before rendering and by adding context isolation throughout our Desktop clients. The sanitization portion of this fix is performed on Slack's backend and applies to all Slack users; our Desktop users need not take any action to be protected from this vulnerability.
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 desktop client rendered HTML notifications without sanitising the input, allowing injected markup to execute code in the notification context.
Impact
A user in the same Slack team could cause arbitrary code execution on a teammate's local computer by sending a malicious link, though the fix now protects all desktop users without action.
What the attacker needed
Membership in the same Slack team; victim receives a notification
The fix
The issue was fixed by sanitising HTML notification input on Slack's backend and adding context isolation throughout the desktop clients.
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.
Slack desktop apps show pop-up notifications when someone sends a message. The app was putting the message content into those pop-ups without cleaning it first, so a crafted message could make the app run harmful code on the recipient's machine. The company fixed it by cleaning the content before display and by separating the notification from the rest of the app.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.