CVE-2023-38501 copyparty vulnerable to reflected cross-site scripting via k304 parameter

Medium 6.3 Published Updated

Attackers can execute scripts in victim browsers via malicious links, allowing file manipulation or account takeover on copyparty servers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-38501?

CVE-2023-38501 is a medium-severity cross-site scripting vulnerability in 9001 copyparty, published on 25 Jul 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

copyparty is file server software. Prior to version 1.8.7, the application contains a reflected cross-site scripting via URL-parameter `?k304=...` and `?setck=...`. 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 one's copyparty accounts, unless one have inspected one's logs and found no trace of attacks. Version 1.8.7 contains a patch for the issue.

Weakness: CWE-79

Which versions are affected by CVE-2023-38501?

3 open source packages ship an affected version, including copyparty. It affects 1 product.

PackageAffectedFixed in
copyparty PyPIAll versions1.8.7
copyparty PyPIAll versions1.8.7
copyparty PyPIAll versions1.8.7

Products include 9001 Copyparty.

How do I fix CVE-2023-38501?

Upgrade copyparty to 1.8.7 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-38501 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-38501 exists.

Public exploit code: 1 Exploit-DB entry and 1 Nuclei template.

Sources

Also known as GHSA-f54q-j679-p9hh, PYSEC-2023-132.

Is CVE-2023-38501 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free