Lucene search
+L

Bus Pass Management System 1.0 - 'Search' SQL Injection (SQLi)

🗓️ 23 Nov 2021 00:00:00Reported by Abhijeet SinghType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 549 Views

Bus Pass Management System 1.0 SQL injection exploit

Related
Code
ReporterTitlePublishedViews
Family
cnnvd
CNNVD
Bus Pass Management System SQL Injection Vulnerability
30 Sep 202200:00
–cnnvd
cve
CVE
CVE-2022-35156
30 Sep 202218:10
–cve
cvelist
Cvelist
CVE-2022-35156
30 Sep 202218:10
–cvelist
euvd
EUVD
EUVD-2022-38050
3 Oct 202520:07
–euvd
nvd
NVD
CVE-2022-35156
30 Sep 202219:15
–nvd
osv_cve
osv_cve
CVE-2022-35156
30 Sep 202219:15
–osv_cve
prion
Prion
Sql injection
30 Sep 202219:15
–prion
ptsecurity
Positive Technologies
PT-2022-22606
30 Sep 202200:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2022-35156: Improper Neutralization of Special Elements used in an SQL Command
30 Sep 202200:00
–rapid7
redhatcve
RedhatCVE
CVE-2022-35156
9 Jan 202610:39
–redhatcve
Rows per page
# Exploit Title: Bus Pass Management System 1.0 - 'Search' SQL injection
# Date: 23-11-2021
# Exploit Author: Abhijeet Singh
# Vendor Homepage: https://phpgurukul.com/
# Software Link: https://phpgurukul.com/bus-pass-management-system-using-php-and-mysql/
# Version: v-1.0 (Default)
# Tested on: macOS Monterey(Version 12.0.1)

*SQL Injection:*
SQL injection is a web security vulnerability that allows an attacker to alter the SQL queries made to the database. This can be used to retrieve some sensitive information, like database structure, tables, columns, and their underlying data.

*Attack Vector:*
An attacker can compromise the database of the application using some automated(or manual) tools like SQLmap.

*Steps to reproduce:*
Step-1: Open 'View Pass' page using following URL:
http://127.0.0.1/buspassms/download-pass.php


2. Now put the below payload in the 'Search' field.
*Payload: *123' AND (SELECT 7169 FROM (SELECT(SLEEP(4)))abhi) AND 'x'='x

3. Server accepted our payload and the response got delayed by 4 seconds.

*IMPACT:*
As the vulnerable parameter is an external parameter (credentials not
required), an attacker can dump the database of the application remotely.

Suggested Mitigation/Remediation Actions
Parameterized queries should be used to separate the command and data
portions of the intended query to the database. These queries prevent
an attacker from tampering with the query logic and extending a
concatenated database query string. Code reviews should be conducted
to identify any additional areas where the application or other
applications in the organization are vulnerable to this attack.
Additionally, input validation should be enforced on the server side
in order to ensure that only expected data is sent in queries. Where
possible security specific libraries should be used in order to
provide an additional layer of protection.

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

23 Nov 2026 00:00Current
5.3Medium risk
Vulners AI Score5.3
CVSS 3.19.8
EPSS0.0138
SSVC
549