Exploit database

Vulnerability

CVE-2022-2297

SourceCodester Clinics Patient Management System unrestricted upload

Vulnerability details

Score
6.3
Severity
medium

CVSS 3.1 · VulDB

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Description

A vulnerability, which was classified as critical, was found in SourceCodester Clinics Patient Management System 2.0. Affected is an unknown function of the file /pms/update_user.php?user_id=1. The manipulation of the argument profile_picture with the input <?php phpinfo();?> leads to unrestricted upload. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

CVE Program

Exploit source choices

1 source
Clinic's Patient Management System 1.0 - Unauthenticated RCE
MSF-multi--http--clinic_pms_sqli_to_rceMetasploitPHP / remotePreferred

This module exploits an SQL injection in login portal, which allows to log in as admin. Next, it allows the attacker to upload malicious files through user modification to achieve RCE.

2025-01-04clinic_pms_sqli_to_rce.rb