PHPGurukul Dairy Farm Shop Management System SQL Injection Vulnerability in edit-product.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Dairy Farm Shop Management System version 1.3. The issue resides in the edit-product.php file, where the productname parameter can be manipulated to inject malicious SQL code. This unsanitized input is exploited to interfere with SQL queries, potentially leading to unauthorized database access and data manipulation.

Impact

Exploitation of this vulnerability allows attackers to inject malicious SQL queries, bypassing authentication and accessing the database. This could result in unauthorized data exposure, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to the edit-product.php file with the productname parameter. Include a payload that exploits the SQL injection, such as one that uses time-based blind injection techniques, like making the database wait for a specified period before responding.

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 that user input meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that the account used for database connections has only the necessary privileges.

Added: Jul 14, 2025, 9:38 AM
Updated: Jul 14, 2025, 9:38 AM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
7.5
exploitability
6.2
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

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