当前位置:网站首页>ThinkPHP code execution (cnvd-2018-24942)
ThinkPHP code execution (cnvd-2018-24942)
2022-07-18 12:14:00 【sec0nd_】
List of articles
Vulnerability description :
ThinkPHP frame - It is developed and maintained by Shanghai Dingxiang company MVC Open source of structure PHP frame , follow Apache2 Open source protocol release , It's for Agility WEB Application development and simplified enterprise application development .
The vulnerability is due to the framework's failure to adequately detect the controller name , The attacker uses this vulnerability to conduct a remote command execution attack on the target website .
The recurrence process
Remote code execution , Read the current directory 
I wanted to try uploading a sentence to the Trojan horse , The website is a little straddling and has been circling , It seems that I can't write it in
Based on previous experience ,flag stay tmp Under the table of contents , Just take it flag 了 
Repair suggestions
Use composer install , And keep the latest version used , Use the following instructions to update to the latest version
composer update topthink/framework
5.0 edition
stay thinkApp Class module Method to get the controller code followed by
if (!preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
5.1 edition
stay thinkroutedispatchUrl Class parseUrl Method , Analyze the controller and add
if ($controller && !preg_match('/^[A-Za-z](\w|\.)*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
边栏推荐
- vue+mysql连接数据库实现登录注册
- Logic of automatic reasoning 02 propositional calculus
- openEuler 知:官方社区
- 【对象转换】vo2dto使用
- Power Bi ---- what is a measure?
- Ftxui basic notes (Hello World)
- C# 使用JObject解析嵌套json
- 接口自动化测试:Postman实战教程
- Add Tsinghua image in CONDA
- Traditional gyms are trapped in large-scale, and Lexus sports "s2b2c" mode is the reference answer?
猜你喜欢

. Miniapi of net7 (special article):preview6 caching and stream limiting

Openeuler knows: the solution of IP addr not finding IP

面试高频:MySQL是怎么保证高可用的?

Ue5 fonctions simples de détection des collisions de rôles

MySQL original field to hump naming

Flink基础记录补充

汉字风格迁移篇--基于生成对抗网络的无监督字体风格转换模型

程序员头疼的 4 种原因 | 每日趣闻

Excel-VBA 快速上手(七、获取单元格对象)

Pule frog 4d5d dynamic cinema | VR space travel equipment | VR takes you to travel in space
随机推荐
openEuler 知:日志查找技巧
重建二叉树
openEuler 知:ip addr 查不到 ip 的解决方法
Blazor University (36) component library
C # résoudre les json imbriqués en utilisant jobject
长安链介绍-01
2022年成都/杭州/厦门/武汉产品经理认证招生简章(NPDP)
JVM调优实战(详细版)
【Jailhouse 文章】Bao: a modern lightweight embedded hypervisor(2020)
Webrtc series turn protocol implementation
Appium automation test foundation - WebView operation (key)
私域运营为啥这么火?企业如何做好自己的私域运营呢?
pinctrl子系统和gpio子系统
Use of gin framework
Flink基础记录补充
JVM introduction
Community summit pulsar summit old golden peak conference topic highlights exposure!
传统健身房困于规模化,乐刻运动“S2B2C”模式成参考答案?
Transfer learning model training II
JupyterLab安装