CVE-2017-17870
📋 TL;DR
This vulnerability allows attackers to execute arbitrary SQL commands through the JBuildozer extension in Joomla! via the appid parameter. It affects Joomla! sites using JBuildozer extension version 1.4.1. Successful exploitation could lead to data theft, modification, or complete system compromise.
💻 Affected Systems
- JBuildozer extension for Joomla!
📦 What is this software?
Jbuildozer by Jbuildozer
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise leading to data theft, data manipulation, privilege escalation, and potential remote code execution via database functions.
Likely Case
Unauthorized access to sensitive data stored in the database, including user credentials, personal information, and site configuration.
If Mitigated
Limited impact with proper input validation and parameterized queries preventing SQL injection.
🎯 Exploit Status
Exploit code is publicly available and requires no authentication. Attackers can directly target the vulnerable endpoint.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.4.2 or later
Vendor Advisory: https://vel.joomla.org/vel-blog/2046-jbuildozer-1-4-1-sql-injection
Restart Required: No
Instructions:
1. Update JBuildozer extension to version 1.4.2 or later via Joomla! Extension Manager. 2. Verify the update completed successfully. 3. Test the entriessearch functionality to ensure it works without errors.
🔧 Temporary Workarounds
Disable JBuildozer extension
allTemporarily disable the vulnerable extension until patching is possible.
Navigate to Joomla! admin panel > Extensions > Manage > Disable JBuildozer
Web Application Firewall (WAF) rules
allImplement WAF rules to block SQL injection attempts targeting the appid parameter.
Add WAF rule: Block requests containing SQL injection patterns in appid parameter
🧯 If You Can't Patch
- Implement input validation and sanitization for the appid parameter in the entriessearch action.
- Use parameterized queries or prepared statements for all database interactions involving user input.
🔍 How to Verify
Check if Vulnerable:
Check Joomla! admin panel > Extensions > Manage > JBuildozer version. If version is 1.4.1, the system is vulnerable.
Check Version:
Check via Joomla! admin interface or examine /administrator/components/com_jbuildozer/jbuildozer.xml file version tag.
Verify Fix Applied:
Verify JBuildozer version is 1.4.2 or later in the Joomla! Extension Manager.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- Multiple failed login attempts after SQL injection
- Unexpected database errors in Joomla! logs
Network Indicators:
- HTTP requests with SQL injection patterns in appid parameter
- Unusual traffic to /index.php?option=com_jbuildozer&task=entriessearch
SIEM Query:
source="web_logs" AND (uri="*com_jbuildozer*entriessearch*" AND (param="*appid=*UNION*" OR param="*appid=*SELECT*" OR param="*appid=*OR*"))