Back to the (Clip)board with Microsoft Whiteboard and Excalidraw in Meta (CVE-2023-26140)
Excalidraw, a third-party whiteboard used in Meta Messenger, allowed a pasted element's link field to become an anchor href, so a poisoned clipboard could deliver a javascript: URL. In Messenger the whiteboard was not collaborative, so exploitation required the victim to paste attacker-controlled clipboard content themselves.
Published on spaceraccoon.dev
It’s always interesting to find edge cases in strong appsec programmes like Meta and Google that have generally solved entire bug classes like cross-site scripting because it highlights potential blind spots in appsec strategy. In particular, I’m still fascinated by the Clipboard API that seems to evade typical static…
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 the renderer copied an element's link value straight into an anchor href without validating the URL scheme, and clipboard paste data was trusted as a source.
What the attacker needed
Victim copies from an attacker page; victim pastes into the whiteboard; victim clicks the link
How it was found
- Open the whiteboard and log paste events in the developer console to capture a normal serialised clipboard payload.
- Modify the captured payload so the element's link value holds a javascript: URL.
- Serve a page whose copy button writes the poisoned payload to the clipboard.
- Get the victim to copy from that page and paste into the whiteboard, then click the link.
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.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.