CVE-2021-43700
📋 TL;DR
CVE-2021-43700 is a SQL injection vulnerability in ApiManager 1.1 that allows attackers to execute arbitrary SQL commands through the /index.php?act=api&tag=8 endpoint. This affects all users running ApiManager 1.1 without proper input validation. Attackers can potentially access, modify, or delete database contents.
💻 Affected Systems
- ApiManager
📦 What is this software?
Apimanager by Apimanager Project
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise leading to data theft, data destruction, or full system takeover via subsequent attacks.
Likely Case
Unauthorized data access, data manipulation, or privilege escalation within the database.
If Mitigated
Limited impact with proper input validation, parameterized queries, and database permissions in place.
🎯 Exploit Status
The GitHub issue shows exploitation details. SQL injection is well-understood and easily weaponized.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Not available
Vendor Advisory: Not available
Restart Required: No
Instructions:
No official patch exists. Consider upgrading to a maintained fork or implementing workarounds.
🔧 Temporary Workarounds
Input Validation Filter
allAdd input validation to sanitize user inputs before processing SQL queries.
Modify /index.php to validate and sanitize the 'tag' parameter using prepared statements or whitelisting.
Web Application Firewall (WAF)
allDeploy a WAF to block SQL injection attempts at the network layer.
Configure WAF rules to block SQL injection patterns targeting /index.php?act=api&tag=*
🧯 If You Can't Patch
- Disable or restrict access to the vulnerable endpoint using network ACLs or web server configuration.
- Implement database-level controls: use least privilege accounts, enable auditing, and restrict database permissions.
🔍 How to Verify
Check if Vulnerable:
Test the endpoint with SQL injection payloads like /index.php?act=api&tag=8' OR '1'='1 and observe database errors or unexpected behavior.
Check Version:
Check the software version in the application interface or configuration files.
Verify Fix Applied:
After applying workarounds, retest with SQL injection payloads to ensure they are blocked or sanitized.
📡 Detection & Monitoring
Log Indicators:
- Unusual SQL queries in database logs
- HTTP requests to /index.php?act=api&tag= with SQL keywords like UNION, SELECT, OR
Network Indicators:
- HTTP traffic containing SQL injection patterns in query parameters
SIEM Query:
source="web_logs" AND uri="/index.php" AND query="*act=api*" AND (query="*UNION*" OR query="*SELECT*" OR query="*OR*" OR query="*'*" OR query="*--*" OR query="*;*")