CVE-2023-37165

9.8 CRITICAL

📋 TL;DR

Millhouse-Project v1.414 contains a SQL injection vulnerability in the /add_post_sql.php component that allows remote attackers to execute arbitrary code on affected systems. This affects all deployments running the vulnerable version of Millhouse-Project software.

💻 Affected Systems

Products:
  • Millhouse-Project
Versions: v1.414
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Any deployment with the vulnerable /add_post_sql.php endpoint accessible is affected.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system compromise allowing attacker to execute arbitrary commands, steal data, install malware, or pivot to other systems.

🟠

Likely Case

Attacker gains shell access to the web server, potentially compromising the database and web application data.

🟢

If Mitigated

Limited impact if proper input validation and WAF rules are in place, though SQL injection may still leak data.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit code is publicly available on Exploit-DB, making this easily weaponizable.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: Unknown

Restart Required: No

Instructions:

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

🔧 Temporary Workarounds

Disable vulnerable endpoint

linux

Remove or restrict access to /add_post_sql.php file

mv /path/to/add_post_sql.php /path/to/add_post_sql.php.disabled
chmod 000 /path/to/add_post_sql.php

Implement WAF rules

all

Add SQL injection detection and blocking rules to web application firewall

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries for all SQL operations
  • Restrict network access to the application using firewall rules

🔍 How to Verify

Check if Vulnerable:

Check if /add_post_sql.php file exists and is accessible via HTTP requests

Check Version:

Check application version in configuration files or about pages

Verify Fix Applied:

Verify /add_post_sql.php endpoint is no longer accessible or returns proper error

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in application logs
  • Multiple failed SQL injection attempts
  • Unexpected file uploads or system commands

Network Indicators:

  • HTTP requests to /add_post_sql.php with SQL payloads
  • Outbound connections from web server to unknown IPs

SIEM Query:

source="web_logs" AND (uri="/add_post_sql.php" OR message="SQL syntax")

🔗 References

📤 Share & Export