{"id":3174,"date":"2023-06-19T11:06:43","date_gmt":"2023-06-19T03:06:43","guid":{"rendered":"http:\/\/www.gzwangan.com\/?p=3174"},"modified":"2023-06-19T11:08:38","modified_gmt":"2023-06-19T03:08:38","slug":"apache-struts-2%e6%8b%92%e7%bb%9d%e6%9c%8d%e5%8a%a1%e6%bc%8f%e6%b4%9e","status":"publish","type":"post","link":"http:\/\/www.gzwangan.com\/?p=3174","title":{"rendered":"Apache Struts 2\u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"3174\" class=\"elementor elementor-3174\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-57cd9642 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"57cd9642\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-37c68a3d\" data-id=\"37c68a3d\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7b22f208 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"7b22f208\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-645e37d2\" data-id=\"645e37d2\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5546fd78 elementor-widget elementor-widget-heading\" data-id=\"5546fd78\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u5b89\u5168\u52a8\u6001<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-7656b6a3 elementor-section-full_width xi elementor-section-height-default elementor-section-height-default\" data-id=\"7656b6a3\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-604d4129\" data-id=\"604d4129\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2f0fcbf8 elementor-widget elementor-widget-heading\" data-id=\"2f0fcbf8\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"\/?page_id=561\">\u884c\u4e1a\u52a8\u6001<\/a><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-759e611a elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"759e611a\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-76b24073\" data-id=\"76b24073\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b90ca8e elementor-widget elementor-widget-heading\" data-id=\"b90ca8e\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"\/?page_id=566\">\u6f0f\u6d1e\u52a8\u6001<\/a><\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-5667ca29 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"5667ca29\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-inner-column elementor-element elementor-element-24fb6cd7\" data-id=\"24fb6cd7\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-6fe01e95 elementor-widget elementor-widget-heading\" data-id=\"6fe01e95\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">\u8054\u7cfb\u65b9\u5f0f<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6fc781d6 elementor-widget elementor-widget-text-editor\" data-id=\"6fc781d6\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>\u5730\u5740\uff1a\u00a0\u5e7f\u5dde\u5e02\u8d8a\u79c0\u533a\u4e1c\u98ce\u4e1c\u8def750\u53f7\u5e7f\u8054\u5927\u53a613\u697c1307-1309\u5ba4<br \/>\u7535\u8bdd\uff1a18898400087<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-1ce2b202\" data-id=\"1ce2b202\" data-element_type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-2ff33947 elementor-widget elementor-widget-text-editor\" data-id=\"2ff33947\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<ul>\n<li style=\"text-align: left;\"><span style=\"color: #000000;\">\u6f0f\u6d1e\u7f16\u53f7\uff1a<\/span><span style=\"color: #000000;\">CVE-2023-34149<br><\/span><\/li>\n<li><span style=\"color: #000000;\">\u6f0f\u6d1e\u7c7b\u578b\uff1a<\/span>\u62d2\u7edd\u670d\u52a1<\/li>\n<li><span style=\"color: #000000;\">\u6f0f\u6d1e\u7b49\u7ea7\uff1a<\/span>\u4e2d\u5371<\/li>\n<li><span style=\"color: #000000;\">\u53d1\u5e03\u65f6\u95f4\uff1a<\/span>2023-06-15<\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><\/p>\n<p style=\"padding-left: 40px;\"><span style=\"color: #000000;\">\u6f0f\u6d1e\u63cf\u8ff0\uff1a<\/span><\/p>\n<p style=\"padding-left: 40px;\">Apache Struts 2 \u662f\u4e00\u4e2a\u514d\u8d39\u3001\u5f00\u6e90\u7684MVC\u6846\u67b6\uff0c\u7528\u4e8e\u521b\u5efaJava Web\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p style=\"padding-left: 40px;\">2023\u5e746\u670815\u65e5\uff0cApache\u53d1\u5e03\u5b89\u5168\u516c\u544a\uff0c\u4fee\u590d\u4e86Struts 2\u4e2d\u7684\u4e24\u4e2a\u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e\uff0c\u5176\u4e2d\u4e00\u4e2a\u6f0f\u6d1e\u7f16\u53f7\u4e3aCVE-2023-34149\uff0c\u6f0f\u6d1e\u5371\u5bb3\u7b49\u7ea7\uff1a\u4e2d\u5371\u3002<\/p>\n<p style=\"padding-left: 40px;\">Apache Struts 2\u4e2d\uff0c\u5148\u524d\u5411XWorkListPropertyAccessor \u6dfb\u52a0\u4e86 autoGrowCollectionLimit\uff0c\u4f46\u5b83\u53ea\u5904\u7406 setProperty() \u800c\u4e0d\u5904\u7406 getProperty()\u3002\u5982\u679c\u5f00\u53d1\u4eba\u5458\u5df2\u5c06\u5e95\u5c42Collection \u7c7b\u578b\u5b57\u6bb5\u7684 CreateIfNull \u8bbe\u7f6e\u4e3a true\uff0c\u53ef\u80fd\u4f1a\u7531\u4e8e\u672a\u6b63\u786e\u68c0\u67e5\u5217\u8868\u8fb9\u754c\u800c\u5bfc\u81f4OOM\uff08\u5185\u5b58\u8017\u5c3d\uff09\uff0c\u9020\u6210\u62d2\u7edd\u670d\u52a1\u3002<\/p>\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n<p style=\"padding-left: 40px;\"><span style=\"color: #000000;\">\u5f71\u54cd\u7248\u672c\uff1a<\/span><\/p>\n<div data-v-27da897c=\"\">\n<p style=\"padding-left: 40px;\" data-v-27da897c=\"\">2.0.0 &lt;=Apache Struts2&lt;2.5.31<\/p>\n<p style=\"padding-left: 40px;\" data-v-27da897c=\"\">6.0.0&lt;=Apache Struts2&lt;6.1.2.1<\/p>\n<div><br><\/div>\n<\/div>\n<div data-v-27da897c=\"\">\n<\/div>\n<p><span style=\"color: #000000;\">&nbsp;<\/span><\/p>\n<p style=\"padding-left: 40px;\"><span style=\"color: #000000;\">\u4fee\u590d\u5efa\u8bae<\/span><\/p>\n<p style=\"padding-left: 40px;\">\u6b63\u5f0f\u9632\u62a4\u65b9\u6848\uff1a<\/p><p style=\"padding-left: 40px;\">\u5b98\u65b9\u5df2\u53d1\u5e03\u65b0\u7248\u672c\u4e2d\u4fee\u590d\u4e0a\u8ff0\u6f0f\u6d1e\uff0c\u53d7\u5f71\u54cd\u7528\u6237\u8bf7\u5c3d\u5feb\u5347\u7ea7\u5230\u5b89\u5168\u7248\u672c\u3002<\/p><p style=\"padding-left: 40px;\">\u6f0f\u6d1e\u4fee\u590d\u7248\u672c\uff1a<\/p><p style=\"padding-left: 40px;\">Apache Struts &gt;= 2.5.31<\/p><p style=\"padding-left: 40px;\">Apache Struts &gt;= 6.1.2.1<\/p><p style=\"padding-left: 40px;\">\u53c2\u8003\u94fe\u63a5:<\/p><p style=\"padding-left: 40px;\">https:\/\/github.com\/apache\/struts\/releases<\/p><p style=\"padding-left: 40px;\">\u4e34\u65f6\u9632\u62a4\u65b9\u6848\uff1a<\/p><p style=\"padding-left: 40px;\">\u5c06 Collection \u7c7b\u578b\u5b57\u6bb5\u7684 CreateIfNull \u8bbe\u7f6e\u4e3a false\uff08\u5982\u679c\u672a\u8bbe\u7f6e\uff0c\u5219\u9ed8\u8ba4\u4e3afalse\uff09\u3002<\/p>\n<div>&nbsp;<\/div>\n<div>&nbsp;<\/div>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b0f33a9 elementor-widget elementor-widget-post-navigation\" data-id=\"7b0f33a9\" data-element_type=\"widget\" data-widget_type=\"post-navigation.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-post-navigation\">\n\t\t\t<div class=\"elementor-post-navigation__prev elementor-post-navigation__link\">\n\t\t\t\t<a href=\"http:\/\/www.gzwangan.com\/?p=3168\" rel=\"prev\"><span class=\"post-navigation__arrow-wrapper post-navigation__arrow-prev\"><i class=\"fa fa-angle-left\" aria-hidden=\"true\"><\/i><span class=\"elementor-screen-only\">Prev<\/span><\/span><span class=\"elementor-post-navigation__link__prev\"><span class=\"post-navigation__prev--title\">Microsoft Exchange Server \u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e<\/span><\/span><\/a>\t\t\t<\/div>\n\t\t\t\t\t\t<div class=\"elementor-post-navigation__next elementor-post-navigation__link\">\n\t\t\t\t<a href=\"http:\/\/www.gzwangan.com\/?p=3180\" rel=\"next\"><span class=\"elementor-post-navigation__link__next\"><span class=\"post-navigation__next--title\">HuTool XML\u5916\u90e8\u5b9e\u4f53\u6ce8\u5165\u6f0f\u6d1e<\/span><\/span><span class=\"post-navigation__arrow-wrapper post-navigation__arrow-next\"><i class=\"fa fa-angle-right\" aria-hidden=\"true\"><\/i><span class=\"elementor-screen-only\">Next<\/span><\/span><\/a>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-70b7a0a1 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"70b7a0a1\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-50266b0c\" data-id=\"50266b0c\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u5b89\u5168\u52a8\u6001 \u884c\u4e1a\u52a8\u6001 \u6f0f\u6d1e\u52a8\u6001 \u8054\u7cfb\u65b9\u5f0f \u5730\u5740\uff1a\u00a0\u5e7f\u5dde\u5e02\u8d8a\u79c0\u533a\u4e1c\u98ce\u4e1c\u8def750\u53f7\u5e7f\u8054\u5927\u53a613\u697c1307-1309\u5ba4&hellip; <a class=\"more-link\" href=\"http:\/\/www.gzwangan.com\/?p=3174\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Apache Struts 2\u62d2\u7edd\u670d\u52a1\u6f0f\u6d1e<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"elementor_header_footer","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3174","post","type-post","status-publish","format-standard","hentry","category-security","entry"],"_links":{"self":[{"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/posts\/3174","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3174"}],"version-history":[{"count":5,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/posts\/3174\/revisions"}],"predecessor-version":[{"id":3179,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=\/wp\/v2\/posts\/3174\/revisions\/3179"}],"wp:attachment":[{"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gzwangan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}