PHPGurukul Student Record System SQL Injection Vulnerability in session.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Student Record System version 3.2. The issue resides in the session.php file, where the session parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, with public knowledge of the exploit available.

Impact

Exploitation of this vulnerability allows unauthorized access to the database, manipulation or deletion of data, and potential control over the system, disrupting services and posing a significant security risk.

Reproduction

The vulnerability can be reproduced by sending a POST request to the session.php file with a crafted session parameter that includes malicious SQL code. This injected SQL is executed by the application, allowing the attacker to manipulate the database. The exploitation can be verified using tools like sqlmap, which can automate the injection process and extract database information.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and minimize database user permissions.

Added: Jun 30, 2025, 2:17 PM
Updated: Jun 30, 2025, 2:17 PM

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
7.5
exploitability
6.6
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.