{"id":1,"date":"2024-07-30T10:03:25","date_gmt":"2024-07-30T02:03:25","guid":{"rendered":"http:\/\/192.168.8.82\/?p=1"},"modified":"2024-08-21T09:29:37","modified_gmt":"2024-08-21T01:29:37","slug":"php%e8%b3%87%e5%ae%89%e8%ad%b0%e9%a1%8c%e8%99%95%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.connet.com.tw\/?p=1","title":{"rendered":"PHP\u8cc7\u5b89\u8b70\u984c\u8655\u7406"},"content":{"rendered":"\n\n\n<ul class=\"wp-block-list is-style-default\">\n<li>\u5b89\u5168\u516c\u544a\u7de8\u865f: SE2024-001<\/li>\n\n\n\n<li>\u7248\u672c: V1.0<\/li>\n\n\n\n<li>\u767c\u5e03\u65e5\u671f: 2024\u5e747\u670830\u65e5<\/li>\n\n\n\n<li>\u53c3\u8003\u8cc7\u6599:\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2024-4577\" target=\"_blank\" rel=\"noreferrer noopener\">CVE-2024-4577 (nvd.nist.gov)<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u6458\u8981<\/strong><\/h4>\n\n\n\n<p>PHP-CGI\u4f5c\u696d\u7cfb\u7d71\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e<br>PHP \u7a0b\u5f0f\u8a9e\u8a00\u5728\u8a2d\u8a08\u6642\u5ffd\u7565 Windows \u4f5c\u696d\u7cfb\u7d71\u5167\u90e8\u5c0d\u5b57\u5143\u7de8\u78bc\u8f49\u63db\u7684 Best-Fit \u7279\u6027\uff0c\u5c0e\u81f4\u672a\u8a8d\u8b49\u7684\u653b\u64ca\u8005\u53ef\u900f\u904e\u7279\u5b9a\u7684\u5b57\u5143\u5e8f\u5217\u7e5e\u904e\u820a\u6709 CVE-2012-1823 \u7684\u4fdd\u8b77\uff1b\u900f\u904e\u53c3\u6578\u6ce8\u5165\u7b49\u653b\u64ca\u5728\u9060\u7aef PHP \u4f3a\u670d\u5668\u4e0a\u57f7\u884c\u4efb\u610f\u7a0b\u5f0f\u78bc\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u5f71\u97ff\u7bc4\u570d<\/strong><\/h4>\n\n\n\n<p>\u5b89\u88dd\u65bc Windows \u4f5c\u696d\u7cfb\u7d71\u4e0a\u6240\u6709\u7684 PHP \u7248\u672c\uff0c\u53c3\u7167\u4e0b\u8868:<br>PHP 8.3 &lt; 8.3.8<br>PHP 8.2 &lt; 8.2.20<br>PHP 8.1 &lt; 8.1.29<br>\u7531\u65bc PHP 8.0 \u5206\u652f\u3001PHP 7 \u4ee5\u53ca PHP 5 \u5b98\u65b9\u5df2\u4e0d\u518d\u7dad\u8b77\uff0c\u7db2\u7ad9\u7ba1\u7406\u54e1\u53ef\u53c3\u8003\u5982\u4f55\u78ba\u8a8d\u81ea\u5df1\u6613\u906d\u53d7\u653b\u64ca\u7ae0\u7bc0\uff0c\u4e26\u65bc\u4fee\u88dc\u5efa\u8b70\u627e\u5230\u66ab\u6642\u7de9\u89e3\u63aa\u65bd\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u89e3\u6c7a\u65b9\u6848<\/strong><\/h4>\n\n\n\n<p>\u4e3b\u8981\u65b9\u6848:<br>\u5c07 Windows \u4f5c\u696d\u7cfb\u7d71\u4e0a\u4e4b PHP\u8edf\u9ad4\u66f4\u65b0\u5230\u4fee\u5fa9\u6f0f\u6d1e\u7684\u7248\u672c:<br>8.3.8<br>8.2.20<br>8.1.29<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u7de9\u89e3\u63aa\u65bd<\/strong><\/h4>\n\n\n\n<p>\u91cd\u5beb\u4ee5\u4e0b\u898f\u5247\uff0c\u4f46\u5b83\u50c5\u76f8\u5bb9\u65bc\u7e41\u9ad4\u4e2d\u6587\u3001\u7c21\u9ad4\u4e2d\u6587\u548c\u65e5\u6587\u5b89\u88dd<br>RewriteEngine On<br>RewriteCond %{QUERY_STRING} ^%ad [NC]<br>RewriteRule .? &#8211; [F,L]<\/p>\n\n\n\n<p>\u65bc Windows \u4e0a XAMPP \u7684\u9810\u8a2d\u5b89\u88dd\uff0c\u8a3b\u89e3\u6389 httpd-xampp.conf \u6a94\u6848\u4e2d\u7684\u4ee5\u4e0b\u884c\uff1aScriptAlias \/php-cgi\/ &#8220;C:\/xampp\/php\/&#8221;<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6458\u8981 PHP-CGI\u4f5c\u696d\u7cfb\u7d71\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1ePHP \u7a0b\u5f0f\u8a9e\u8a00\u5728\u8a2d\u8a08\u6642\u5ffd\u7565 Windows \u4f5c\u696d\u7cfb\u7d71\u5167\u90e8\u5c0d\u5b57\u5143\u7de8\u78bc\u8f49 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-cve-2024"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1"}],"version-history":[{"count":10,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":284,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=\/wp\/v2\/posts\/1\/revisions\/284"}],"wp:attachment":[{"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.connet.com.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}