{"id":168,"date":"2010-11-19T14:42:00","date_gmt":"2010-11-19T14:42:00","guid":{"rendered":""},"modified":"2011-04-25T07:10:32","modified_gmt":"2011-04-25T07:10:32","slug":"tomcat%e8%bf%9c%e7%a8%8b%e6%8b%92%e7%bb%9d%e6%9c%8d%e5%8a%a1%e6%bc%8f%e6%b4%9e%e5%88%86%e6%9e%90cve-2010-2227","status":"publish","type":"post","link":"https:\/\/www.inbreak.net\/archives\/168.html","title":{"rendered":"Tomcat\u8fdc\u7a0b\u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e\u5206\u6790(CVE-2010-2227)"},"content":{"rendered":"

\u4f5c\u8005\uff1a\u7a7a\u865a\u6d6a\u5b50\u5fc3      \u51fa\u5904\uff1aIT\u4e13\u5bb6\u7f51<\/p>\n

\u3000\u3000\u672c\u7bc7\u662f\u4e2a\u5206\u6790POC\u7684\u8fc7\u7a0b\uff0c\u538b\u4e86N\u4e2a\u6708\u4e86\uff0c\u73b0\u5728\u624d\u53d1\u51fa\u6765\u3002\u4f7f\u7528\u5206\u6790\u51fa\u7684POC\uff0cTomcat\u9664\u4e86\u6700\u65b0\u7684\u7248\u672c(\u5177\u4f53\u89c1\u5b98\u7f51)\uff0c\u4ee5\u53caJBOSS\u9664\u4e86\u6700\u65b0\u7248\u672c\uff0c\u90fd\u53ef\u4ee5\u6253\uff0cPOC\u89c1\u6587\u7ae0\u3002JBOSS\u5b98\u65b9\u5df2\u7ecf\u5077\u5077\u53d1\u5e03\u4e86\u65b0\u7248\uff0c\u5176\u4e2d\u5305\u62ec\u6f0f\u6d1e\u4fee\u8865\uff0c\u4f46\u662f\u8fd8\u6ca1\u6709\u53d1\u5e03\u516c\u544a\u3002<\/p>\n

\u3000\u3000\u8fd9\u4e2a\u6f0f\u6d1e\u771f\u7684\u591f\u72e0!\u53ea\u9700\u8981\u4e00\u4e2a\u6570\u636e\u5305\uff0c\u76f4\u63a5\u6253\u6b7b\uff01\u89c1\u56fe\uff0c\u63a7\u5236\u53f0\u4fe1\u606f\u3002<\/p>\n

\u3000\u3000\u867d\u7136\u5b98\u65b9\u6ca1\u7ed9\u51faPOC\uff0c\u4f46\u662f\u901a\u8fc7\u7b80\u5355\u5206\u6790\uff0c\u5c31\u80fd\u641e\u51fa\u6765!<\/p>\n

\u3000\u3000(\u4e0b\u56fe\u662fTOMCAT\u53d7\u5230\u653b\u51fb\u65f6\u7206\u7684)<\/p>\n

 \"1.jpg\"<\/a><\/p>\n

\u3000\u3000\u7b80\u5355\u5206\u6790\uff1a<\/strong><\/p>\n

\u3000\u3000\u6211\u770b\u5230\u5b98\u65b9\u8865\u4e01\u662f\u8fd9\u6837\u6253\u7684\u3002<\/p>\n

\u3000\u3000http:\/\/svn.apache.org\/viewvc\/tomcat\/tc6.0.x\/trunk\/java\/org\/apache\/coyote\/http11\/Http11AprProcessor.java?r1=952026&r2=958977&pathrev=958977&diff_format=h<\/a><\/p>\n

\"2.jpg\"<\/a><\/p>\n

\u3000\u3000\u8fd9\u4e00\u53e5\u6539\u4e3a\u4e86<\/p>\n

\"3.jpg\"<\/a><\/p>\n

\u3000\u3000pluggableFilterIndex\u7684\u503c\u4e3a<\/p>\n

 \"4.jpg\"<\/a><\/p>\n

int\u7c7b\u578b\u7684\u6700\u5927\u503c\uff0c\u800c\u4e00\u4e2aint\u6c38\u8fdc\u4e0d\u4f1a\u5927\u4e8eint\u7c7b\u578b\u7684\u6700\u5927\u503c\uff0c\u6240\u4ee5\u8bf4\uff0c\u5b98\u65b9\u7684\u8865\u4e01\u4e2d\uff0c\u6c38\u8fdc\u4e0d\u5e0c\u671b\u7a0b\u5e8f\u80fd\u8d70\u5230\u8fd9\u91cc\u3002<\/p>\n

\u3000\u3000\u518d\u770b\u770b\u53e6\u4e00\u4e2a\u6587\u4ef6<\/p>\n

\u3000\u3000http:\/\/svn.apache.org\/viewvc\/tomcat\/tc6.0.x\/trunk\/java\/org\/apache\/coyote\/http11\/filters\/BufferedInputFilter.java?r1=533164&r2=958977&pathrev=958977&diff_format=h<\/a><\/p>\n

\u3000\u3000\u52a0\u5165\u4e86<\/p>\n

\u3000\u3000if (buffered != null) {<\/p>\n

\u3000\u3000\u7684\u5224\u65ad\u3002<\/p>\n

\u3000\u3000\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ea\u8981\u6211\u4eec\u53d1\u4e2a\u6570\u636e\u5305\uff0c\u8ba9\u7a0b\u5e8f\u6d41\u7a0b\u6b63\u5e38\u7684\u8d70\u5230\u8fd9\u91cc\u3002\u5e76\u4e14buffered\u662fnull\uff0c\u5373\u53ef\u89e6\u53d1\u6f0f\u6d1e\uff0c\u5b83\u5c31\u6302\u4e86!<\/p>\n

\u3000\u3000\u7ee7\u7eed\u5411\u524d\u5206\u6790\uff0c\u901a\u8fc7\u51e0\u6b21debug\uff0c\u5f88\u5bb9\u6613\u5b9a\u4f4d\u53ea\u8981\u6ee1\u8db3\u4e24\u4e2a\u6761\u4ef6\uff0c\u5c31\u53ef\u4ee5\u8d70\u5230\u8fd9\u91cc\uff1a<\/p>\n

\u3000\u30001\u3001http\u5934\u4e0atransfer-encoding: buffered<\/p>\n

\u3000\u30002\u3001\u4f7f\u7528HTTP\/1.1\u534f\u8bae<\/p>\n

\u3000\u3000POC<\/strong><\/p>\n

\u3000\u3000\u6240\u4ee5\u968f\u4fbf\u4e00\u53f0tomcat\uff0c\u975e\u6700\u65b0\u7248\u7684\u5c31\u53ef\u4ee5\uff0c\u4e4b\u540e\u53d1\u5305(POC)\uff0c\u8fd9\u90fd\u662fhead\u5934\uff1a<\/p>\n

\"5.jpg\"<\/a><\/p>\n

\u3000\u3000\u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u6362\u4e86\u4e24\u4e2atomcat6.X\u7684\u7248\u672c\uff0c\u90fd\u662f\u76f4\u63a5\u6302\u6389\uff01<\/p>\n

\u3000\u3000\u6211\u4eec\u770b\u4e0b\u5f02\u5e38\u4fe1\u606f(\u8fd9\u4e2a\u662fJBOSS\u7206\u7684)\uff1a<\/p>\n

\"6.jpg\"<\/a><\/p>\n

\u3000\u3000\u662forg.apache.coyote.http11.filters.BufferedInputFilter\u51fa\u7684\u5f02\u5e38\u3002<\/p>\n

\u3000\u3000\u7ecf\u8fc7\u6211\u540e\u6765\u6d4b\u8bd5\u53d1\u73b0\uff0cJBOSS\u4e5f\u5b58\u5728\u8fd9\u4e2a\u6f0f\u6d1e\uff0c\u539f\u56e0\u662fJBOSS\u4e5f\u4f7f\u7528\u4e86\u8fd9\u4e2a\u5305\uff0c\u5b83\u7684\u6838\u5fc3\u672c\u5c31\u662ftomcat\u7684!\u6253\u4e86JBOSS\u540e\uff0c\u6709\u65f6\u5019\u8fd8\u4f1a\u9020\u6210JBOSS\u91cd\u542f\uff0c\u5982\u679c\u7b2c\u4e00\u4e2a\u5305\u6ca1\u6253\u6b7b\uff0c\u5c31\u4e0d\u65ad\u7684\u53d1\u51e0\u5341\u4e2a\u5305\uff0c\u56de\u5934\u770b\u770b\uff0c\u5df2\u7ecf\u6b7b\u4e86\uff0c\u6548\u679c\u975e\u5e38\u660e\u663e!<\/p>\n

\u3000\u3000\u5b98\u65b9\u63a8\u8350\u4f7f\u7528\uff1a<\/strong><\/p>\n

\u3000\u3000apache-tomcat-6.0.28 \u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n

\u3000\u3000apache-tomcat-5.5.30 \u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u4e0d\u53d7\u5f71\u54cd\u3002<\/p>\n

\u3000\u3000\u5b98\u65b9\u63cf\u8ff0\u6f0f\u6d1e\u65f6\u63d0\u5230\uff0c\u8bf4\u5982\u679c\u524d\u7aef\u4f7f\u7528apache\u4ee3\u7406\uff0c\u5c31\u4e0d\u4f1a\u6709\u95ee\u9898\uff0c\u539f\u7406\u662fapache\u9047\u5230\u8fd9\u4e2aheader\u76f4\u63a5\u5c31\u88ab\u62e6\u622a\uff0c\u7136\u540e\u8fd4\u56de\u9519\u8bef\u4e86\u3002<\/p>\n

\u3000\u3000\u4f46\u662f\u8fd9\u4e5f\u8bb8\u5e76\u4e0d\u662f\u7edd\u5bf9\u5b89\u5168\uff0c\u5982\u679c\u6709apache\u548ctomcat\u5bf9\u67d0\u4e9b\u5b57\u7b26\u542b\u4e49\uff0c\u7406\u89e3\u7684\u4e0d\u4e00\u81f4\uff0c\u6216\u8005\u4e2d\u95f4\u5c42\u6709\u5b57\u7b26\u8fc7\u6ee4\u7684mod\u4e4b\u7c7b\uff0c\u4e5f\u8bb8\u4f1a\u88ab\u7ed5\u8fc7\u3002\u8fd9\u4e2a\u7eaf\u5c5eYY<\/strong>\u3002<\/p>\n

\u3000\u3000\u6211\u6d4b\u8bd5\u8fc7\u7684\u7248\u672c\uff1a<\/strong><\/p>\n

\u3000\u3000apache-tomcat-5.5.29 \u7ecf\u8fc7\u6211\u7684\u6d4b\u8bd5\uff0c\u4e00\u6253\u5c31\u6302!<\/p>\n

\u3000\u3000apache-tomcat-6.0.26 \u7ecf\u8fc7\u6211\u7684\u6d4b\u8bd5\uff0c\u6253\u4e86\u597d\u50cf\u6ca1\u6302\uff0c\u4f46\u662f\u62a5\u5f02\u5e38\u4e86\uff0c\u4e4b\u540e\u6240\u6709\u7684\u6b63\u5e38\u8bbf\u95ee\uff0c\u90fd\u4f1a\u62a5\u63a7\u5236\u53f0\u5f02\u5e38\uff0c\u6211\u76f8\u4fe1\u5b83\u4e5f\u575a\u6301\u4e0d\u4e86\u591a\u957f\u65f6\u95f4\uff0c\u8f6e\u8bad\u6253\u5c31\u4f1a\u6302\u3002<\/p>\n

\u3000\u3000Tomcat\u67d06.x\u4ee5\u53ca\u67d05.x\u7248\u672c\uff0c\u4e5f\u662f\u76f4\u63a5\u6302\uff0c\u6211\u5fd8\u4e86\u7248\u672c\u53f7\u4e86\u3002\u5982\u679c\u4f60\u7684\u662f\u5d4c\u5165\u5f0f\u7cfb\u7edf\u91cc\u5b89\u88c5\u4e86tomcat\u5bf9\u5916\u670d\u52a1\uff0c\u5c31\u81ea\u6c42\u591a\u798f\u5427\u3002<\/p>\n

\u3000\u3000jboss-6.0.0.20100429-M3 \u4e00\u6253\u5c31\u6302\uff0c\u4e0d\u65ad\u7684\u6253\uff0c\u4f1a\u91cd\u542f!<\/p>\n

\u3000\u3000\u5177\u4f53\u73b0\u8c61\uff1a<\/strong><\/p>\n

\u3000\u3000\u5148\u662f\u65e0\u6cd5\u8bbf\u95ee\uff0c\u4e4b\u540e\u662ftomcat\u4e0d\u77e5\u9053\u4ece\u54ea\u91cc\u5f04\u6765\u7684\u6587\u4ef6\uff0c\u76f4\u63a5\u5c55\u793a\u4e86\u3002<\/p>\n

\u3000\u3000\u6bcf\u6b21\u5237\u65b0\u90fd\u4f1a\u53d8\u6587\u4ef6\u5185\u5bb9\uff0c\u65e0\u8bba\u600e\u4e48\u663e\u793a\uff0c\u90fd\u4e0d\u662f\u6b63\u5e38\u9875\u9762\uff0c\u5e94\u8be5\u662fbuffer\u6302\u4e86!<\/p>\n

\u3000\u3000\u4e0b\u56fe\u5e94\u8be5\u662f\u4e2ahtm\u7684\uff0c\u4f46\u662f\u6211\u76f4\u63a5\u8bbf\u95ee\uff0c\u6ca1\u6709\u770b\u6e90\u7801\uff0c\u5c31\u662f\u8fd9\u6837\u7684\u9875\u9762\u3002<\/p>\n

\"7.jpg\"<\/a><\/p>\n

\u3000\u3000\u8865\u4e01\u548c\u63cf\u8ff0<\/strong>\u4ee5\u53ca\u89e3\u51b3\u529e\u6cd5\u5c31\u4e0d\u8bf4\u4e86\uff0c\u89c1\u5b98\u65b9\u516c\u544a\u3002<\/p>\n

\u3000\u3000http:\/\/cve.mitre.org\/cgi-bin\/cvename.cgi?name=CVE-2010-2227<\/a><\/p>\n

\u3000\u3000http:\/\/tomcat.apache.org\/security-6.html<\/a><\/p>\n

\u3000\u3000JBOSS\u5077\u5077\u4e0a\u4e86\u8865\u4e01\u7684\u7248\u672c\uff1a<\/strong><\/p>\n

\u3000\u3000http:\/\/repository.jboss.org\/jboss\/web\/2.0.0.GA_CP14-brew\/src\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

\u3000\u3000\u672c\u7bc7\u662f\u4e2a\u5206\u6790POC\u7684\u8fc7\u7a0b\uff0c\u538b\u4e86N\u4e2a\u6708\u4e86\uff0c\u73b0\u5728\u624d\u53d1\u51fa\u6765\u3002\u4f7f\u7528\u5206\u6790\u51fa\u7684POC\uff0cTomcat\u9664\u4e86\u6700\u65b0\u7684\u7248\u672c(\u5177\u4f53\u89c1\u5b98\u7f51)\uff0c\u4ee5\u53caJBOSS\u9664\u4e86\u6700\u65b0\u7248\u672c\uff0c\u90fd\u53ef\u4ee5\u6253\uff0cPOC\u89c1\u6587\u7ae0\u3002JBOSS\u5b98\u65b9\u5df2\u7ecf\u5077\u5077\u53d1\u5e03\u4e86\u65b0\u7248\uff0c\u5176\u4e2d\u5305\u62ec\u6f0f\u6d1e\u4fee\u8865\uff0c\u4f46\u662f\u8fd8\u6ca1\u6709\u53d1\u5e03\u516c\u544a\u3002<\/h5>\n

\u7ee7\u7eed\u9605\u8bfb »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[85,5],"tags":[75,74],"views":15024,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/168"}],"collection":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/comments?post=168"}],"version-history":[{"count":1,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/168\/revisions"}],"predecessor-version":[{"id":186,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/168\/revisions\/186"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}