PHPGurukul Dairy Farm Shop Management System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Dairy Farm Shop Management System version 1.3. The issue resides in the file '/sales-report-details.php', where the 'fromdate' and 'todate' parameters are manipulated to inject malicious SQL queries. This vulnerability can be exploited remotely, allowing attackers to access and manipulate the database without authorization.

Impact

Exploitation of this vulnerability could lead to unauthorized database access, data manipulation or deletion, leakage of sensitive information, and potential disruption of services.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/sales-report-details.php' with crafted 'fromdate' and 'todate' parameters. The injected SQL payload can be designed to exploit either boolean-based blind, error-based, or time-based blind SQL injection techniques, depending on the attacker's preference.

Remediation

To address this vulnerability, it is recommended to implement prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be applied to ensure that user input conforms to expected formats. Finally, database user permissions should be minimized to limit access rights.

Added: Sep 1, 2025, 7:22 PM
Updated: Sep 1, 2025, 7:22 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.6
exploitability
9.1
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
10.0

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