漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2012-09322
漏洞标题:图虫网某系统补丁不及时导致危害!
相关厂商:图虫网
漏洞作者: _Evil
提交时间:2012-07-07 18:21
修复时间:2012-08-21 18:22
公开时间:2012-08-21 18:22
漏洞类型:系统/服务补丁不及时
危害等级:高
自评Rank:20
漏洞状态:厂商已经确认
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2012-07-07: 细节已通知厂商并且等待厂商处理中
2012-07-10: 厂商已经确认,细节仅向厂商公开
2012-07-20: 细节向核心白帽子及相关领域专家公开
2012-07-30: 细节向普通白帽子公开
2012-08-09: 细节向实习白帽子公开
2012-08-21: 细节向公众公开
简要描述:
= =忽略了我发的Xss
详细说明:
漏洞证明:
<string>Method "PD9waHAKLyoqCiAqIFplbmQgRnJhbWV3b3JrCiAqCiAqIExJQ0VOU0UKICoKICogVGhpcyBzb3VyY2UgZmlsZSBpcyBzdWJqZWN0IHRvIHRoZSBuZXcgQlNEIGxpY2Vuc2UgdGhhdCBpcyBidW5kbGVkCiAqIHdpdGggdGhpcyBwYWNrYWdlIGluIHRoZSBmaWxlIExJQ0VOU0UudHh0LgogKiBJdCBpcyBhbHNvIGF2YWlsYWJsZSB0aHJvdWdoIHRoZSB3b3JsZC13aWRlLXdlYiBhdCB0aGlzIFVSTDoKICogaHR0cDovL2ZyYW1ld29yay56ZW5kLmNvbS9saWNlbnNlL25ldy1ic2QKICogSWYgeW91IGRpZCBub3QgcmVjZWl2ZSBhIGNvcHkgb2YgdGhlIGxpY2Vuc2UgYW5kIGFyZSB1bmFibGUgdG8KICogb2J0YWluIGl0IHRocm91Z2ggdGhlIHdvcmxkLXdpZGUtd2ViLCBwbGVhc2Ugc2VuZCBhbiBlbWFpbAogKiB0byBsaWNlbnNlQHplbmQuY29tIHNvIHdlIGNhbiBzZW5kIHlvdSBhIGNvcHkgaW1tZWRpYXRlbHkuCiAqCiAqIEBjYXR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cnJheSgpOwoKICAgIC8qKgogICAgICogWE1MLVJQQyByZXF1ZXN0IHBhcmFtcwogICAgICogQHZhciBhcnJheQogICAgICovCiAgICBwcm90ZWN0ZWQgJF94bWxScGNQYXJhbXMgPSBhcnJheSgpOwoKICAgIC8qKgogICAgICogQ3JlYXRlIGEgbmV3IFhNTC1SUEMgcmVxdWVzdAogICAgICoKICAgICAqIEBwYXJhbSBzdHJpbmcgJG1ldGhvZCAob3B0aW9uYWwpCiAgICAgKiBAcGFyYW0gYXJyYXkgJHBhcmFtcyAgKG9wdGlvbmFsKQogICAgICovCiAgICBwdWJsaWMgZnVuY3Rpb24gX19jb25zdHJ1Y3QoJG1ldGhvZCA9IG51bGwsICRwYXJhbXMgPSBudWxsKQogICAgewogICAgICAgIGlmICgkbWV0aG9kICE9PSBudWxsKSB7CiAgICAgICAgICAgICR0aGlzLT5zZXRNZXRob2QoJG1ldGhvZCk7CiAgICAgICAgfQoKICAgICAgICBpZiAoJHBhcmFtcyAhPT0gbnVsbCkgewogICAgICAgICAgICAkdGhpcy0+c2V0UGFyYW1zKCRwYXJhbXMpOwogICAgICAgIH0KICAgIH0KCgogICAgLyoqCiAgICAgKiBTZXQgZW5jb2RpbmcgdG8gdXNlIGluIHJlcXVlc3QKICAgICAqCiAgICAgKiBAcGFyYW0gc3RyaW5nICRlbmNvZGluZwogICAgICogQHJldHVybiBaZW5kX1htbFJwY19SZXF1ZXN0CiAgICAgKi8KICAgIHB1YmxpYyBmdW5jdGlvbiBzZXRFbmNvZGluZygkZW5jb2RpbmcpCiAgICB7CiAgICAgICAgJHRoaXMtPl9lbmNvZGluZyA9ICRlbmNvZGluZzsKICAgICAgICBaZW5kX1htbFJwY19WYWx1ZTo6c2V0RW5jb2RpbmcoJGVuY29kaW5nKTsKICAgICAgICByZXR1cm4gJHRoaXM7CiAgICB9CgogICAgLyoqCiAgICAgKiBSZXRyaWV2ZSBjdXJyZW50IHJlcXVlc3QgZW5jb2RpbmcKICAgICAqCiAgICAgKiBAcmV0dXJuIHN0cmluZwogICAgICovCiAgICBwdWJsaWMgZnVuY3Rpb24gZ2V0RW5jb2RpbmcoKQogICAgewogICAgICAgIHJldHVybiAkdGhpcy0+X2VuY29kaW5nOwogICAgfQoKICAgIC8qKgogICAgICogU2V0IG1ldGhvZCB0byBjYWxsCiAgICAgKgogICAgICogQHBhcmFtIHN0cmluZyAkbWV0aG9kCiAgICAgKiBAcmV0dXJuIGJvb2xlYW4gUmV0dXJucyB0cnVlIG9uIHN1Y2Nlc3MsIGZhbHNlIGlmIG1ldGhvZCBuYW1lIGlzIGludmFsaWQKICAgICAqLwogICAgcHVibGljIGZ1bmN0aW9uIHNldE1ldGhvZCgkbWV0aG9kKQogICAgewogICAgICAgIGlmICghaXNfc3RyaW5nKCRtZXRob2QpIHx8ICFwcmVnX21hdGNoKCcvXlthLXowLTlfLjpcL10rJC9pJywgJG1ldGhvZCkpIHsKICAgICAgICAgICAgJHRoaXMtPl9mYXVsdCA9IG5ldyBaZW5kX1htbFJwY19GYXVsdCg2MzQsICdJbnZhbGlkIG1ldGhvZCBuYW1lICgiJyAuICRtZXRob2QgLiAnIiknKTsKICAgICAgICAgICAgJHRoaXMtPl9mYXVsdC0+c2V0RW5jb2RpbmcoJHRoaXMtPmdldEVuY29kaW5nKCkpOwogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICAkdGhpcy0+X21ldGhvZCA9ICRtZXRob2Q7CiAgICAgICAgcmV0dXJuIHRydWU7CiAgICB9CgogICAgLyoqCiAgICAgKiBSZXRyaWV2ZSBjYWxsIG1ldGhvZAogICAgICoKICAgICAqIEByZXR1cm4gc3RyaW5nCiAgICAgKi8KICAgIHB1YmxpYyBmdW5jdGlvbiBnZXRNZXRob2QoKQogICAgewogICAgICAgIHJldHVybiAkdGhpcy0+X21ldGhvZDsKICAgIH0KCiAgICAvKioKICAgICAqIEFkZCBhIHBhcmFtZXRlciB0byB0aGUgcGFyYW1ldGVyIHN0YWNrCiAgICAgKgogICAgICogQWRkcyBhIHBhcmFtZXRlciB0byB0aGUgcGFyYW1ldGVyIHN0YWNrLCBhc3NvY2lhdGluZyBpdCB3aXRoIHRoZSB0eXBlCiAgICAgKiAkdHlwZSBpZiBwcm92aWRlZAogICAgICoKICAgICAqIEBwYXJhbSBtaXhlZCAkdmFsdWUKICAgICAqIEBwYXJhbSBzdHJpbmcgJHR5cGUgT3B0aW9uYWw7IHR5cGUgaGludGluZwogICAgICogQHJldHVybiB2b2lkCiAgICAgKi8KICAgIHB1YmxpYyBmdW5jdGlvbiBhZGRQYXJhbSgkdmFsdWUsICR0eXBlID0gbnVsbCkKICAgIHsKICAgICAgICAkdGhpcy0+X3BhcmFtc1tdID0gJHZhbHVlOwogICAgICAgIGlmIChudWxsID09PSAkdHlwZSkgewogICAgICAgICAgICAvLyBEZXRlY3QgdHlwZSBpZiBub3QgcHJvdmlkZWQgZXhwbGljaXRseQogICAgICAgICAgICBpZiAoJHZhbHVlIGluc3RhbmNlb2YgWmVuZF9YbWxScGNfVmFsdWUpIHsKICAgICAgICAgICAgICAgICR0eXBlID0gJHZhbHVlLT5nZXRUeXBlKCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAkeG1sUnBjVmFsdWUgPSBaZW5kX1htbFJwY19WYWx1ZTo6Z2V0WG1sUnBjVmFsdWUoJHZhbHVlKTsKICAgICAgICAgICAgICAgICR0eXBlICAgICAgICA9ICR4bWxScGNWYWx1ZS0+Z2V0VHlwZSgpOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgICR0aGlzLT5fdHlwZXNbXSAgPSAkdHlwZTsKICAgICAgICAkdGhpcy0+X3htbFJwY1BhcmFtc1tdID0gYXJyYXkoJ3ZhbHVlJyA9PiAkdmFsdWUsICd0eXBlJyA9PiAkdHlwZSk7CiAgICB9CgogICAgLyoqCiAgICAgKiBTZXQgdGhlIHBhcmFtZXRlcnMgYXJyYXkKICAgICAqCiAgICAgKiBJZ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ICAkdHlwZXMgICAgICA9IGFycmF5KCk7CiAgICAgICAgICAgICR3ZWxsRm9ybWVkID0gdHJ1ZTsKICAgICAgICAgICAgZm9yZWFjaCAoJGFyZ3ZbMF0gYXMgJGFyZykgewogICAgICAgICAgICAgICAgaWYgKCFpc19hcnJheSgkYXJnKSB8fCAhaXNzZXQoJGFyZ1sndmFsdWUnXSkpIHsKICAgICAgICAgICAgICAgICAgICAkd2VsbEZvcm1lZCA9IGZhbHNlOwogICAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgJHBhcmFtc1tdID0gJGFyZ1sndmFsdWUnXTsKCiAgICAgICAgICAgICAgICBpZiAoIWlzc2V0KCRhcmdbJ3R5cGUnXSkpIHsKICAgICAgICAgICAgICAgICAgICAkeG1sUnBjVmFsdWUgPSBaZW5kX1htbFJwY19WYWx1ZTo6Z2V0WG1sUnBjVmFsdWUoJGFyZ1sndmFsdWUnXSk7CiAgICAgICAgICAgICAgICAgICAgJGFyZ1sndHlwZSddID0gJHhtbFJwY1ZhbHVlLT5nZXRUeXBlKCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAkdHlwZXNbXSA9ICRhcmdbJ3R5cGUnXTsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoJHdlbGxGb3JtZWQpIHsKICAgICAgICAgICAgICAgICR0aGlzLT5feG1sUnBjUGFyYW1zID0gJGFyZ3ZbMF07CiAgICAgICAgICAgICAgICAkdGhpcy0+X3BhcmFtcyA9ICRwYXJhbXM7CiAgICAgICAgICAgICAgICAkdGhpcy0+X3R5cGVzICA9ICR0eXBlczsKICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICR0aGlzLT5fcGFyYW1zID0gJGFyZ3ZbMF07CiAgICAgICAgICAgICAgICAkdGhpcy0+X3R5cGVzICA9IGFycmF5KCk7CiAgICAgICAgICAgICAgICAkeG1sUnBjUGFyYW1zICA9IGFycmF5KCk7CiAgICAgICAgICAgICAgICBmb3JlYWNoICgkYXJndlswXSBhcyAkYXJnKSB7CiAgICAgICAgICAgICAgICAgICAgaWYgKCRhcmcgaW5zdGFuY2VvZiBaZW5kX1htbFJwY19WYWx1ZSkgewogICAgICAgICAgICAgICAgICAgICAgICAkdHlwZSA9ICRhcmctPmdldFR5cGUoKTsKICAgICAgICAgICAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICAkeG1sUnBjVmFsdWUgPSBaZW5kX1htbFJwY19WYWx1ZTo6Z2V0WG1sUnBjVmFsdWUoJGFyZyk7CiAgICAgICAgICAgICAgICAgICAgICAgICR0eXBlICAgICAgICA9ICR4bWxScGNWYWx1ZS0+Z2V0VHlwZSgpOwogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAkeG1sUnBjUGFyYW1zW10gPSBhcnJheSgndmFsdWUnID0+ICRhcmcsICd0eXBlJyA9PiAkdHlwZSk7CiAgICAgICAgICAgICAgICAgICAgJHRoaXMtPl90eXBlc1tdID0gJHR5cGU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAkdGhpcy0+X3htbFJwY1BhcmFtcyA9ICR4bWxScGNQYXJhbXM7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuOwogICAgICAgIH0KCiAgICAgICAgJHRoaXMtPl9wYXJhbXMgPSAkYXJndjsKICAgICAgICAkdGhpcy0+X3R5cGVzICA9IGFycmF5KCk7CiAgICAgICAgJHhtbFJwY1BhcmFtcyAgPSBhcnJheSgpOwogICAgICAgIGZvcmVhY2ggKCRhcmd2IGFzICRhcmcpIHsKICAgICAgICAgICAgaWYgKCRhcmcgaW5zdGFuY2VvZiBaZW5kX1htbFJwY19WYWx1ZSkgewogICAgICAgICAgICAgICAgJHR5cGUgPSAkYXJnLT5nZXRUeXBlKCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAkeG1sUnBjVmFsdWUgPSBaZW5kX1htbFJwY19WYWx1ZTo6Z2V0WG1sUnBjVmFsdWUoJGFyZyk7CiAgICAgICAgICAgICAgICAkdHlwZSAgICAgICAgPSAkeG1sUnBjVmFsdWUtPmdldFR5cGUoKTsKICAgICAgICAgICAgfQogICAgICAgICAgICAkeG1sUnBjUGFyYW1zW10gPSBhcnJheSgndmFsdWUnID0+ICRhcmcsICd0eXBlJyA9PiAkdHlwZSk7CiAgICAgICAgICAgICR0aGlzLT5fdHlwZXNbXSA9ICR0eXBlOwogICAgICAgIH0KICAgICAgICAkdGhpcy0+X3htbFJwY1BhcmFtcyA9ICR4bWxScGNQYXJhbXM7CiAgICB9CgogICAgLyoqCiAgICAgKiBSZXRyaWV2ZSB0aGUgYXJyYXkgb2YgcGFyYW1ldGVycwogICAgICoKICAgICAqIEByZXR1cm4gYXJyYXkKICAgICAqLwogICAgcHVibGljIGZ1bmN0aW9uIGdldFBhcmFtcygpCiAgICB7CiAgICAgICAgcmV0dXJuICR0aGlzLT5fcGFyYW1zOwogICAgfQoKICAgIC8qKgogICAgICogUmV0dXJuIHBhcmFtZXRlciB0eXBlcwogICAgICoKICAgICAqIEByZXR1cm4gYXJyYXkKICAgICAqLwogICAgcHVibGljIGZ1bmN0aW9uIGdldFR5cGVzKCkKICAgIHsKICAgICAgICByZXR1cm4gJHRoaXMtPl90eXBlczsKICAgIH0KCiAgICAvKioKICAgICAqIExvYWQgWE1MIGFuZCBwYXJzZSBpbnRvIHJlcXVlc3QgY29tcG9uZW50cwogICAgICoKICAgICAqIEBwYXJhbSBzdHJpbmcgJHJlcXVlc3QKICAgICAqIEByZXR1cm4gYm9vbGVhbiBUcnVlIG9uIHN1Y2Nlc3MsIGZhbHNlIGlmIGFuIGVycm9yIG9jY3VycmVkLgogICAgICovCiAgICBwdWJsaWMgZnVuY3Rpb24gbG9hZFhtbCgkcmVxdWVzdCkKICAgIHsKICAgICAgICBpZiAoIWlzX3N0cmluZygkcmVxdWVzdCkpIHsKICAgICAgIC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ICAgICAgICAgICRhcmd2ICA9IGFycmF5KCk7CiAgICAgICAgICAgIGZvcmVhY2ggKCR4bWwtPnBhcmFtcy0+Y2hpbGRyZW4oKSBhcyAkcGFyYW0pIHsKICAgICAgICAgICAgICAgIGlmICghaXNzZXQoJHBhcmFtLT52YWx1ZSkpIHsKICAgICAgICAgICAgICAgICAgICAkdGhpcy0+X2ZhdWx0ID0gbmV3IFplbmRfWG1sUnBjX0ZhdWx0KDYzMyk7CiAgICAgICAgICAgICAgICAgICAgJHRoaXMtPl9mYXVsdC0+c2V0RW5jb2RpbmcoJHRoaXMtPmdldEVuY29kaW5nKCkpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICAgICAgICAgIH0KCiAgICAgICAgICAgICAgICB0cnkgewogICAgICAgICAgICAgICAgICAgICRwYXJhbSAgID0gWmVuZF9YbWxScGNfVmFsdWU6OmdldFhtbFJwY1ZhbHVlKCRwYXJhbS0+dmFsdWUsIFplbmRfWG1sUnBjX1ZhbHVlOjpYTUxfU1RSSU5HKTsKICAgICAgICAgICAgICAgICAgICAkdHlwZXNbXSA9ICRwYXJhbS0+Z2V0VHlwZSgpOwogICAgICAgICAgICAgICAgICAgICRhcmd2W10gID0gJHBhcmFtLT5nZXRWYWx1ZSgpOwogICAgICAgICAgICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uICRlKSB7CiAgICAgICAgICAgICAgICAgICAgJHRoaXMtPl9mYXVsdCA9IG5ldyBaZW5kX1htbFJwY19GYXVsdCg2MzYpOwogICAgICAgICAgICAgICAgICAgICR0aGlzLT5fZmF1bHQtPnNldEVuY29kaW5nKCR0aGlzLT5nZXRFbmNvZGluZygpKTsKICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgICR0aGlzLT5fdHlwZXMgID0gJHR5cGVzOwogICAgICAgICAgICAkdGhpcy0+X3BhcmFtcyA9IC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hcmFtWyd0eXBlJ10pID8gJHBhcmFtWyd0eXBlJ10gOiBaZW5kX1htbFJwY19WYWx1ZTo6QVVUT19ERVRFQ1RfVFlQRTsKCiAgICAgICAgICAgICAgICBpZiAoISR2YWx1ZSBpbnN0YW5jZW9mIFplbmRfWG1sUnBjX1ZhbHVlKSB7CiAgICAgICAgICAgICAgICAgICAgJHZhbHVlID0gWmVuZF9YbWxScGNfVmFsdWU6OmdldFhtbFJwY1ZhbHVlKCR2YWx1ZSwgJHR5cGUpOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgJHBhcmFtc1tdID0gJHZhbHVlOwogICAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gJHBhcmFtczsKICAgIH0KCiAgICAvKioKICAgICAqIENyZWF0ZSBYTUwgcmVxdWVzdAogICAgICoKICAgICAqIEByZXR1cm4gc3RyaW5nCiAgICAgKi8KICAgIHB1YmxpYyBmdW5jdGlvbiBzYXZlWG1sKCkKICAgIHsKICAgICAgICAkYXJncyAgID0gJHRoaXMtPl9nZXRYbWxScGNQYXJhbXMoKTsKICAgICAgICAkbWV0aG9kID0gJHRoaXMtPmdldE1ldGhvZCgpOwoKICAgICAgICAkZ2VuZXJhdG9yID0gWmVuZF9YbWxScGNfVmFsdWU6OmdldEdlbmVyYXRvcigpOwogICAgICAgICRnZW5lcmF0b3ItPm9wZW5FbGVtZW50KCdtZXRob2RDYWxsJykKICAgICAgICAgICAgICAgICAgLT5vcGVuRWxlbWVudCgnbWV0aG9kTmFtZScsICRtZXRob2QpCiAgICAgICAgICAgICAgICAgIC0+Y2xvc2VFbGVtZW50KCdtZXRob2ROYW1lJyk7CgogICAgICAgIGlmIChpc19hcnJheSgkYXJncykgJiYgY291bnQoJGFyZ3MpKSB7CiAgICAgICAgICAgICRnZW5lcmF0b3ItPm9wZW5FbGVtZW50KCdwYXJhbXMnKTsKCiAgICAgICAgICAgIGZvcmVhY2ggKCRhcmdzIGFzICRhcmcpIHsKICAgICAgICAgICAgICAgICRnZW5lcmF0b3ItPm9wZW5FbGVtZW50KCdwYXJhbScpOwogICAgICAgICAgICAgICAgJGFyZy0+Z2VuZXJhdGVYbWwoKTsKICAgICAgICAgICAgICAgICRnZW5lcmF0b3ItPmNsb3NlRWxlbWVudCgncGFyYW0nKTsKICAgICAgICAgICAgfQogICAgICAgICAgICAkZ2VuZXJhdG9yLT5jbG9zZUVsZW1lbnQoJ3BhcmFtcycpOwogICAgICAgIH0KICAgICAgICAkZ2VuZXJhdG9yLT5jbG9zZUVsZW1lbnQoJ21ldGhvZENhbGwnKTsKCiAgICAgICAgcmV0dXJuICRnZW5lcmF0b3ItPmZsdXNoKCk7CiAgICB9CgogICAgLyoqCiAgICAgKiBSZXR1cm4gWE1MIHJlcXVlc3QKICAgICAqCiAgICAgKiBAcmV0dXJuIHN0cmluZwogICAgICovCiAgICBwdWJsaWMgZnVuY3Rpb24gX190b1N0cmluZygpCiAgICB7CiAgICAgICAgcmV0dXJuICR0aGlzLT5zYXZlWE1MKCk7CiAgICB9Cn0K" does not exist</string>
base64的解密下知道了。
修复方案:
http://zone.wooyun.org/content/508 利用+修复
自己看zendframework文档设置好爆错问题。
WooYun: 图虫网存储xss
求礼物~有了礼物有激情继续帮你们找安全问题.
版权声明:转载请注明来源 _Evil@乌云
漏洞回应
厂商回应:
危害等级:高
漏洞Rank:15
确认时间:2012-07-10 13:50
厂商回复:
谢谢,我们用的Zend Framework版本比较老,没有时间升级。
这个问题我们会找时间解决的。
最新状态:
暂无