header-logo
Suggest Exploit
vendor:
Bus Pass Management System
by:
Aryan Chehreghani
7,5
CVSS
HIGH
SQL Injection
89
CWE
Product Name: Bus Pass Management System
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:phpgurukul:bus_pass_management_system
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: Windows 10 - Wamp Server
2021

Bus Pass Management System 1.0 – ‘viewid’ SQL Injection

The viewid parameter of the Bus Pass Management System 1.0 is vulnerable to SQL injection. An attacker can exploit this vulnerability by entering a malicious SQL payload into the URL of the vulnerable page. This will result in an SQL error, which can be used to gain access to the system.

Mitigation:

Input validation should be used to prevent SQL injection attacks. All user-supplied input should be validated and filtered before being used in an SQL query.
Source

Exploit-DB raw data:

# Exploit Title: Bus Pass Management System 1.0 - 'viewid' SQL Injection
# Date: 2021-08-28
# Exploit Author: Aryan Chehreghani
# Vendor Homepage: https://phpgurukul.com/bus-pass-management-system-using-php-and-mysql
# Software Link: https://phpgurukul.com/wp-content/uploads/2021/07/Bus-Pass-Management-System-Using-PHP-MySQL.zip
# Version: 1.0
# Tested on: Windows 10 - Wamp Server

# Vulnerable page :

http://localhost/buspassms/admin/view-pass-detail.php?viewid=

# Vulnerable paramater :

The viewid paramater is Vulnerable to sqli

# Proof Of Concept :

# 1 . Download And install [ bus-pass-management-system ]
# 2 . Go to /admin/index.php and Enter Username & Password 
# 3 . Navigate to passes >> manage pass
# 4 . Click on the view and enter the sql payload into the Url

Use : http://localhost/buspassms/admin/view-pass-detail.php?viewid=1'[Sql Payload]