PHPGurukul Apartment Visitors Management System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in the PHPGurukul Apartment Visitors Management System version 1.0. The issue arises in the file '/forgot-password.php', where the 'contactno' parameter is not properly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, leading to unauthorized database access, data manipulation, and potential leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for unauthorized access to the database, manipulation or deletion of data, and access to sensitive information. Such actions pose a significant threat to system security and business continuity.

Reproduction

To reproduce this vulnerability, send a POST request to '/forgot-password.php' with the 'contactno' parameter. Include a payload that exploits the SQL injection vulnerability, such as a SQL injection payload that, for example, uses a time-based blind SQL injection technique. The request can be made using a tool like Burp Suite or SQLMap.

Remediation

It is recommended to use prepared statements or parameterized queries to prevent SQL injection vulnerabilities. Additionally, user inputs should be validated and sanitized before being processed. Implementing a Web Application Firewall (WAF) can also help mitigate such vulnerabilities.

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

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.0
exploitability
6.2
remediation
0.0
relevance
0.0
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.