# Persistent XSS via filename in projects

Stored XSS in Nextcloud Talk projects tab: a shared filename containing an img onerror payload is echoed unencoded on hover, executing in the victim's session.

- Payout: $150
- Severity: low
- Program: Nextcloud
- Found by: foobar7
- Disclosed: 2020-03-01
- CVE: CVE-2019-15619
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/662204
- Library page: https://bugbountylibrary.com/r/h1%3A662204
- Tags: area:web domain:web impact:ato impact:data-leak impact:privesc kind:bounty platform:hackerone sev:low tech:php vuln:xss

**Target:** Nextcloud Talk/Spreed 6.0.3 projects tab file tooltip
**Root cause:** The filename is echoed into the projects tab tooltip HTML without encoding when hovered, so a crafted filename becomes executable markup.
**Steps:**
1. As attacker, create a file named `test'"><img src=x onerror=alert(document.location)>.txt` and share it with the victim.
2. Create a new Talk conversation, invite the victim as participant.
3. Add a project: Projects -> Add a project -> Link to a file -> select the crafted file.
4. As victim, open the conversation -> projects -> hover over the file symbol to trigger the payload.
**Exploitation:** Attacker with a low-privilege account shares a maliciously named file, links it to a Talk conversation project, and invites the victim; when the victim hovers the file icon in the projects tab, the unencoded filename executes JS in their session, allowing data theft or arbitrary requests as the victim (account takeover, admin full access if victim is admin).
**Escalation:** If the victim is an administrator, the XSS yields full access to the application and files.
**Insight:** Tooltip/hover UI elements that render filenames are a common unencoded sink; test stored filenames with quote-breaking payloads in secondary views like project/file-link panels, not just the main file list.

## Proof of concept (copied exactly from the original report)

**Malicious filename payload for stored XSS**

```
create a file named `test'"><img src=x onerror=alert(document.location)>.txt`. Share the file with the victim.
```

