PHPGurukul Pre-School Enrollment System SQL Injection Vulnerability in Visitor Details Management

Vulnerability

A critical SQL injection vulnerability has been identified in the PHPGurukul Pre-School Enrollment System version 1.0. The issue resides in the file '/admin/visitor-details.php', where the 'status' parameter in POST requests is not properly validated. This lack of input sanitization allows attackers to inject malicious SQL queries, potentially leading to unauthorized database access, data manipulation or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability could allow attackers to access the database without authorization, modify or delete data, and leak sensitive information. Such actions could disrupt services and compromise the overall security of the system.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/preschool/admin/visitor-details.php' with an injected payload in the 'status' parameter. This payload should be crafted to exploit the SQL injection flaw, such as by using a time-based blind injection technique that leverages SQL commands like 'SLEEP' to demonstrate the injection's effectiveness.

Remediation

It is recommended to implement prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and limit database user permissions to the minimum required.

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

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
7.5
exploitability
9.7
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.