CVE-2021-47766

7.1 HIGH

📋 TL;DR

Kmaleon 1.1.0.205 contains an authenticated SQL injection vulnerability in the 'tipocomb' parameter of kmaleonW.php. This allows attackers with valid credentials to manipulate database queries using boolean-based, error-based, and time-based blind SQL injection techniques. Organizations using Kmaleon 1.1.0.205 for legal case management are affected.

💻 Affected Systems

Products:
  • Kmaleon
Versions: 1.1.0.205
Operating Systems: Windows, Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated access to kmaleonW.php endpoint. The vulnerability exists in the default installation.

⚠️ 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 including extraction of sensitive client data, case information, and potential privilege escalation to execute arbitrary commands on the database server.

🟠

Likely Case

Data exfiltration of sensitive legal case information, client details, and potential manipulation of case records.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting unauthorized data access.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit code is publicly available on Exploit-DB (ID: 50499). Attack requires valid authentication credentials but uses common SQL injection techniques.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://web.archive.org/web/20210616143348/https://www.levelprograms.com/kmaleon-abogados/

Restart Required: No

Instructions:

1. Check vendor website for updated version
2. If patch available, download and install
3. Test functionality after update
4. No official patch has been identified as of analysis date

🔧 Temporary Workarounds

Input Validation Filter

all

Implement server-side input validation for the 'tipocomb' parameter to allow only expected values

Modify kmaleonW.php to validate/sanitize tipocomb parameter before database query

Web Application Firewall Rules

all

Deploy WAF rules to block SQL injection patterns targeting the kmaleonW.php endpoint

Add WAF rule: Block requests to kmaleonW.php containing SQL keywords in tipocomb parameter

🧯 If You Can't Patch

  • Implement network segmentation to restrict access to Kmaleon application to authorized users only
  • Enable detailed logging of all database queries and monitor for suspicious patterns

🔍 How to Verify

Check if Vulnerable:

Test the kmaleonW.php endpoint with SQL injection payloads in the tipocomb parameter while authenticated

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Attempt SQL injection techniques against the patched endpoint and verify they are blocked or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual database query patterns from kmaleonW.php
  • Multiple failed login attempts followed by SQL injection attempts
  • Database errors containing SQL syntax in web server logs

Network Indicators:

  • HTTP POST requests to kmaleonW.php with SQL keywords in parameters
  • Unusual database traffic patterns from web server

SIEM Query:

source="web_logs" AND uri="*kmaleonW.php*" AND (param="*tipocomb*" AND (value="*SELECT*" OR value="*UNION*" OR value="*OR 1=1*"))

🔗 References

📤 Share & Export