CVE Professor
/
All CVEs
CVE-2026-131841

CVE-2026-131841 — 1meril Blog Floating Button (1.4.21) — CWE-89

HIGH CVSS 7.5 CVE.org

The Blog Floating Button plugin for WordPress is vulnerable to time-based SQL Injection via the 'data (array keys)' parameter in all versions up to, and including, 1.4.21 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. The REST route bfb/api/bfb_write_log is registered with a permission_callback of __return_true, making it fully accessible to unauthenticated visitors without any nonce or capability check.

The Blog Floating Button plugin for WordPress is vulnerable to time-based SQL Injection via the 'data (array keys)' parameter in all versions up to, and including, 1.4.21 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. The REST route bfb/api/bfb_write_log is registered with a permission_callback of __return_true, making it fully accessible to unauthenticated visitors without any nonce or capability check.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Time-Based SQL Injection (TBLI) flaw classified under CWE-89 (SQL Injection). It affects the Blog Floating Button plugin for WordPress in versions up to and including 1.4.21.

The core technical failure consists of two compounding issues:
1. Missing Authentication/Authorization: The REST API endpoint bfb/api/bfb_write_log is registered with permission_callback => '__return_true'. In WordPress, this means the endpoint is accessible to unauthenticated users (public internet) without any nonce verification, cookie validation, or capability checks.
2. Insufficient Input Sanitization: The data parameter (specifically its array keys) is passed directly into a SQL query without proper escaping or the use of prepared statements. Because the injection is time-based, the attacker does not need to see the query results directly in the HTTP response; instead, they infer data by measuring the delay in the server's response time.

The CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N confirms that an unauthenticated network attacker can achieve High Confidentiality impact (data exfiltration) with Low Complexity and No User Interaction.

⚡ Attack Chain

