CVE-2025-12316

7.3 HIGH

📋 TL;DR

This SQL injection vulnerability in code-projects Courier Management System 1.0 allows attackers to manipulate database queries through the OfficeName parameter in /courier/edit-courier.php. Remote attackers can potentially read, modify, or delete database contents. All installations of version 1.0 are affected.

💻 Affected Systems

Products:
  • code-projects Courier Management System
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Any installation with the vulnerable file accessible is affected. No special configuration required.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including data theft, data destruction, and potential remote code execution via database functions.

🟠

Likely Case

Data exfiltration of sensitive courier information, customer data, and potential authentication bypass.

🟢

If Mitigated

Limited impact with proper input validation and database permissions restricting damage to non-critical data.

🌐 Internet-Facing: HIGH - Remote exploitation is possible and public exploit exists.
🏢 Internal Only: MEDIUM - Internal attackers could exploit but requires network access.

🎯 Exploit Status

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

Simple SQL injection with public proof-of-concept available on GitHub.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

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

Restart Required: No

Instructions:

No official patch available. Consider migrating to alternative software or implementing workarounds.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Add parameterized queries or input validation to OfficeName parameter

Edit /courier/edit-courier.php to implement prepared statements

Web Application Firewall Rules

all

Block SQL injection patterns in OfficeName parameter

WAF rule: deny requests with SQL keywords in OfficeName parameter

🧯 If You Can't Patch

  • Restrict access to /courier/edit-courier.php via firewall rules or authentication
  • Implement database user with minimal permissions (read-only if possible)

🔍 How to Verify

Check if Vulnerable:

Test OfficeName parameter with SQL injection payloads like ' OR '1'='1

Check Version:

Check system documentation or about page for version information

Verify Fix Applied:

Verify prepared statements are implemented and test with SQL injection payloads

📡 Detection & Monitoring

Log Indicators:

  • SQL error messages in web logs
  • Unusual database queries from web server IP

Network Indicators:

  • HTTP POST requests to /courier/edit-courier.php with SQL keywords

SIEM Query:

source="web_logs" AND uri="/courier/edit-courier.php" AND (OfficeName CONTAINS "UNION" OR OfficeName CONTAINS "SELECT" OR OfficeName CONTAINS "OR '1'='1")

🔗 References

📤 Share & Export