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

Published Jul 25, 2023
·
Updated

Summary The application contains a reflected cross-site scripting via URL-parameter ?k304=... and ?setck=...

Details 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.

Checking for exposure 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: bash (gzip -dc access.log.gz; cat access.log) | sed -r 's/" [0-9]+ .//' | grep -iE '%0[da]%0[da]%0[da]%0[da]|?&=.[<>]' the above commands also check for attacks against GHSA-cw7j-v52w-fp5r

PoC https://localhost:3923/?k304=y%0D%0A%0D%0A%3Cimg+src%3Dcopyparty+onerror%3Dalert(1)%3E

Other sources

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.

MITRE

Credit

Vartamtezidis Theodoros

Affected Software

3 affected componentsFixes available
pip/copyparty<=1.8.6
1.8.7
Copyparty Project Copyparty<1.8.7
9001 Copyparty<1.8.7

Event History

Jul 25, 2023
Advisory Published
via GitHub·05:49 PM
CVE Published
via MITRE·09:06 PM
Data Sourced
via MITRE·09:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 28, 2023
Exploit Published
12:00 AM
Known Exploited
12:00 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-38501?

The severity of CVE-2023-38501 is classified as high due to its potential to exploit reflected cross-site scripting vulnerabilities.

2

How do I fix CVE-2023-38501?

To fix CVE-2023-38501, update the Copyparty application to version 1.8.7 or later, where the vulnerability has been addressed.

3

What is reflected cross-site scripting in CVE-2023-38501?

Reflected cross-site scripting in CVE-2023-38501 allows an attacker to inject malicious scripts via URL parameters, affecting users interacting with compromised links.

4

Which versions of Copyparty are affected by CVE-2023-38501?

CVE-2023-38501 affects versions of Copyparty prior to 1.8.7.

5

How can an attacker exploit CVE-2023-38501?

An attacker can exploit CVE-2023-38501 by crafting a malicious URL with specific parameters that, when clicked by a user, execute unwanted scripts in their browser.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203