# ptcms小说小偷程序鸡肋漏洞

**URL:** <https://forum.90sec.com/t/topic/3230>\
**Category:** 代码审计\
**Created:** [2012 年2 月 18 日 07:51 UTC](https://forum.90sec.com/t/topic/3230 "2012-02-18T07:51:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年2 月 18 日 07:51 UTC](https://forum.90sec.com/t/topic/3230/1 "2012-02-18T07:51:16Z")

</div>

_本帖最后由 network 于 2012-2-20 11:34 编辑_

E-mail：[network@90sec.org](mailto:network@90sec.org)

看了一下最新的ptcms小说小偷程序 ，发现之前的漏洞已经修补了，那么先看下如何修补这些漏洞的！  
都他妹的转载木版权  
看注册文件上次的写入资料

```php

  exit();
    }
    include '../data/user.php';
    $username=$_POST['username'];
    //写入资料信息
    $str=$password."\n".time()."\n".$_SERVER["REMOTE_ADDR"];
    $file='../data/user/'.$username.'/info.ptv';
    $result=$pt->writeto($file,$str);
    //建立积分文档
    $str='1'."\n".$pt_user_regpoint;
    $file='../data/user/'.$username.'/point.ptv';
    $result=$pt->writeto($file,$str);
    //建立推荐文档
    $file='../data/user/'.$username.'/vote.ptv';
    $str='0'."\n".time();
    $result=$pt->writeto($file,$str);
    //建立书架文档
    $str="♂♂♂♂♂♂♂♂♂♂\n♀♀♀♀♀♀♀♀♀♀";
    $file='../data/user/'.$username.'/mark.ptv';
    $result=$pt->writeto($file,$str);
	$pt_type='msg';
	$msg="注册成功，请您登录！";
	$url=PT_SITEURL."user/login.php";

```

♂  
♂  
♂  
♂  
♂  
♂  
♂  
♂  
♂  
♂  
♀  
♀  
♀  
♀  
♀  
♀  
♀  
♀  
♀  
♀  

php被改成了ptv，站内PM功能已经取消了。  
看下注册代码 case 3:  
if (isset($\_POST['username'])){  
if (!file\_exists('../data/user/'.$\_POST['username'].'/')){  
username=\_POST['username'];  
$password=MD5($\_POST['password']);  
}else{  
echo"\<script\>alert('该用户名已经存在！');location.href='reg.php?step=2';\</script\>";  
exit();很蛋疼的验证是否重名 由于没有带到数据库检测 而是直接验证程序内有没有这个文件名的文件夹，  
那么我们注册../../1.asp; 或者../../2.asp  
然后在书架或者收藏哪里插入一句话，  
对应的木马地址是[http://localhost/1.asp;/mark.ptv](http://localhost/1.asp;/mark.ptv)  
[http://localhost/1.asp/mark.ptv](http://localhost/1.asp/mark.ptv)  
ps://针对解析漏洞的 鸡肋

EXP 落叶已经写好 请在WVE里面 使用-update在线更新

---

<div class="post-metadata">

作者： ![user21](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/6bbea6/32.png) [@user21](https://forum.90sec.com/u/user21)\
发布日期： [2012 年2 月 18 日 08:48 UTC](https://forum.90sec.com/t/topic/3230/2 "2012-02-18T08:48:19Z")

</div>

膜拜大黒阔，谢谢你的0day

---

<div class="post-metadata">

作者： ![Hu0G4](https://forum.90sec.com/letter_avatar_proxy/v4/letter/h/f14d63/32.png) [@Hu0G4](https://forum.90sec.com/u/Hu0G4)\
发布日期： [2012 年2 月 18 日 11:40 UTC](https://forum.90sec.com/t/topic/3230/3 "2012-02-18T11:40:31Z")

</div>

{:4\_33:} 妹子杀手，自认为长的很很帅的的90后，灰主流， 又出漏洞了。

---

<div class="post-metadata">

作者： ![hack2012](https://forum.90sec.com/user_avatar/forum.90sec.com/hack2012/32/908_2.png) [@hack2012](https://forum.90sec.com/u/hack2012)\
发布日期： [2012 年2 月 18 日 11:53 UTC](https://forum.90sec.com/t/topic/3230/4 "2012-02-18T11:53:31Z")

</div>

不错的分析 ！！！！

---

<div class="post-metadata">

作者： ![cfking](https://forum.90sec.com/letter_avatar_proxy/v4/letter/c/3da27b/32.png) [@cfking](https://forum.90sec.com/u/cfking)\
发布日期： [2012 年2 月 18 日 13:40 UTC](https://forum.90sec.com/t/topic/3230/5 "2012-02-18T13:40:57Z")

</div>

操蛋用了这么久你发出来做甚

WVE exploit库已经更新 请各位本地在线更新  
命令 -update

---

<div class="post-metadata">

作者： ![M3loee](https://forum.90sec.com/user_avatar/forum.90sec.com/m3loee/32/11354_2.png) [@M3loee](https://forum.90sec.com/u/M3loee)\
发布日期： [2012 年2 月 18 日 14:07 UTC](https://forum.90sec.com/t/topic/3230/6 "2012-02-18T14:07:46Z")

</div>

膜拜LZ大黑阔 ~~~~~~

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年2 月 18 日 14:41 UTC](https://forum.90sec.com/t/topic/3230/7 "2012-02-18T14:41:13Z")

</div>

\*\*回复 [5#](http://www.90sec.org/redirect.php?goto=findpost&pid=15645&ptid=1525) _落叶_ \*\*

```
鄙人本着无私奉献 无私奉献 的论坛精神。。不要粗口呀

```

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年2 月 18 日 14:50 UTC](https://forum.90sec.com/t/topic/3230/8 "2012-02-18T14:50:18Z")

</div>

\*\*回复 [3#](http://www.90sec.org/redirect.php?goto=findpost&pid=15631&ptid=1525) _淡然_ \*\*

```
 是啊 我是全世界最帅的男人呢！

```

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年2 月 18 日 14:50 UTC](https://forum.90sec.com/t/topic/3230/9 "2012-02-18T14:50:41Z")

</div>

\*\*回复 [6#](http://www.90sec.org/redirect.php?goto=findpost&pid=15648&ptid=1525) _M3loee_ \*\*

```
膜拜你哦~

```

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年2 月 18 日 14:51 UTC](https://forum.90sec.com/t/topic/3230/10 "2012-02-18T14:51:05Z")

</div>

\*\*回复 [2#](http://www.90sec.org/redirect.php?goto=findpost&pid=15623&ptid=1525) _西\_决_ \*\*

```
求共享 求互换。各种求啊

```

---

<div class="post-metadata">

作者： ![kerling3389](https://forum.90sec.com/letter_avatar_proxy/v4/letter/k/dfb087/32.png) [@kerling3389](https://forum.90sec.com/u/kerling3389)\
发布日期： [2012 年2 月 19 日 04:46 UTC](https://forum.90sec.com/t/topic/3230/11 "2012-02-19T04:46:50Z")

</div>

我是来观摩大黑客的