1. Discovery & Reconnaissance

  • Plugin Identification: The attacker scans the target WordPress site for the presence of the Blog Floating Button plugin. This can be done by:
  • * Checking the source code for plugin assets (e.g., /wp-content/plugins/blog-floating-button/). * Using tools like wpscan to identify the plugin and its version. * Probing the REST API namespace: GET /wp-json/bfb/v1/ or similar to confirm the plugin is active.
  • Version Verification: Confirming the version is ≤ 1.4.21. If the version is not explicitly exposed, the attacker may attempt the exploit against the known vulnerable endpoint. If the endpoint exists and responds, it is highly likely vulnerable.
  • 2. Exploitation

    The attacker targets the REST endpoint bfb/api/bfb_write_log. The vulnerability lies in the array keys of the data parameter.

    Illustrative PoC (Conceptual):
    Since the exact SQL query structure is not public, the following is a conceptual demonstration of how time-based SQLi is constructed via array keys. The attacker sends a POST request where the key of the JSON object contains the SQL payload.

    # Conceptual Payload Structure
    # The 'data' parameter is an array. The KEY of the array is injected.
    # Example Key: "1' AND SLEEP(5)-- -"
    
    curl -X POST "https://target-site.com/wp-json/bfb/api/bfb_write_log" \
      -H "Content-Type: application/json" \
      -d '{
        "data": {
          "1\' AND SLEEP(5)-- -": "value"
        }
      }'

    How it works:
    1. The plugin receives the JSON.
    2. It iterates over the data array.
    3. It constructs a SQL query like: INSERT INTO bfb_logs (field, value) VALUES ('<KEY>', '<VALUE>').
    4. If the key is 1' AND SLEEP(5)-- -, the resulting SQL becomes:
    INSERT INTO bfb_logs (field, value) VALUES ('1' AND SLEEP(5)-- -', 'value')
    5. If the database is MySQL/MariaDB, SLEEP(5) causes the query to hang for 5 seconds.
    6. The attacker measures the response time. A significant delay (e.g., >5s) compared to a baseline request confirms the injection.

    Data Extraction (Blind SQLi):
    The attacker uses boolean-based time delays to extract data:

    -- Extract database name length
    1' AND IF(LENGTH(DATABASE())=5, SLEEP(5), 0)-- -
    
    -- Extract first character of database name
    1' AND IF(SUBSTRING(DATABASE(),1,1)='a', SLEEP(5), 0)-- -

    3. Post-Exploitation

  • Data Exfiltration: The attacker extracts:
  • * WordPress wp_users table (usernames, password hashes). * wp_options table (site configuration, API keys, secrets). * Any other sensitive data in the database (customer emails, orders, etc.).
  • Credential Harvesting: If password hashes are extracted, they can be cracked offline (e.g., using Hashcat) to gain legitimate access.
  • Lateral Movement: With valid credentials, the attacker can log in to the WordPress admin panel, install malicious plugins, or modify site content.
  • 🌍 Real World Impact

  • Confidentiality (High): The primary impact is the complete compromise of the database. An attacker can read all data stored in the WordPress database, including user credentials, private posts, and any custom data stored in the database.
  • Integrity (None): The CVSS vector indicates no integrity impact. While SQLi can* allow data modification, this specific vulnerability is described as enabling "extraction of sensitive information." However, in practice, if the injection point allows UNION or UPDATE statements, integrity could be compromised. Based strictly on the CVE description, the confirmed impact is data exfiltration.
  • Availability (None): The vulnerability does not directly cause denial of service. While SLEEP() or BENCHMARK() can be used to slow down the server, the primary vector is data extraction, not resource exhaustion.
  • Practical Consequences:

  • Data Breach: Exposure of user PII (Personally Identifiable Information), leading to regulatory fines (GDPR, CCPA).

  • Account Takeover: Compromise of admin and user accounts.

  • Site Defacement/Compromise: Once credentials are obtained, the site can be fully compromised.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade: Update the Blog Floating Button plugin to the latest version (≥ 1.4.22 or the next released version) that fixes the SQL injection and authentication flaw.
  • Check Vendor: Verify the fix with the plugin developer. If no update is available, consider removing the plugin.
  • 2. Workarounds (If Patching is Not Immediately Possible)

  • Disable the Plugin: If the plugin is not critical, deactivate it via the WordPress admin panel or by renaming the plugin directory (/wp-content/plugins/blog-floating-button/ to /wp-content/plugins/blog-floating-button_DISABLED/).
  • WAF Rule (ModSecurity): Block requests to the vulnerable endpoint if the plugin is not needed, or sanitize input.
  • Example ModSecurity Rule (Block Unauthenticated Access to Endpoint):

    SecRule REQUEST_URI "@rx /wp-json/bfb/api/bfb_write_log" \
            "id:100001,phase:1,deny,status:403,msg:'Blocked unauthenticated access to vulnerable BFB endpoint'"

    Note: This blocks all access. If the endpoint is needed for authenticated users, a more complex rule checking for valid WordPress cookies/nonces is required, but given the __return_true flaw, blocking is safest.

  • Restrict Access via .htaccess:
  • # Block direct access to the REST endpoint for unauthenticated users
        RewriteEngine On
        RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
        RewriteRule ^wp-json/bfb/api/bfb_write_log - [F,L]

    3. Detection

  • Web Server Logs: Look for POST requests to /wp-json/bfb/api/bfb_write_log with long response times.
  • * Log Pattern: POST /wp-json/bfb/api/bfb_write_log HTTP/1.1 with response_time > 5s.
  • Database Logs: Enable MySQL slow query log. Look for queries containing SLEEP, BENCHMARK, or IF functions in the bfb_logs table inserts.
  • WordPress Activity Logs: If a security plugin is installed, monitor for unusual REST API calls from unauthenticated IPs.
  • ⚠️ Urgency

  • CVSS Score: 7.5 (HIGH)
  • CISA KEV: No
  • Exploit Complexity: Low (Unauthenticated, no user interaction)
  • Priority: HIGH
Recommendation: 1. Immediate: If the plugin is in use, deactivate it or apply a WAF rule to block the endpoint. 2. Short-term: Update the plugin to the latest version as soon as a patch is available. 3. Ongoing: Audit all WordPress plugins for similar permission_callback => '__return_true' REST endpoints and ensure all SQL queries use prepared statements.

Note: Since this is an unauthenticated vulnerability, it is highly likely to be exploited by automated bots. Do not delay remediation.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="/wp-content/plugins/blog-floating-button"
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (1)
1meril:Blog Floating Button (1.4.21)
Related CVEs
9.9
CVE-2026-45262
FacturaScripts is an open source accounting and invoicing software. Prior to version 2026.2, Core/Where.php::s
9.8
CVE-2026-145040
WWBN AVideo before 29.9.0 contains a blind sql injection vulnerability that allows unauthenticated attackers t
9.3
CVE-2026-136358
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomMedia extension 1.0.0-6.1.5 - The list
9.3
CVE-2026-136369
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2 - Inputs
9.3
CVE-2026-136376
Joomla Extension - joomboost.com - SQL injection in search time filters in JoomRecipe extension 1.0.0-6.9.8 -
9.3
CVE-2026-77432
activity_notification provides integrated user activity notifications for Ruby on Rails. Prior to version 2.7.
9.2
CVE-2026-145153
LangChain4j before 1.5.4-beta11, 1.11.12-beta19, 1.19.4-beta29, and 1.23.0-beta33 contains an injection vulner