CVE-2017-18346

9.8 CRITICAL

📋 TL;DR

This is a critical SQL injection vulnerability in CMS Web-Gooroo that allows remote attackers to execute arbitrary SQL commands via the wbg_login parameter. Attackers can potentially gain unauthorized access, steal data, or take control of affected systems. Any organization running vulnerable versions of CMS Web-Gooroo is affected.

💻 Affected Systems

Products:
  • CMS Web-Gooroo
Versions: All versions through 2013-01-19
Operating Systems: Any OS running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: The vulnerability exists in the authorization component, affecting authentication mechanisms.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete compromise of the database server leading to data theft, data manipulation, authentication bypass, and potential remote code execution on the underlying server.

🟠

Likely Case

Database compromise allowing attackers to extract sensitive information, modify data, or gain administrative access to the CMS.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and network segmentation in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: CONFIRMED
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploit code is publicly available and requires minimal technical skill to execute.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Not available

Vendor Advisory: Not available

Restart Required: No

Instructions:

No official patch exists. Consider migrating to a supported CMS or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for the wbg_login parameter

Modify /wbg/core/_includes/authorization.inc.php to use prepared statements

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules

🧯 If You Can't Patch

  • Isolate the vulnerable system behind a firewall with strict access controls
  • Implement network segmentation to limit database server exposure

🔍 How to Verify

Check if Vulnerable:

Check if CMS Web-Gooroo version is 2013-01-19 or earlier by examining installation files or database version tables

Check Version:

Check the CMS installation directory for version files or examine the database for version information

Verify Fix Applied:

Test the login functionality with SQL injection payloads to ensure they are properly rejected

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts with SQL syntax
  • Unexpected database errors in application logs

Network Indicators:

  • SQL injection patterns in HTTP requests to authorization endpoints
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND (uri="/wbg/core/_includes/authorization.inc.php" OR uri LIKE "%authorization%") AND (message LIKE "%wbg_login%" AND (message LIKE "%' OR '%" OR message LIKE "%' UNION %" OR message LIKE "%' SELECT %"))

🔗 References

📤 Share & Export