PHPGurukul e-Diary Management System SQL Injection Vulnerability in Category Addition Feature

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul e-Diary Management System version 1.0. The issue resides in the '/add-category.php' file, where the 'category' parameter is manipulated, leading to unauthorized database access. This vulnerability allows attackers to inject malicious SQL queries, potentially modifying or deleting data and accessing sensitive information. The flaw arises from inadequate input validation, enabling exploitation without authentication.

Impact

Exploitation of this vulnerability allows for SQL injection, where attackers can manipulate database queries. This could lead to unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/add-category.php' with a crafted 'category' parameter that includes malicious SQL payloads. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

It is recommended to validate and sanitize user inputs, use prepared statements to prevent SQL injection, and conduct regular security audits to identify and fix vulnerabilities.

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

Vulnerability Rating

Custom Algorithm
spread
0.8
impact
3.1
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.