Skip to content
XSS Write-up Intermediate

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.

cyllective Follow

Published on cyllective.com

13. May 2024, #web #cve #collabora

cyllective AG, on cyllective.com

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

  1. Create or edit a document with a cross-reference whose referenced text contains malicious HTML/script.
  2. Open the document in Collabora Online and hover over the cross-reference.
  3. A websocket message of type 'generaltooltip' is sent containing the referenced text.
  4. The client-side handler calls showDocumentTooltip, which sets the tooltip content via jQuery/Leaflet.
  5. 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.

More by cyllective

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.