CVE-2025-8374

7.3 HIGH

📋 TL;DR

This critical SQL injection vulnerability in Vehicle Management 1.0 allows remote attackers to execute arbitrary SQL commands via the 'company' parameter in /addcompany.php. Attackers can potentially access, modify, or delete database content. All installations of Vehicle Management 1.0 with the vulnerable file accessible are affected.

💻 Affected Systems

Products:
  • Vehicle Management
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Any installation with /addcompany.php accessible is vulnerable. The vulnerability exists in the default installation.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, authentication bypass, and potential remote code execution if database functions allow it.

🟠

Likely Case

Unauthorized data access, data manipulation, and potential privilege escalation within the application.

🟢

If Mitigated

Limited impact with proper input validation, parameterized queries, and database permissions restricting damage scope.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploit details are publicly available on GitHub and vuldb. SQL injection is a well-understood attack vector with many automated tools available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://code-projects.org/

Restart Required: No

Instructions:

No official patch available. Implement input validation and parameterized queries in /addcompany.php. Consider disabling or removing the vulnerable endpoint if not needed.

🔧 Temporary Workarounds

Web Application Firewall (WAF)

all

Deploy a WAF with SQL injection rules to block malicious requests to /addcompany.php

Access Restriction

linux

Restrict access to /addcompany.php using authentication or IP whitelisting

# Apache: Deny from all except specific IPs
Order deny,allow
Deny from all
Allow from 192.168.1.0/24
# Nginx: location /addcompany.php { deny all; }

🧯 If You Can't Patch

  • Implement network segmentation to isolate the vulnerable system
  • Enable detailed logging and monitoring for SQL injection attempts

🔍 How to Verify

Check if Vulnerable:

Test /addcompany.php endpoint with SQL injection payloads like ' OR '1'='1 in the company parameter

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Verify that SQL injection payloads no longer work and that parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL errors in application logs
  • Multiple requests to /addcompany.php with SQL keywords
  • Database error messages containing SQL syntax

Network Indicators:

  • HTTP POST requests to /addcompany.php containing SQL keywords
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND uri="/addcompany.php" AND (payload="' OR" OR payload="UNION" OR payload="SELECT" OR payload="INSERT" OR payload="DELETE")

🔗 References

📤 Share & Export