SourceCodester Farm Management System SQL Injection Vulnerability in review.php

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Farm Management System version 1.0. The issue arises in the review.php file, where the 'pid' parameter is manipulated to inject malicious SQL code. This vulnerability allows remote exploitation, with the injected SQL being executed without proper validation or sanitization, potentially leading to unauthorized database access and data manipulation.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to interfere with the application's database queries. This could result in unauthorized data access, data manipulation, or even executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to review.php with a crafted 'pid' parameter that includes SQL injection payloads. The absence of input validation on the 'pid' parameter allows the injected SQL code to be executed, demonstrating the SQL injection vulnerability.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. 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 mitigate such vulnerabilities.

Added: Nov 10, 2025, 3:18 AM
Updated: Nov 10, 2025, 3:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
8.7
remediation
0.0
relevance
0.9
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.