Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 1.03 KB

sql4.md

File metadata and controls

14 lines (13 loc) · 1.03 KB

The clinic patient management system has SQL injection vulnerability

supplier

https://www.sourcecodester.com/php-clinics-patient-management-system-source-code

Vulnerability file

/pms/ajax/get_patient_history.php

describe

Unrestricted SQL injection attacks exist in the inventory management system. The parameters that can be controlled are as follows: patient_id This function executes the patient_id parameter into an SQL statement without any restrictions. Malicious attackers can use this vulnerability to obtain sensitive information in the server database

code analysis

The patient_id parameter in get_patient_history.php is controlled and is directly carried into the SQL statement for execution, resulting in SQL injection image Injection via the patient_id parameter image image