CVE-2025-6718

8.8 HIGH

📋 TL;DR

The B1.lt WordPress plugin has an SQL injection vulnerability that allows authenticated attackers with Subscriber-level access or higher to execute arbitrary SQL commands. This affects all WordPress sites using B1.lt plugin versions up to 2.2.56. Attackers could potentially read, modify, or delete database content.

💻 Affected Systems

Products:
  • B1.lt WordPress plugin
Versions: All versions up to and including 2.2.56
Operating Systems: All operating systems running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with B1.lt plugin enabled and at least one authenticated user (Subscriber role or higher).

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, privilege escalation, site takeover, or ransomware deployment.

🟠

Likely Case

Data exfiltration of sensitive information (user credentials, personal data, payment info) and potential privilege escalation to administrator.

🟢

If Mitigated

Limited impact if proper network segmentation, database permissions, and monitoring are in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authenticated access but only at Subscriber level, which is trivial to obtain on many WordPress sites.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.2.57 or later

Vendor Advisory: https://wordpress.org/plugins/b1-accounting/

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find B1.lt plugin and click 'Update Now'. 4. Verify version is 2.2.57 or higher.

🔧 Temporary Workarounds

Disable vulnerable AJAX endpoint

all

Remove the vulnerable b1_run_query AJAX action handler

Add to theme's functions.php or custom plugin: remove_action('wp_ajax_b1_run_query', 'b1_run_query_callback'); remove_action('wp_ajax_nopriv_b1_run_query', 'b1_run_query_callback');

Temporarily disable plugin

linux

Deactivate B1.lt plugin until patched

wp plugin deactivate b1-accounting

🧯 If You Can't Patch

  • Implement strict network access controls to limit WordPress admin access to trusted IPs only.
  • Enable WordPress security plugins with SQL injection detection and implement database user privilege separation.

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for B1.lt plugin version 2.2.56 or lower.

Check Version:

wp plugin get b1-accounting --field=version

Verify Fix Applied:

Confirm B1.lt plugin version is 2.2.57 or higher in WordPress admin panel.

📡 Detection & Monitoring

Log Indicators:

  • Unusual database queries in WordPress or MySQL logs
  • Multiple failed login attempts followed by successful Subscriber login
  • AJAX requests to /wp-admin/admin-ajax.php with action=b1_run_query

Network Indicators:

  • POST requests to /wp-admin/admin-ajax.php containing SQL syntax in parameters
  • Unusual database connection patterns from WordPress server

SIEM Query:

source="wordpress.log" AND "action=b1_run_query" OR source="mysql.log" AND "SELECT|INSERT|UPDATE|DELETE|UNION" FROM WordPress IP

🔗 References

📤 Share & Export