CVE-2026-131841 — 1meril Blog Floating Button (1.4.21) — CWE-89
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.
🎯 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 Buttonplugin. This can be done by:
* Checking the source code for plugin assets (e.g., - 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.
/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.
2. Exploitation
The attacker targets the REST endpointbfb/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
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.).
🌍 Real World Impact
UNION or UPDATE statements, integrity could be compromised. Based strictly on the CVE description, the confirmed impact is data exfiltration.
SLEEP() or BENCHMARK() can be used to slow down the server, the primary vector is data extraction, not resource exhaustion.Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds (If Patching is Not Immediately Possible)
/wp-content/plugins/blog-floating-button/ to /wp-content/plugins/blog-floating-button_DISABLED/).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.
# 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
/wp-json/bfb/api/bfb_write_log with long response times.POST /wp-json/bfb/api/bfb_write_log HTTP/1.1 with response_time > 5s.
SLEEP, BENCHMARK, or IF functions in the bfb_logs table inserts.⚠️ Urgency
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]
FOFA Query