Collabora Online Stored XSS (CVE-2024-29182)
A stored cross-site scripting vulnerability existed in Collabora Online's cross-reference tooltip feature, where referenced document content was not sanitised before being rendered as HTML. An attacker could inject malicious script into a document that would execute when a victim hovered over a cross-reference.
Published on cyllective.com
13. May 2024, #web #cve #collabora
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
The tooltip content was passed to jQuery's tooltip plugin, which ultimately assigned it to innerHTML without sanitisation.
Impact
An attacker could execute arbitrary JavaScript in the context of a victim's browser session when the victim hovers over a malicious cross-reference, potentially leading to data theft or other actions on behalf of the victim.
What the attacker needed
Ability to create or edit a document with cross-references; victim opens the document and hovers over the reference
The fix
The vulnerability was fixed by the vendor in released versions.
How it was found
- Create or edit a document with a cross-reference whose referenced text contains malicious HTML/script.
- Open the document in Collabora Online and hover over the cross-reference.
- A websocket message of type 'generaltooltip' is sent containing the referenced text.
- The client-side handler calls showDocumentTooltip, which sets the tooltip content via jQuery/Leaflet.
- The content is assigned to innerHTML, causing the script to execute.
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.
When you hover over a cross-reference in a Collabora Online document, a small pop-up (tooltip) shows the referenced text. The software was putting that text directly into the web page as if it were trusted HTML, so if the text contained a script, the browser would run it. This means an attacker who can edit a document could make a victim's browser execute code just by hovering over a reference.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.