Soumettre #746399: PHPgurukul Hospital Management System V4.0 SQL Injectioninformation

TitrePHPgurukul Hospital Management System V4.0 SQL Injection
Description# Phpgurukul Hospital Management System In PHP V4.0 /hospital/hms/check_availability.php SQL injection # NAME OF AFFECTED PRODUCT(S) - Hospital Management System In PHP ## Vendor Homepage - https://phpgurukul.com/hospital-management-system-in-php/ # AFFECTED AND/OR FIXED VERSION(S) ## submitter - simos ## Vulnerable File - /hospital/hms/check_availability.php ## VERSION(S) - V4.0 ## Software Link - https://phpgurukul.com/?sdm_process_download=1&download_id=7380 # PROBLEM TYPE ## Vulnerability Type - SQL injection ## Root Cause - A SQL injection vulnerability was found in the '/index.php' file of the 'RTBS Project PH' project. The reason for this issue is that attackers inject malicious code from the parameter 'phonenumber' and use it directly in SQL queries without the need for appropriate cleaning or validation. This allows attackers to forge input values, thereby manipulating SQL queries and performing unauthorized operations. ## Impact - Attackers can exploit this SQL injection vulnerability to achieve unauthorized database access, sensitive data leakage, data tampering, comprehensive system control, and even service interruption, posing a serious threat to system security and business continuity. # DESCRIPTION - During the security review of "RTBS Project PH",I discovered a critical SQL injection vulnerability in the "/index.php" file. This vulnerability stems from insufficient user input validation of the 'phonenumber' parameter, allowing attackers to inject malicious SQL queries. Therefore, attackers can gain unauthorized access to databases, modify or delete data, and access sensitive information. Immediate remedial measures are needed to ensure system security and protect data integrity. # No login or authorization is required to exploit this vulnerability # Vulnerability details and POC ## Vulnerability lonameion: - 'email' parameter ## Payload: ```makefile Parameter: email (POST) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: [email protected]' AND 3390=3390 AND 'mWal'='mWal ``` ## The following are screenshots of some specific information obtained from testing and running with the sqlmap tool: ```bash python sqlmap.py -u "http://192.168.132.15/hospital/hms/check_availability.php" --data="[email protected]' AND 3390=3390 AND 'mWal'='mWal" --dbs ``` <img width="1844" height="668" alt="Image" src="https://github.com/user-attachments/assets/de6597fd-28d8-4f70-8542-9c53455c5d76" /> # Suggested repair 1. **Use prepared statements and parameter binding:** Preparing statements can prevent SQL injection as they separate SQL code from user input data. When using prepare statements, the value entered by the user is treated as pure data and will not be interpreted as SQL code. 2. **Input validation and filtering:** Strictly validate and filter user input data to ensure it conforms to the expected format. 3. **Minimize database user permissions:** Ensure that the account used to connect to the database has the minimum necessary permissions. Avoid using accounts with advanced permissions (such as' root 'or' admin ') for daily operations. 4. **Regular security audits:** Regularly conduct code and system security audits to promptly identify and fix potential security vulnerabilities.
La source⚠️ https://github.com/VeviveDusk/cve/issues/1
Utilisateur
 simos (UID 94705)
Soumission24/01/2026 15:28 (il y a 3 mois)
Modérer06/02/2026 09:19 (13 days later)
StatutDupliqué
Entrée VulDB177389 [PHPGurukul Hospital Management System in PHP 4.0 check_availability.php injection SQL]
Points0

Do you need the next level of professionalism?

Upgrade your account now!