CVE-2024-10417 Overview
CVE-2024-10417 is a SQL injection vulnerability in code-projects Blood Bank Management System 1.0. The flaw resides in the /file/delete.php script, where the bid parameter is passed to a database query without sanitization. Attackers can manipulate the parameter to inject arbitrary SQL statements. The vulnerability requires network access and low-privileged authentication, but no user interaction. Public disclosure of the exploit technique increases the risk of opportunistic exploitation against exposed instances.
Critical Impact
Authenticated remote attackers can inject SQL statements through the bid parameter of /file/delete.php, potentially reading, modifying, or deleting blood bank records.
Affected Products
- Fabian Blood Bank Management System 1.0
- code-projects Blood Bank Management System (/file/delete.php component)
- Deployments distributed through the Code Projects resource hub
Discovery Timeline
- 2024-10-27 - CVE-2024-10417 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-10417
Vulnerability Analysis
The vulnerability is classified under [CWE-89] (Improper Neutralization of Special Elements used in an SQL Command). The /file/delete.php endpoint accepts a bid argument used to identify a blood record for deletion. The application concatenates the value into a SQL query without parameterization or input validation. An attacker with low-privilege access to the application can inject SQL syntax through this parameter.
The EPSS score is 0.545% (percentile 42.838), indicating a moderate probability of near-term exploitation activity. The public disclosure of the exploit vector increases the likelihood of scripted attempts against exposed deployments.
Root Cause
The root cause is direct interpolation of user-controlled input into a SQL statement. The bid GET or POST parameter passed to /file/delete.php is not sanitized, escaped, or bound as a prepared statement parameter. This allows the SQL parser to treat attacker input as query syntax rather than data.
Attack Vector
Exploitation occurs remotely over the network against the vulnerable PHP endpoint. An authenticated user submits a crafted bid value containing SQL metacharacters and injected clauses. The injected payload executes with the database privileges of the application service account. Depending on the database user's permissions, an attacker can enumerate schema data, extract records, or manipulate stored information.
No verified proof-of-concept code has been published to CVE databases. Technical details are referenced in the GitHub Gist Snippet and VulDB #281958 Analysis.
Detection Methods for CVE-2024-10417
Indicators of Compromise
- HTTP requests to /file/delete.php containing SQL metacharacters such as single quotes, UNION, SELECT, --, or ; in the bid parameter
- Web server access logs showing unusually long or URL-encoded bid values from a single source
- Database error messages returned in HTTP responses referencing SQL syntax failures
- Unexpected DELETE operations against Blood Bank Management System tables outside normal application workflows
Detection Strategies
- Deploy web application firewall rules that flag SQL injection patterns targeting the bid query parameter
- Enable database query logging and alert on anomalous statements originating from the application service account
- Correlate authenticated session activity with parameter tampering patterns in application logs
Monitoring Recommendations
- Monitor authentication logs for low-privileged accounts issuing unusual request volumes to /file/delete.php
- Track outbound data volumes from the database host for signs of extraction via injection
- Baseline normal request patterns against the delete endpoint and alert on deviations
How to Mitigate CVE-2024-10417
Immediate Actions Required
- Restrict network exposure of the Blood Bank Management System to trusted internal segments until a fix is applied
- Disable or gate access to /file/delete.php behind additional authorization checks
- Rotate database credentials if injection attempts are observed in logs
- Review database audit logs for unauthorized SELECT, UPDATE, or DELETE activity dating back to the disclosure window
Patch Information
No vendor patch is currently listed in the referenced advisories. Consult the Code Projects Resource Hub and VulDB #281958 Details for updates. Organizations should treat the affected version as unpatched and prioritize compensating controls.
Workarounds
- Modify /file/delete.php to use prepared statements or parameterized queries for the bid value
- Apply strict server-side input validation, allowing only integer values for the bid parameter
- Deploy a web application firewall with SQL injection signatures in blocking mode in front of the application
- Enforce least privilege on the database account used by the application to limit the scope of successful injection
# Example WAF rule concept (ModSecurity) blocking SQLi patterns on the bid parameter
SecRule ARGS:bid "@rx (['\";]|--|\b(UNION|SELECT|DELETE|INSERT|UPDATE)\b)" \
"id:1004172024,phase:2,deny,status:403,msg:'CVE-2024-10417 SQLi attempt on bid parameter'"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

