CVE-2023-43374

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in Hoteldruid v3.0.5 allows attackers to execute arbitrary SQL commands via the id_utente_log parameter in the personalizza.php endpoint. This affects all systems running the vulnerable version of Hoteldruid, potentially leading to data theft, modification, or complete system compromise.

💻 Affected Systems

Products:
  • Hoteldruid
Versions: v3.0.5
Operating Systems: Any OS running Hoteldruid
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of Hoteldruid v3.0.5 are vulnerable regardless of configuration.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data exfiltration, modification, deletion, and potential remote code execution leading to full system takeover.

🟠

Likely Case

Unauthorized access to sensitive hotel data (guest information, reservations, financial records), privilege escalation, and data manipulation.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries preventing successful exploitation.

🌐 Internet-Facing: HIGH - The vulnerability is in a web application endpoint that is typically internet-facing, making it accessible to remote attackers.
🏢 Internal Only: MEDIUM - Even if not internet-facing, internal attackers or compromised internal systems could exploit this vulnerability.

🎯 Exploit Status

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

SQL injection vulnerabilities are commonly exploited and tools like sqlmap can automate exploitation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: None available

Restart Required: No

Instructions:

No official patch available. Consider upgrading to a newer version if available or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation and parameterized queries for the id_utente_log parameter

Modify /hoteldruid/personalizza.php to use prepared statements

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection protection rules

🧯 If You Can't Patch

  • Implement network segmentation to isolate the Hoteldruid server
  • Restrict access to the /hoteldruid/personalizza.php endpoint using firewall rules

🔍 How to Verify

Check if Vulnerable:

Test the /hoteldruid/personalizza.php endpoint with SQL injection payloads in the id_utente_log parameter

Check Version:

Check the Hoteldruid version in the application interface or configuration files

Verify Fix Applied:

Verify that SQL injection payloads no longer execute and return appropriate error messages

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts with SQL syntax in parameters
  • Access to personalizza.php with suspicious parameter values

Network Indicators:

  • HTTP requests to /hoteldruid/personalizza.php containing SQL keywords in parameters
  • Unusual database connection patterns

SIEM Query:

source="web_logs" AND uri="/hoteldruid/personalizza.php" AND (param="id_utente_log" AND value CONTAINS "UNION" OR value CONTAINS "SELECT" OR value CONTAINS "OR 1=1")

🔗 References

📤 Share & Export