Loading advisory.
Loading advisory.
copyparty vulnerable to reflected cross-site scripting via hc parameter
The application contains a reflected cross-site scripting via URL-parameter ?hc=...
Published 2023-07-21 20:20 UTC · Modified 2025-02-14 05:29 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| copyparty | PyPI | < 1.8.6 versions 0.10.0, 0.10.1, 0.10.10, 0.10.11, 0.10.12, 0.10.13, 0.10.14, 0.10.15, 0.10.16, 0.10.17, 0.10.18, 0.10.19, 0.10.2, 0.10.20, 0.10.21, 0.10.22, 0.10.3, 0.10.4, 0.10.5, 0.10.6 and 209 more | 1.8.6 | pip install --upgrade 'copyparty>=1.8.6' |
The application contains a reflected cross-site scripting via URL-parameter ?hc=...
A reflected cross-site scripting (XSS) vulnerability exists in the web interface of the application that could allow an attacker to execute malicious javascript code by tricking users into accessing a malicious link.
The worst-case outcome of this is being able to move or delete existing files on the server, or upload new files, using the account of the person who clicks the malicious link.
It is recommended to change the passwords of your copyparty accounts, unless you have inspected your logs and found no trace of attacks.
if copyparty is running behind a reverse proxy, you can check the access-logs for traces of attacks, by grepping for URLs containing ?hc= with < somewhere in its value, for example using the following command:
nginx:
(gzip -dc access.log*.gz; cat access.log) | sed -r 's/" [0-9]+ .*//' | grep -E '[?&](hc|pw)=.*[<>]'http://127.0.0.1:3923/?hc="><script>alert(1);</script>
http://127.0.0.1:3923/?pw=<script>alert(1);</script>
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
No EPSS history yet. Either the CVE has no score or the scores have not been fetched.