☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ 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-12473

CVE-2024-12473 SQL Injection in Ai scribe
📅 PUBLISHED: 2025-01-10 03:21 UTC 🔄 UPDATED: 2026-08-12 14:53 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.43%
👁️
0.43% probability
10.9× 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 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-12473 is a critical SQL Injection vulnerability discovered in the AI Scribe – SEO AI Writer WordPress plugin (versions up to and including 2.5). The flaw resides in the article_builder_generate_data shortcode, where the template_id parameter is insufficiently sanitized and the SQL query is not properly prepared. This allows authenticated attackers with Contributor-level access or higher to inject arbitrary SQL commands into existing queries, potentially leading to the extraction of sensitive information from the WordPress database, such as user credentials, session tokens, and private content.

As a WordPress ecosystem vulnerability, this issue directly impacts sites using the AI Scribe plugin. The plugin’s widespread use for AI-driven content generation makes it a high-value target for attackers seeking to compromise multiple sites. The lack of a patch at the time of analysis elevates the risk, requiring immediate defensive measures.

⚡ 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 and does not involve NPM, PyPI, Go, or Ruby packages. However, the plugin may be distributed via the official WordPress plugin repository or third-party marketplaces. Administrators should verify the integrity of their plugin installations and monitor for unauthorized modifications.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.5 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor-level)
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: None
  • Availability Impact: None

Threat Level: Medium. While the CVSS score is moderate, the potential for data exfiltration and the authenticated nature of the attack (requiring only Contributor-level access) make it a significant threat in multi-user WordPress environments.

Deep Dive & Mechanics

The vulnerability is a classic SQL Injection (CWE-89) in the article_builder_generate_data shortcode handler. The plugin fails to properly escape the template_id parameter and does not use prepared statements when constructing the SQL query. An attacker with Contributor-level access can craft a malicious template_id value that, when processed by the shortcode, appends additional SQL commands to the existing query.

Technical Flow:

  1. The shortcode [article_builder_generate_data template_id="X"] is processed by the plugin.
  2. The template_id value is directly concatenated into an SQL query without parameterization.
  3. An attacker can inject a payload like 1 UNION SELECT user_login, user_pass FROM wp_users-- to extract user credentials.
  4. The injected query executes with the same database privileges as the WordPress application, typically allowing read access to all tables.

Impact: Successful exploitation can lead to:

  • Extraction of user credentials (hashed passwords).
  • Access to session tokens and cookies.
  • Disclosure of private posts, pages, and media.
  • Potential privilege escalation if combined with other vulnerabilities.

Vulnerable vs. Patched Code

Since no patch is available, the vulnerable code pattern is described below. A patched version would use prepared statements or proper escaping.

Vulnerable Code (Conceptual):

$template_id = $_GET['template_id'];
$query = "SELECT * FROM wp_ai_scribe_templates WHERE id = $template_id";
$result = $wpdb->get_results($query);

Patched Code (Conceptual):

$template_id = intval($_GET['template_id']); // or use $wpdb->prepare
$query = $wpdb->prepare("SELECT * FROM wp_ai_scribe_templates WHERE id = %d", $template_id);
$result = $wpdb->get_results($query);

Exploitation & Lab Setup

Red Team (Exploitation)

Prerequisites:

  • WordPress site with AI Scribe plugin <= 2.5.
  • Authenticated user with Contributor-level access or higher.
  • Knowledge of the shortcode [article_builder_generate_data].

Exploitation Steps:

  1. Log in as a Contributor.
  2. Craft a malicious shortcode payload:
    [article_builder_generate_data template_id="1 UNION SELECT user_login, user_pass FROM wp_users--"]
    
  3. Embed the shortcode in a post or page and preview/publish it.
  4. The injected SQL will execute, and the result may be displayed in the response or stored in the database.

Example Payload for Data Exfiltration:

1 UNION SELECT user_login, user_pass, user_email FROM wp_users WHERE 1=1--

Note: Since no public exploit code is available, this is a conceptual demonstration. Actual exploitation may require adjusting the query to match the plugin’s database schema.

Blue Team (Detection & Defense)

Detection:

  • Monitor for shortcode usage with suspicious template_id values containing SQL keywords (UNION, SELECT, FROM, etc.).
  • Enable WordPress audit logging to track shortcode execution.
  • Use Web Application Firewall (WAF) rules to block SQL injection patterns in shortcode parameters.

Defense:

  • Immediately disable the AI Scribe plugin until a patch is released.
  • Restrict Contributor-level access to trusted users only.
  • Implement input validation and parameterized queries in custom code.
  • Use a WordPress security plugin to monitor for malicious activity.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests containing template_id with SQL injection patterns (e.g., UNION, SELECT, FROM).
    • Unusual database query patterns in logs (e.g., multiple UNION queries).
  • File IOCs:
    • Modified plugin files (check file integrity via checksums).
    • Suspicious shortcode entries in wp_posts or wp_postmeta tables.
  • Log IOCs:
    • WordPress debug log entries showing SQL errors with injected syntax.
    • Database query logs with unexpected UNION or OR 1=1 clauses.

Detection Engineering

YARA Rule

rule CVE_2024_12473_SQLi_Shortcode {
    meta:
        description = "Detects SQL injection attempts targeting AI Scribe template_id parameter"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-12473"
    strings:
        $s1 = "template_id=" ascii nocase
        $s2 = "UNION" ascii nocase
        $s3 = "SELECT" ascii nocase
        $s4 = "FROM" ascii nocase
        $s5 = "wp_users" ascii nocase
    condition:
        all of ($s1, $s2, $s3, $s4) or ($s1 and $s5)
}

Sigma Rule

title: CVE-2024-12473 SQL Injection via AI Scribe Shortcode
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection attempts in WordPress shortcode parameter template_id
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains: 
            - "template_id="
        cs-uri-query|contains|wordlist:
            - "UNION"
            - "SELECT"
            - "FROM"
            - "OR 1=1"
            - "AND 1=1"
    condition: selection
falsepositives:
    - Legitimate use of template IDs containing similar patterns (unlikely)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-12473 SQL Injection Attempt - AI Scribe Shortcode"; flow:to_server,established; content:"template_id="; http_uri; pcre:"/(UNION|SELECT|FROM|OR\s+1=1|AND\s+1=1)/Ri"; classtype:web-application-attack; sid:10000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the AI Scribe plugin until an official patch is released.
  2. Review user roles and downgrade any unnecessary Contributor-level accounts.
  3. Check for signs of compromise in the database (e.g., unexpected user accounts, modified posts).

Long-term Fixes:

  • Apply the official patch once released by the vendor.
  • Implement a Web Application Firewall (WAF) with SQL injection rules.
  • Use a WordPress security plugin to monitor file integrity and block malicious requests.
  • Educate users with Contributor access about the risks of shortcode injection.

Workaround:

  • If the plugin cannot be disabled, modify the shortcode handler to use intval() or $wpdb->prepare() for the template_id parameter (requires custom development).

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:"AI Scribe"
http.html:"wp-content/plugins/ai-scribe"

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