Persistent XSS via filename in projects
A file name was echoed without encoding when hovering over it in the projects tab of a conversation, leading to persistent XSS. An attacker with a low-privilege account could take over the account of a victim who interacted with the project.
- Triaged in 28 hours
- Fixed in 37 days
- Paid in 37 days
- Disclosed after 7 months
CVSS
Medium 5.4 CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Description
Affected: Talk / Spreed 6.0.3
The name of a file is echoed without encoding when moving the mouse onto it in the projects tab of a conversation, leading to persistent XSS.
A successful attack requires an account with low-level permissions as well as a usual amount of user interaction (interacting with the project of a talk in a usual manner).
Successful exploitation allows the attacker to take over the account of the attacked user. If the attacked user is an administrator, this would allow a user full access to the application & files.
POC
To place the payload as the attacker:
- create a file named
test'"><img src=x onerror=alert(document.location)>.txt. Share the file with the victim. - Create a new conversation: Talk -> new conversation -> enter a name.
- Invite the victim: Participants -> Add participant -> select the user
- Add a project: Projects -> Add a project -> Link to a file -> select the file from step 1.
To trigger the payload as the victim:
- open the conversation -> projects -> hover over the file symbol to trigger the payload.
Impact
Successful exploitation allows an attacker to read any data the attacked user has access to, or to perform arbitrary requests the user can perform.
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 application inserted the file name into the page without HTML-encoding it, so markup in the name was interpreted by the browser.
Impact
Successful exploitation could allow an attacker to read any data the victim can access or perform arbitrary requests as the victim, and if the victim is an administrator, full access to the application and files.
What the attacker needed
A low-privilege account; victim hovers over the file symbol
How it was found
- Create a file with a malicious name and share it with the victim.
- Create a new conversation and give it a name.
- Invite the victim to the conversation.
- Add a project and link it to the malicious file.
- As the victim, open the conversation, go to projects, and hover over the file symbol.
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 a web page shows text from a user without cleaning it first, a malicious file name can contain code that runs in the victim's browser. This is called cross-site scripting (XSS). Here, the file name was shown as-is when hovering, so the attacker's code ran and could act as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.