CVE-2025-15181

7.3 HIGH

📋 TL;DR

CVE-2025-15181 is an SQL injection vulnerability in the Refugee Food Management System 1.0 that allows attackers to manipulate database queries through the rfid parameter in /home/pagenateRefugeesList.php. This affects all users running the vulnerable version of this web application, potentially leading to data theft, modification, or system compromise.

💻 Affected Systems

Products:
  • code-projects Refugee Food Management System
Versions: 1.0
Operating Systems: Any OS running PHP web server
Default Config Vulnerable: ⚠️ Yes
Notes: All installations of version 1.0 are vulnerable if the /home/pagenateRefugeesList.php endpoint is accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise allowing data exfiltration, modification, or deletion; potential privilege escalation to execute arbitrary commands on the underlying server.

🟠

Likely Case

Unauthorized access to sensitive refugee data including personal information, food distribution records, and system credentials.

🟢

If Mitigated

Limited impact with proper input validation and database permissions, potentially only allowing data viewing without modification.

🌐 Internet-Facing: HIGH - Remote exploitation is possible and public exploit exists, making internet-facing instances immediate targets.
🏢 Internal Only: MEDIUM - Internal attackers could exploit this, but requires network access to the vulnerable system.

🎯 Exploit Status

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

Exploit code is publicly available on GitHub, making this easily weaponizable by attackers with minimal technical skill.

🛠️ 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

Implement parameterized queries or input validation for the rfid parameter in /home/pagenateRefugeesList.php

Modify PHP code to use prepared statements: $stmt = $conn->prepare('SELECT * FROM refugees WHERE rfid = ?'); $stmt->bind_param('s', $rfid);

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable endpoint

Add WAF rule: deny requests to /home/pagenateRefugeesList.php containing SQL keywords in rfid parameter

🧯 If You Can't Patch

  • Isolate the system behind a firewall with strict access controls
  • Implement network segmentation to limit database server access

🔍 How to Verify

Check if Vulnerable:

Test the /home/pagenateRefugeesList.php endpoint with SQL injection payloads in the rfid parameter

Check Version:

Check application version in admin panel or configuration files

Verify Fix Applied:

Verify that SQL injection attempts no longer succeed and that parameterized queries are implemented

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple requests to /home/pagenateRefugeesList.php with suspicious parameters
  • Database error messages containing SQL syntax

Network Indicators:

  • HTTP requests containing SQL keywords (SELECT, UNION, etc.) in URL parameters
  • Unusual traffic patterns to the vulnerable endpoint

SIEM Query:

source="web_logs" AND url="/home/pagenateRefugeesList.php" AND (param="rfid" AND value CONTAINS "' OR ")

🔗 References

📤 Share & Export