Stored XSS in collabora via user name
A stored cross-site scripting vulnerability existed in Collabora because a user's display name was rendered without sanitisation when they joined a shared document. An attacker could set a malicious name and wait for a victim to open the same document, causing script execution in the victim's browser.
Originally disclosed on HackerOne
- Triaged in 34 hours
- Fixed in 7 days
- Disclosed after 23 days
Affected: collabora and nextcloud
Ubuntu 18.04.5 LTS Nextcloud 19.0.1 snap version collabora (CODE)
The name of the user is displayed when him joins to edit the document allowing the attacker trigger xss.
Impact
- Set the name of the attacker account to <img src=a onerror=alert(window.parent.location)>
- Create a new document → share the document with admin or another victim → the document will appear automatically in the files of the victim as shared
- The attacker opens the document and waits until the victim also opens the document when opening it the payload is executed
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
Impact
An attacker could execute JavaScript in the victim's browser when the victim opened a shared document.
What the attacker needed
A Nextcloud account; ability to share a document; victim opens the shared document
How it was found
- Set the attacker account's display name to a malicious value containing an image tag with an error handler.
- Create a new document and share it with the victim.
- Open the document as the attacker and wait for the victim to open it.
- When the victim opens the document, the payload executes.
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.
When you edit a document together with someone else, the software shows their name so you know who is there. This report says that name was not cleaned before being shown, so someone could put code in their name instead of plain text. When another person opened the same document, that code ran in their browser, which is called cross-site scripting.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.