PHPGurukul Directory Management System SQL Injection Vulnerability in edit-directory.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Directory Management System version 2.0. The issue resides in the file /admin/edit-directory.php, where the 'editid' parameter is manipulated, leading to unauthorized database access. This vulnerability allows attackers to inject malicious SQL queries, bypassing authentication requirements. Exploitation of this flaw could result in data modification, deletion, or leakage of sensitive information.

Impact

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

Reproduction

The vulnerability can be reproduced by sending a GET request to the /admin/edit-directory.php file with a crafted 'editid' parameter. The injected SQL payload can exploit the application's SQL query handling, demonstrating the SQL injection vulnerability.

Remediation

It is recommended to implement input validation and sanitization for the 'editid' parameter to prevent SQL injection. Additionally, using prepared statements with parameterized queries can help mitigate this vulnerability.

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

Vulnerability Rating

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