Xwork\u7684bug\u95ee\u9898\uff1a<\/strong><\/p>\n\u3000\u3000\u89e3\u51b3\u4e86\u8fd9\u4e24\u4e2a\u95ee\u9898\uff0c\u5176\u5b9e\u5df2\u7ecf\u7ed9shellcode\u521b\u9020\u4e86\u5b8c\u5907\u7684\u73af\u5883\uff0c\u6309\u7167xwork\u7684\u903b\u8f91\uff0c\u5e94\u8be5\u76f4\u63a5\u8ba9\u6211\u4eec\u8c03\u7528\u9759\u6001\u65b9\u6cd5\u624d\u662f\uff0c\u4f46\u662f\u5728shellcode\u8fd0\u884c\u65f6\uff0c\u5c45\u7136\u7206\u51fa\u4e86\u7a7a\u6307\u9488\uff0c\u8fd9\u4e2a\u95ee\u9898\u6211\u7814\u7a76\u4e86\u597d\u4e45\u624d\u641e\u660e\u767d\uff0c\u539f\u6765\u662fxwork\u81ea\u5df1\u51fa\u4e86bug\uff0c\u5230\u4e86\u65b0\u7248\u672c\u65f6\uff0c\u624d\u4fee\u8865\u3002<\/p>\n
\u3000\u3000\u7ffb\u7ffbsvn\uff0c\u770b\u5230\u5728xwork2.1.2\u65f6\uff0c\u5077\u5077\u4fee\u6539\u4e86\u4e00\u6bb5\u4ee3\u7801\u3002<\/p>\n
\u3000\u3000SecurityMemberAccess\u8fd9\u4e2a\u7c7b\u539f\u6765\u6709\u4e2a\u8fd9\u6837\u7684\u65b9\u6cd5<\/p>\n
<\/p>\n
\u3000\u3000\u5230\u4e86xwork2.1.2\u65f6\uff0c\u6539\u4e3a\u4e86\uff1a<\/p>\n
<\/p>\n
\u3000\u3000\u6ce8\u610f\u6807\u7ea2\u7684\uff0c\u5982\u679cname==null\uff0c\u5c31\u8fd4\u56detrue\u3002<\/p>\n
\u3000\u3000\u4e3a\u4ec0\u4e48\u4f1a\u6709\u8fd9\u884c\u4ee3\u7801\u5462\uff1f<\/p>\n
\u3000\u3000\u5b83\u8c03\u7528isExcluded(name)\uff0c\u8fdb\u5165isExcluded\u65b9\u6cd5\u540e\uff0c\u505a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u9a8c\u8bc1\u3002<\/p>\n
<\/p>\n
\u3000\u3000\u5982\u679c\u4f20\u8fdb\u6765\u7684\u662f\u4e2aparamName\u662fnull\uff0c\u5e76\u4e14excludeProperties\u662f\u6709\u503c\u7684\uff0c\u5fc5\u7136\u62a5\u9519\u3002Xwork\u7684bug\u5c31\u662f\uff0c\u6240\u6709\u7684\u7248\u672c\uff0c\u8c03\u7528\u9759\u6001\u65b9\u6cd5\u65f6\uff0c\u90fd\u5fc5\u7136\u4f1a\u4f20\u8fdb\u6765\u4e00\u4e2anull\uff0c\u5e76\u4e14excludeProperties\u4e5f\u662f\u9ed8\u8ba4\u6709\u503c\u7684\u3002<\/p>\n
<\/p>\n
\u3000\u3000\u4efb\u4f55\u4e00\u4e2a\u9759\u6001\u65b9\u6cd5\u7684\u8c03\u7528\uff0c\u8fd9\u91cc\u4f20\u8fdb\u6765\u7684\u90fd\u662fnull\u3002<\/p>\n
\u3000\u3000\u4e5f\u5c31\u662f\u8bf4\uff0c\u8981\u8c03\u7528\u9759\u6001\u65b9\u6cd5\uff0c\u5c31\u5fc5\u987b\u8ba9excludeProperties\u8fd9\u4e2a\u5bb6\u4f19\u7684\u503c\uff0c\u662f\u4e00\u4e2a\u7a7a\u7684Set\u5bf9\u8c61\uff0c\u5426\u5219\u5bf9null\u5bf9\u6b63\u5219\u5339\u914d\uff0c\u5c31\u4f1a\u62a5\u9519\u3002<\/p>\n
\u3000\u3000excludeProperties\u662f\u4e2aSet\uff0c\u5728shell\u6267\u884c\u7684\u4e0a\u4e0b\u6587\u4e2d\uff0c\u5b83\u7684\u503c\u662f\u8fd9\u6837\u6765\u7684\uff1a<\/p>\n
\u3000\u3000xwork\u5904\u7406\u7528\u6237\u53d1\u8fdb\u6765\u7684ognl\u8868\u8fbe\u5f0f\u65f6\uff0c\u4f1a\u7528xwork\u7684SecurityMemberAccess\u505a\u6743\u9650\u5224\u65ad\uff0c\u4ee5\u4fdd\u8bc1\u9759\u6001\u65b9\u6cd5\u4e0d\u4f1a\u88ab\u4eba \u968f\u4fbf\u8c03\u7528\u3002\u539f\u7406\u662f\u4f20\u7ed9shell\u6267\u884c\u7684\u4e0a\u4e0b\u6587\u4e2d\u51e0\u4e2a\u9ed8\u8ba4\u914d\u7f6e\uff0c\u5176\u4e2d\u4e00\u4e2a\u662f\u9ed8\u8ba4\u7684allowStaticMethodAccess=true\uff0c\u4e5f\u4f1a\u7ed9 excludeProperties\u8fd9\u4e2aSet\u5bf9\u8c61\u4f1a\u88ab\u6dfb\u52a0\u4e00\u4e2avalue\uff0c\u7ed3\u679c\u5c31\u4e0d\u662f\u7a7a\u7684Set\u5bf9\u8c61\u4e86\u3002<\/p>\n
\u3000\u3000\u6240\u4ee5\uff0c\u5728shellcode\u4e0a\u4e0b\u6587\u4e2d\uff0c\u6267\u884c\u9759\u6001\u65b9\u6cd5\u5fc5\u7136\u4f1a\u51fa\u9519\u3002<\/p>\n
\u3000\u3000\u8ba9shellcode\u6b63\u5e38\u6267\u884c\uff0c\u89e3\u51b3\u65b9\u6cd5\u7684\u601d\u8def\u5c31\u662fnew\u4e00\u4e2a\u65b0\u7684HashSet\u3002<\/p>\n
<\/p>\n
\u3000\u3000\u4f46\u662f\u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u8fd9\u91cc\u8fd8\u662f\u4e0d\u80fd\u505anew\u7684\u64cd\u4f5c\uff0c\u56e0\u4e3anew\u7684\u65f6\u5019\uff0c\u4f1a\u8c03\u7528\u6784\u9020\u65b9\u6cd5\uff0c\u8fd9\u5b9e\u8d28\u4e0a\u8fd8\u662f\u5728\u8c03\u7528\u65b9\u6cd5\uff0c\u8c03\u7528\u65b9\u6cd5\u5c31\u4f1a\u51fa\u9519\u3002\u4e3a\u4e86\u8bc1\u660e\u6211\u7684\u731c \u6d4b\uff0cdebug\u8c03\u7528\u5230\u8fd9\u4e00\u6b65\u7684\u65f6\u5019\uff0c\u624b\u5de5\u4fee\u6539\u5b83\u4e3anew HashSet()\uff0c\u7acb\u523b\u5c31\u901a\u8fc7\u4e86\u3002\u4e0d\u80fdnew\uff0c\u53c8\u600e\u4e48\u80fd\u5f97\u5230\u4e00\u4e2a\u7a7a\u7684Set\u5462\uff1f\u8fd9\u662f\u6700\u540e\u4e00\u9053\u5173\u5361\u3002\u4e3a\u4e86\u641e\u5b9a\u5b83\uff0c\u6211\u751a\u81f3\u67e5\u4e86struts- default.xml\u5728\u5185\u5b58\u4e2d\u7684\u4f4d\u7f6e\uff0c\u8003\u8651\u662f\u4e0d\u662f\u4f7f\u7528ognl\u4fee\u6539\u6389\u3002<\/p>\n
\u3000\u3000\u56e0\u4e3a\u8fd9\u4e2a\u653e\u5f03\u4e86\u4e00\u6bb5\u65f6\u95f4\uff0c\u5f88\u90c1\u95f7\uff0c\u5f53\u6211\u518d\u6b21\u62fe\u8d77\u6765\uff0c\u5374\u7a81\u7136\u770b\u5230\u4e86\u8fd9\u4e2a\u503c\u7684\u9ed8\u8ba4\u503c\u3002<\/p>\n
<\/p>\n
\u3000\u3000\u8ddf\u8fdbemptySet();<\/p>\n
<\/p>\n
\u3000\u3000\u8fd9\u662f\u4e2a\u6709\u610f\u601d\u7684\u77e5\u8bc6\u70b9\uff0c\u6211\u4e5f\u662f\u7b2c\u4e00\u6b21\u4e86\u89e3\u5230\uff0c\u53ef\u4ee5\u4f7f\u7528EMPTY_SET\uff0c\u53d6\u5230\u4e00\u4e2a\u7a7a\u7684set\u3002<\/p>\n
\u3000\u3000\u4e8e\u662f\u5f53\u6211\u63d0\u4ea4\u67d0\u4e9b\u4e1c\u897f\uff0c\u8ba9<\/p>\n
<\/p>\n
\u3000\u3000\u8fd9\u4e00\u53e5\u8986\u76d6\u4e86\u9ed8\u8ba4\u7684\u90a3\u4e2a\u6709\u4e86\u4e00\u4e2a\u503c\u7684map\uff0c\u91cd\u65b0\u53d8\u6210\u4e86\u7a7a\u7684map\uff0c\u8fd9\u624d\u771f\u6b63\u7684\u8fbe\u5230\u4e86\u9759\u6001\u65b9\u6cd5\u7684\u7ec8\u6781\u8c03\u7528\u6761\u4ef6\u3002<\/p>\n
\u3000\u3000\u5176\u5b9e\u6211\u90fd\u5feb\u5410\u8840\u4e86\uff0c\u660e\u660e\u662fxwork\u81ea\u5df1\u4ee3\u7801\u5199\u7684\u4e0d\u4e25\u8c28\uff0c\u76f4\u5230\u4ed6\u4eec\u65b0\u7684\u7248\u672c\u624d\u53d1\u73b0\u8fd9\u4e2abug\uff0c\u5e76\u4fee\u8865\uff0c\u5c45\u7136\u5bfc\u81f4\u6211\u7814\u7a76\u6f0f\u6d1e\u7684\u540c\u65f6\u8fd8\u987a\u5e26\u5e2e\u4ed6\u4eec\u5904\u7406bug\u3002<\/p>\n
\u3000\u3000\u6700\u540e\u7ec8\u4e8e\u627e\u5230\u673a\u4f1a\u9119\u89c6\u4e00\u4e0b\u6f0f\u6d1e\u53d1\u73b0\u8005\u7684poc\uff0c\u4ed6\u8bf4\u8001\u7248\u672c\u7684struts2\u53ef\u4ee5\u4f7f\u7528XXX\u7684POC\uff0c\u7ecf\u8fc7\u6211\u6d4b\u8bd5\uff0c\u4e0d\u53ef\u884c\uff0c\u539f\u7406\u4e5f\u5f88\u7b80\u5355\uff0c\u672c\u6587\u8bf4\u4e86\uff0cPOC\u4e2d\u4e0d\u80fd\u6709\u7a7a\u683c\u3002<\/p>\n
\u3000\u3000\u8fd9\u53e5\u8bdd\u5373\u4f7f\u5728\u65b0\u7248\u672c\u4e2d\uff0c\u4e5f\u662f\u6ca1\u4ec0\u4e48\u5f71\u54cd\u7684\uff0c\u867d\u7136\u4f1a\u6539\u53d8\u4e00\u4e2a\u503c\uff0c\u4f46\u662f\u4e0d\u53d7\u5565\u5f71\u54cd\uff0c shellcode\u4e2d\uff0c\u6709\u4e86\u8fd9\u53e5\u8bdd\uff0c\u5c31\u517c\u5bb9\u65b0\u8001\u7248\u672c\uff0c\u4e00\u5207\u901a\u6740\u4e86!<\/p>\n
\u3000\u3000\u6700\u540e\u51d1\u51fa\u901a\u67400DAY\u5728\u8fd9\u91cc\uff1a<\/strong><\/p>\n\u3000\u3000\u88ab\u548c\u8c10\u4e86\uff0c\u6ca1\u529e\u6cd5\uff0c\u6bd5\u7adf\u5728\u4e92\u8054\u7f51\u516c\u53f8\u91cc\uff0c\u8981\u8003\u8651\u5230\u5176\u4ed6\u4e92\u8054\u7f51\u516c\u53f8\u540c\u884c\u7684\u5904\u5883\uff0c\u867d\u7136\u4ed6\u4eec\u4e0d\u4e00\u5b9a\u90fd\u662f\u6f0f\u6d1e\u516c\u5e03\u7684POC\u4e0d\u80fd\u6253\u7684\u7248\u672c\u3002<\/strong><\/p>\n\u3000\u3000POC\uff0c\u4e0d\u8981\u627e\u6211\u8981\u4e86\uff0c\u672c\u6587\u4ec5\u4ec5\u8bf4\u4e0b\u6280\u672f\u7814\u7a76\u3002<\/p>\n
\u3000\u3000\u56de\u987e\u4e0b\uff1a<\/strong><\/p>\n\u3000\u3000\u9002\u5408\u65b0\u7248\u672c\u7ed5\u8fc7\u53cc\u5f15\u53f7\u548c\\u0023\u9632\u5fa1\u7684poc\uff1a<\/p>\n
<\/p>\n
\u3000\u3000\u9002\u5408\u65b0\u7248\u672c\u7ed5\u8fc7\\u0023\u7684poc<\/p>\n
<\/p>\n
\u3000\u3000\u4ec5\u4ec5\u9002\u7528\u8001\u7248\u672c(struts2.0.12)\u7684POC<\/p>\n
<\/p>\n
\u3000\u3000\u4ec5\u4ec5\u9002\u7528\u65b0\u7248\u672c\u7684\u4e5f\u5c31\u662f\u6f0f\u6d1e\u53d1\u73b0\u8005\u653e\u51fa\u6765\u7684poc<\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u3000\u3000\u5728\u6f0f\u6d1e\u53d1\u73b0\u8005\u53d1\u5e03\u7684POC\u4e2d\uff0c\u5e76\u4e0d\u80fd\u5f71\u54cdxwork 2.1.2\u4e4b\u524d\u7684\u4e00\u4e9b\u7248\u672c(\u8fd9\u4e2a\u7248\u672c\u4e4b\u524d\u7684\u4e00\u4e9b\u7248\u672c\uff0c\u4e0b\u6587\u4f1a\u7edf\u79f0\u4e3a\u8001\u7248\u672c\uff0c\u4e4b\u540e\u7684\u53eb\u505a\u65b0\u7248)\uff0c\u4f8b\u5982struts 2.0.14(\u5c31\u662fstruts\u4fee\u8865\u4e86N\u4e2a\u9ad8\u5371\u6f0f\u6d1e\u540e\u7684\u7b2c\u4e00\u4e2a\u7248\u672c\uff0c\u6700\u5e38\u7528\u7684\u7248\u672c)\u5176\u5b9e\u662f\u4e0d\u80fd\u6253\u7684\uff0c\u672c\u6587\u4f1a\u5206\u6790\u8fd9\u4e2a\u6f0f\u6d1e\u7684\u8d77\u56e0\uff0c\u548c\u7ed3\u679c\uff0c\u4e5f\u4f1a\u7ed9\u51fa\u901a\u6740 POC\u7684\u601d\u8def\u3002<\/p>\n
\u3000\u3000\u672c\u6587\u5e0c\u671b\u770b\u61c2\u6587\u7ae0\u7684\u4eba\uff0c\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u5206\u6790\u601d\u8def\uff0c\u4f46\u662f\u4e0d\u5e0c\u671b\u5927\u5bb6\u62ff\u7740POC\u5230\u5904\u641e\u7ad9\uff0c\u672c\u6587\u4e0d\u63d0\u4f9b\u4efb\u4f55\u9ed1\u5ba2\u5de5\u5177\uff0c\u6240\u6709\u7684POC\uff0c\u90fd\u662f\u5df2\u7ecf\u516c\u5e03\u8fc7\uff0c\u65e0\u6570\u4eba\u90fd\u77e5\u9053\u7684\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,5],"tags":[70,71,72,73],"views":14277,"_links":{"self":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/167"}],"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=167"}],"version-history":[{"count":1,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/167\/revisions"}],"predecessor-version":[{"id":187,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/posts\/167\/revisions\/187"}],"wp:attachment":[{"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/media?parent=167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/categories?post=167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inbreak.net\/wp-json\/wp\/v2\/tags?post=167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}