PHPGurukul Cyber Cafe Management System SQL Injection Vulnerability in add-users.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul/Campcodes Cyber Cafe Management System version 1.0. The issue resides in the add-users.php file, specifically within the uadd parameter of the POST request. This vulnerability allows remote attackers to inject malicious SQL queries, which could be executed on the application's database. The root cause of the vulnerability is the lack of proper input validation and sanitization, enabling unauthorized access to the database, manipulation of data, and potential disruption of services.

Impact

Exploitation of this vulnerability allows for unauthorized database access, data manipulation or deletion, leakage of sensitive information, and could lead to a complete compromise of the underlying system.

Reproduction

To reproduce this vulnerability, send a POST request to the add-users.php file with the uadd parameter. Inject a crafted SQL payload that exploits the application's SQL query handling. The injection can be verified by observing the application's response or by using a tool like sqlmap to extract database information.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input meets expected formats. Finally, database user permissions should be minimized to the least required for operations.

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

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
9.1
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.