Headline
CVE-2023-1459: SourceCodester Canteen Management System changeUsername.php sql injection_@sec的博客-CSDN博客
A vulnerability was found in SourceCodester Canteen Management System 1.0 and classified as critical. Affected by this issue is some unknown functionality of the file changeUsername.php. The manipulation of the argument username leads to sql injection. The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-223304.
@sec 于 2023-03-17 15:27:42 发布 4 收藏
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
SourceCodester Canteen Management System changeUsername.php sql injection
url: youthappam/php_action/changeUsername.php
Abstract:
Line 16 of changeUsername.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 changeUsername.php on line 16.
Parameter: username (POST)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload:
userId&username=1' AND (SELECT 6162 FROM (SELECT(SLEEP(5)))CADo) AND 'WaRF'='WaRF&user_id=1
Download Code:
https://www.sourcecodester.com/php/15688/canteen-management-system-project-source-code-php.html