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

CVE-2024-51672

CVE-2024-51672 SQL Injection in Wpdeveloper
📅 PUBLISHED: 2024-11-04 14:15 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.56%
👁️
0.56% probability
14.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: Bangladesh License: Freemium
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 7.6
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: H Integrity High
A: H Availability High
7.6
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-51672 is a critical SQL Injection vulnerability discovered in the WordPress plugin BetterLinks by WPDeveloper. This flaw allows an unauthenticated attacker to inject arbitrary SQL commands into the database, potentially leading to complete data exfiltration, modification, or deletion. The vulnerability affects all versions up to and including 2.1.7. As of this report, no official patch has been released, and no public proof-of-concept (PoC) code is available. The CVSS score of 7.6 (High) reflects the ease of exploitation and severe impact on confidentiality, integrity, and availability.

⚡ 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 resides in a WordPress plugin ecosystem. The plugin is distributed via the official WordPress plugin repository and third-party marketplaces. Users who have installed BetterLinks from any source are at risk. The lack of a patch means that supply chain security is compromised until the vendor releases an update. Organizations should treat this as a zero-day risk and consider removing the plugin or applying virtual patching via a Web Application Firewall (WAF).

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Base Score: 7.6 (High)
  • Attack Vector: Network (AV:N) – Exploitable remotely.
  • Attack Complexity: Low (AC:L) – No special conditions required.
  • Privileges Required: None (PR:N) – No authentication needed.
  • User Interaction: None (UI:N) – No user action required.
  • Scope: Unchanged (S:U) – Vulnerability does not affect other components.
  • Confidentiality Impact: High (C:H) – Full database read access.
  • Integrity Impact: High (I:H) – Ability to modify or delete data.
  • Availability Impact: High (A:H) – Potential to disrupt database operations.

Threat Level: Critical. The combination of remote, unauthenticated exploitation with high impact makes this a top priority for remediation.

Deep Dive & Mechanics

The vulnerability stems from improper neutralization of special elements used in SQL commands within the BetterLinks plugin. The plugin likely fails to sanitize user-supplied input before incorporating it into SQL queries. This is a classic SQL injection flaw (CWE-89).

Attack Vector: The injection point is likely in a parameter passed via HTTP GET or POST requests to the plugin’s AJAX endpoints or shortcode handlers. An attacker can craft a malicious payload that breaks out of the intended SQL query structure and executes arbitrary SQL commands.

Impact: Successful exploitation allows an attacker to:

  • Extract sensitive data (user credentials, session tokens, personal information).
  • Modify or delete database tables.
  • Potentially gain administrative access to the WordPress site.
  • Use the database as a pivot point for further attacks.

Example (Hypothetical): If the plugin uses a parameter like id in a query such as SELECT * FROM links WHERE id = '$id', an attacker could input 1' OR '1'='1 to retrieve all records.

Vulnerable vs. Patched Code

Since no patch is available, we can only analyze the vulnerable code pattern. The vulnerable code likely resembles:

// Vulnerable code (hypothetical)
$id = $_GET['id'];
$query = "SELECT * FROM wp_betterlinks WHERE id = '$id'";
$result = $wpdb->get_results($query);

A patched version would use prepared statements or parameterized queries:

// Patched code (hypothetical)
$id = $_GET['id'];
$query = $wpdb->prepare("SELECT * FROM wp_betterlinks WHERE id = %d", $id);
$result = $wpdb->get_results($query);

The key difference is the use of $wpdb->prepare() which safely escapes the input.

Exploitation & Lab Setup

Red Team (Offensive)

Prerequisites:

  • A WordPress instance with BetterLinks <= 2.1.7 installed and activated.
  • Knowledge of the injection point (e.g., a vulnerable AJAX action or shortcode).

Exploitation Steps:

  1. Identify the vulnerable parameter (e.g., id, link_id, slug).
  2. Craft a SQL injection payload. Example for time-based blind injection:
    http://target.com/wp-admin/admin-ajax.php?action=betterlinks_action&id=1 AND SLEEP(5)--
    
  3. If the response is delayed by 5 seconds, the injection is confirmed.
  4. Extract data using UNION-based or error-based techniques. Example:
    id=1 UNION SELECT user_login,user_pass FROM wp_users--
    

Note: No public exploit code is available. The above is a hypothetical example.

Blue Team (Defensive)

Detection:

  • Monitor for SQL injection patterns in web logs (e.g., UNION, SLEEP, OR 1=1).
  • Use a WAF to block suspicious requests containing SQL keywords.
  • Enable database query logging to identify anomalous queries.

Mitigation:

  • Immediately disable or remove the BetterLinks plugin until a patch is released.
  • Apply virtual patching via WAF rules that block requests to known vulnerable endpoints.
  • Restrict database user permissions to least privilege.

Indicators of Compromise (IOCs)

  • Network IOCs:

    • HTTP requests containing SQL keywords (UNION, SELECT, SLEEP, BENCHMARK) in parameters related to BetterLinks.
    • Unusual database error messages in HTTP responses (e.g., You have an error in your SQL syntax).
  • Host IOCs:

    • Unexpected entries in the wp_betterlinks table or other WordPress tables.
    • New administrative user accounts created via SQL injection.
    • Modified plugin files (though unlikely if only database is targeted).
  • Log IOCs:

    • Web server logs showing repeated requests to /wp-admin/admin-ajax.php with action=betterlinks_* and suspicious parameters.
    • Database logs showing queries with injected SQL syntax.

Detection Engineering

YARA Rule

rule Detect_Betterlinks_SQLi_Attempt {
    meta:
        description = "Detects SQL injection attempts targeting BetterLinks plugin"
        author = "Valters IT"
        date = "2024-10-27"
        reference = "CVE-2024-51672"
    strings:
        $s1 = "betterlinks" nocase
        $s2 = "UNION" nocase
        $s3 = "SELECT" nocase
        $s4 = "SLEEP" nocase
        $s5 = "BENCHMARK" nocase
    condition:
        all of ($s1, $s2, $s3) or all of ($s1, $s4) or all of ($s1, $s5)
}

Sigma Rule

title: SQL Injection Attempt Against BetterLinks Plugin
id: 12345678-1234-1234-1234-123456789abc
status: experimental
description: Detects SQL injection attempts targeting the BetterLinks WordPress plugin
author: Valters IT
date: 2024/10/27
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2024-51672
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains:
            - 'betterlinks'
            - 'UNION'
            - 'SELECT'
            - 'SLEEP'
            - 'BENCHMARK'
    condition: selection
falsepositives:
    - Legitimate use of the word "betterlinks" in other contexts
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-51672 SQL Injection Attempt Against BetterLinks"; flow:to_server,established; content:"betterlinks"; nocase; http_uri; pcre:"/(UNION|SELECT|SLEEP|BENCHMARK)/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin: Deactivate and delete BetterLinks from all WordPress installations until a patch is released.
  2. Apply virtual patching: Use a WAF to block requests containing SQL injection patterns targeting BetterLinks endpoints.
  3. Audit database: Check for unauthorized changes or data exfiltration.

Long-term Actions: 4. Monitor vendor updates: Subscribe to WPDeveloper’s security advisories for a patch. 5. Implement secure coding practices: If you develop plugins, always use prepared statements or parameterized queries. 6. Regular security scans: Use tools like WPScan to identify vulnerable plugins.

Workaround: If the plugin is critical, consider replacing it with an alternative link management plugin that is actively maintained and patched.


Valters IT
Securing Digital Frontiers

👁️ 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:"BetterLinks"
http.html:"wp-content/plugins/betterlinks"

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