PHPGurukul e-Diary Management System SQL Injection Vulnerability in Password Recovery Feature

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul e-Diary Management System version 1.0. The issue resides in the password recovery feature, specifically within the 'password-recovery.php' file. The vulnerability allows attackers to inject malicious SQL queries through the 'username' and 'contactno' parameters. This exploitation can be done remotely and without any authentication, posing a significant risk to the application's database integrity and security.

Impact

Exploitation of this vulnerability allows unauthorized access to the application's database, where attackers can manipulate or delete data, access sensitive information, and potentially disrupt the application's normal operations.

Reproduction

The vulnerability can be reproduced by sending a POST request to 'password-recovery.php' with crafted payloads that exploit the SQL injection flaw in either the 'username' or 'contactno' parameter. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

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

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

Vulnerability Rating

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