PHPGurukul Student Study Center Management System SQL Injection Vulnerability in report.php

Vulnerability

A critical SQL injection vulnerability has been identified in the PHPGurukul Student Study Center Management System version 1.0. The issue resides in the file /admin/report.php, where insufficient input validation of the 'fromdate' and 'todate' parameters allows attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data manipulation, and leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for unauthorized access to the database, manipulation or deletion of data, and access to sensitive information, posing a significant threat to system security and data integrity.

Reproduction

To reproduce this vulnerability, log into the management backend and navigate to the /admin/report.php page. Once there, send a POST request with the 'fromdate' parameter injected with a crafted SQL payload, such as one that uses SQL injection techniques like time-based blind injection or UNION-based injection. The 'todate' parameter can be used to complete the request. This injection takes advantage of the application's failure to properly sanitize user input before executing SQL queries.

Remediation

To address this vulnerability, developers should implement prepared statements and parameter binding to separate SQL code from user input, ensuring that user data is not executed as SQL commands. Additionally, input validation and filtering should be applied to confirm that user inputs meet expected formats. It is also advisable to minimize database user permissions, granting only the necessary access rights, and to conduct regular security audits to identify and rectify potential vulnerabilities.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
5.6
exploitability
6.6
remediation
0.0
relevance
0.0
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.