Code-Projects Online Farm System SQL Injection Vulnerability in Password Recovery Script

Vulnerability

A critical SQL injection vulnerability has been identified in Code-Projects Online Farm System version 1.0. The issue resides in the password recovery script, specifically within the '/forgot_passfarmer.php' file. The vulnerability is triggered by manipulating the 'email' parameter, allowing attackers to inject malicious SQL queries. This injection occurs without proper input validation, enabling unauthorized database access and potential data manipulation. The vulnerability can be exploited remotely, without any authentication requirements.

Impact

Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, leading to unauthorized database access, data manipulation or deletion, and potential exposure of sensitive information. Such actions could disrupt normal system operations and compromise overall data integrity.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/forgot_passfarmer.php' endpoint with an injected payload in the 'email' parameter. This payload can be crafted to exploit the SQL injection vulnerability, such as by using SQL injection techniques that leverage boolean-based blind, error-based, or time-based blind injection methods.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help enhance overall system security.

Added: Aug 2, 2025, 9:18 AM
Updated: Aug 2, 2025, 9:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.