Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 1 KB

sql3.md

File metadata and controls

16 lines (13 loc) · 1 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/print_patients_visits.php

describe

Unrestricted SQL injection attacks exist in the inventory management system. The parameters that can be controlled are as follows: to This function executes the to 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 to parameter in print_patients_visits.php is controlled and is directly carried into the SQL statement for execution, resulting in SQL injection

图片

Injection via the to parameter

图片 图片