CVE-2019-7587

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in Bo-blog Wind CMS allows attackers to execute arbitrary SQL commands through the comID parameter in admin.php/comments/batchdel/. It affects all Bo-blog Wind installations up to version 1.6.0-r, potentially compromising the entire database.

💻 Affected Systems

Products:
  • Bo-blog Wind CMS
Versions: All versions up to and including 1.6.0-r
Operating Systems: All platforms running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires admin.php access, but SQL injection can be exploited through various attack vectors.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to RCE chaining.

🟠

Likely Case

Unauthorized data access, modification, or deletion of blog content, user accounts, and configuration data.

🟢

If Mitigated

Limited impact if proper input validation and parameterized queries are implemented, restricting SQL execution scope.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires access to admin.php endpoint but SQL injection payloads are well-documented and easy to weaponize.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 1.6.0-r

Vendor Advisory: https://c3tsec.wordpress.com/2019/01/12/sql-injection-in-bo-blog-wind-cms/

Restart Required: No

Instructions:

1. Upgrade to latest Bo-blog Wind version. 2. Apply vendor patches if available. 3. Replace vulnerable mode/admin.mode.php file with patched version.

🔧 Temporary Workarounds

Input Validation Filter

all

Add input validation to sanitize comID parameter before processing

Modify mode/admin.mode.php to add: if(!is_numeric($_POST['comID'])) { die('Invalid input'); }

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Add WAF rule: SecRule ARGS:comID "@detectSQLi" "id:1001,phase:2,deny,status:403"

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries in the delBlockedBatch function
  • Restrict access to admin.php endpoint using IP whitelisting or additional authentication

🔍 How to Verify

Check if Vulnerable:

Test admin.php/comments/batchdel/ endpoint with SQL injection payloads like ' OR '1'='1 in comID parameter

Check Version:

Check Bo-blog Wind version in configuration files or admin panel

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return error messages or are properly sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin.php
  • Suspicious comID parameter values in web server logs

Network Indicators:

  • SQL keywords in HTTP POST requests to admin.php
  • Unusual database connection patterns from web server

SIEM Query:

source="web_server.log" AND uri="/admin.php/comments/batchdel/" AND (comID="*OR*" OR comID="*UNION*" OR comID="*SELECT*")

🔗 References

📤 Share & Export