{"id":29367,"date":"2024-11-25T12:14:55","date_gmt":"2024-11-25T04:14:55","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29367\/"},"modified":"2024-11-25T12:14:55","modified_gmt":"2024-11-25T04:14:55","slug":"wordpress%e9%a1%b5%e9%9d%a2%e9%9d%99%e6%80%81%e5%8c%96%e4%b8%8e%e9%9d%99%e6%80%81%e6%96%87%e4%bb%b6%e4%b8%8d%e7%94%9f%e6%88%90%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29367\/","title":{"rendered":"WordPress\u9875\u9762\u9759\u6001\u5316\u4e0e\u9759\u6001\u6587\u4ef6\u4e0d\u751f\u6210\u600e\u4e48\u529e"},"content":{"rendered":"<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/041\/5dc38bb0ec538558.jpg\" style=\"max-width:90%\" class=\"aligncenter\" title=\"WordPress\u9875\u9762\u9759\u6001\u5316\u4e0e\u9759\u6001\u6587\u4ef6\u4e0d\u751f\u6210\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"WordPress\u9875\u9762\u9759\u6001\u5316\u4e0e\u9759\u6001\u6587\u4ef6\u4e0d\u751f\u6210\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u9875\u9762\u9759\u6001\u5316\u95ee\u9898<\/strong><\/p>\n<p>\u6211\u4eec\u5148\u8981\u4e0b\u8f7dcos-html-cache 2.7.3\u9875\u9762\u9759\u6001\u5316\u63d2\u4ef6<\/p>\n<p>1\u3001\u5b89\u88c5\u63d2\u4ef6\u9875\u9762\u4e2d\u641c\u7d22cos-html-cache\u63d2\u4ef6,\u5e76\u5b89\u88c5<\/p>\n<p>2\u3001\u6839\u76ee\u5f55\u4e0b\u521b\u5efahtml\u6587\u4ef6\u5939,\u6743\u9650777<\/p>\n<p>3\u3001\u6839\u76ee\u5f55\u4e0b\u521b\u5efaindex.bak\u6587\u4ef6,\u6743\u9650666<\/p>\n<p>4\u3001\u4fee\u6539\u56fa\u5b9a\u8fde\u63a5\u683c\u5f0f\u4e3a\u81ea\u5b9a\u4e49\u7ed3\u6784,\/html\/%post_id%_%postname%.html<\/p>\n<p>5\u3001\u6fc0\u6d3b\u63d2\u4ef6<\/p>\n<p>6\u3001\u4fee\u6539\u7ad9\u70b9\u9ed8\u8ba4\u9996\u9875\u6b21\u5e8f,\u5728.htaccess\u4e2d\u52a0\u5165\u4e00\u884c:<\/p>\n<pre>DirectoryIndex&nbsp;index.html&nbsp;index.htm&nbsp;index.php&nbsp;index.cgi<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>7\u3001\u4fee\u6539\u4e3b\u9898\u641c\u7d22\u6846\u4ee3\u7801,\u5728searchform.php\u6587\u4ef6\u4e2d,\u5c06\u5982\u4e0b\u4ee3\u7801:<\/p>\n<pre>action=\"&lt;?php  echo esc_url( home_url( \/ ) ); ?&gt;\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u66ff\u6362\u4e3a\uff1a<\/p>\n<pre>action=\"&lt;?php  echo esc_url( home_url( \/index.php ) ); ?&gt;\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u68c0\u9a8c\u3001\u9000\u51fa\u767b\u5f55\u3001\u91cd\u65b0\u8bbf\u95ee\u9875\u9762\u3001\u5728html\u76ee\u5f55\u4e0b\u751f\u6210\u4e86html\u6587\u4ef6\uff0c\u4e14\u5728\u9875\u9762\u6e90\u4ee3\u7801\u4e2d\u542b\u6709\u5b57\u7b26\u4e32 \u5373\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p><strong>\u9759\u6001\u6587\u4ef6\u4e0d\u80fd\u751f\u6210\u7684\u95ee\u9898<\/strong><\/p>\n<p>\u56e0\u4e3a\u6709\u7684\u670d\u52a1\u5668\u5b9a\u4e49\u7684DOCUMENT_ROOT\u4e0e\u865a\u62df\u7a7a\u95f4\u7684\u76ee\u5f55\u8def\u5f84\u4e0d\u4e00\u81f4,\u5bfc\u81f4cos-html-cahce\u627e\u4e0d\u5230\u6b63\u786e\u7684\u76ee\u5f55\u53bb\u751f\u6210html\u3002\u6bd4\u5982000webhost\u7684\u670d\u52a1\u5668\u5c31\u662f\u5982\u6b64\u3002<\/p>\n<p>cos-html-cache.php\u6587\u4ef6\u4e2d\u6709\u4e00\u884c:<\/p>\n<pre>$path&nbsp;=&nbsp;$_SERVER['DOCUMENT_ROOT'].\"\/\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u89e3\u51b3\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e00\u4e2aphp\u811a\u672c\u53bb\u6d4b\u8bd5\u81ea\u5df1\u4e3b\u673a\u7684\u7a7a\u95f4\u8def\u5f84,\u7136\u540e\u628a$path\u7684\u503c\u6539\u4e3a\u7a7a\u95f4\u6839\u76ee\u5f55\u8def\u5f84\u5373\u53ef,\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aphp\u6587\u4ef6,\u5199\u5165\u4ee5\u4e0b\u4ee3\u7801\u3002<\/p>\n<pre>&lt;?php  echo \"SeverPath: \".dirname(__FILE__); echo \"\n\"; $path = $_SERVER[&#039;DOCUMENT_&lt;div\nstyle=\"display: none\"&gt;&lt;a&gt;how\nto&nbsp;increase&nbsp;vertical&nbsp;jump&lt;\/a&gt;\nROOT'].\"\/\";&nbsp;echo&nbsp;\"DOCUMENT_ROOT:&nbsp;\".$path;&nbsp;?&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7136\u540e\u4e0a\u4f20\u81f3\u7a7a\u95f4\u6839\u76ee\u5f55\uff0c\u8bbf\u95ee\u811a\u672c\u6587\u4ef6\uff0c\u6bd4\u8f83\u3001\u67e5\u770bDOCUMENT_ROOT\u548c\u7a7a\u95f4\u7684\u8def\u5f84\uff0c\u5982\u679c\u4e0d\u4e00\u81f4\u7684\u8bdd\uff0c\u4fee\u6539$path\u7684\u503c\u5373\u53ef\u3002\u6bd4\u5982\u8bbf\u95ee: http:\/\/localhost\/root_test.php,\u8fd4\u56de\u7ed3\u679c\u5982\u4e0b:<\/p>\n<pre>SeverPath:&nbsp;\/home\/a4675762\/public_html\nDOCUMENT_ROOT:&nbsp;\/usr\/local\/apache\/htdocs\/<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u4e24\u4e2a\u8def\u5f84\u662f\u5b8c\u5168\u4e0d\u540c\u7684\uff0c\u90a3\u4e48\u5c31\u4fee\u6539$path\u4e3a:<\/p>\n<pre>$path&nbsp;=&nbsp;\"\/home\/a4675762\/public_html\/\";<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u767b\u51fa\u535a\u5ba2(\u4e00\u5b9a\u8981\u767b\u51fa\u624d\u53ef\u4ee5\u751f\u6210html\u9759\u6001\u9875\u9762)\uff0c\u518d\u91cd\u65b0\u8bbf\u95ee\u9875\u9762\uff0chtml\u5e94\u8be5\u5c31\u53ef\u4ee5\u6b63\u5e38\u751f\u6210\u4e86\u3002<\/p>\n<p>\u63a8\u8350\u6559\u7a0b\uff1a\/&#8221; target=&#8221;_blank&#8221; textvalue=&#8221;wordpress\u6559\u7a0b&#8221;&gt;wordpress\u6559\u7a0b<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fWordpress\u9875\u9762\u9759\u6001\u5316\u4e0e\u9759\u6001\u6587\u4ef6\u4e0d\u751f\u6210\u600e\u4e48\u529e\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9875\u9762\u9759\u6001\u5316\u95ee\u9898 \u6211\u4eec\u5148\u8981\u4e0b\u8f7dcos-html-cache 2.7.3\u9875\u9762\u9759\u6001\u5316\u63d2\u4ef6 1\u3001\u5b89\u88c5\u63d2\u4ef6\u9875\u9762\u4e2d\u641c\u7d22cos-html-cache\u63d2\u4ef6,\u5e76\u5b89\u88c5 2\u3001\u6839\u76ee\u5f55\u4e0b\u521b\u5efahtml\u6587\u4ef6\u5939,\u6743\u9650777 3\u3001\u6839\u76ee\u5f55\u4e0b\u521b\u5efaindex.bak\u6587\u4ef6,\u6743\u9650666 4\u3001\u4fee\u6539\u56fa\u5b9a\u8fde\u63a5\u683c\u5f0f\u4e3a\u81ea\u5b9a\u4e49\u7ed3\u6784,\/html\/%post_id%_%postname%.html 5\u3001\u6fc0\u6d3b\u63d2\u4ef6 6\u3001\u4fee\u6539\u7ad9\u70b9\u9ed8\u8ba4\u9996\u9875\u6b21\u5e8f,\u5728.htaccess\u4e2d\u52a0\u5165\u4e00\u884c: DirectoryIndex&nbsp;index.html&nbsp;index.htm&nbsp;index.php&nbsp;index.cgi \u767b\u5f55\u540e\u590d\u5236 7\u3001\u4fee\u6539\u4e3b\u9898\u641c\u7d22\u6846\u4ee3\u7801,\u5728searchform.php\u6587\u4ef6\u4e2d,\u5c06\u5982\u4e0b\u4ee3\u7801: action=&#8221;&lt;?php echo esc_url( home_url( \/ ) ); ?&gt;&#8221; \u767b\u5f55\u540e\u590d\u5236 \u66ff\u6362\u4e3a\uff1a action=&#8221;&lt;?php echo esc_url( home_url( \/index.php ) ); ?&gt;&#8221; \u767b\u5f55\u540e\u590d\u5236 \u68c0\u9a8c\u3001\u9000\u51fa\u767b\u5f55\u3001\u91cd\u65b0\u8bbf\u95ee\u9875\u9762\u3001\u5728html\u76ee\u5f55\u4e0b\u751f\u6210\u4e86html\u6587\u4ef6\uff0c\u4e14\u5728\u9875\u9762\u6e90\u4ee3\u7801\u4e2d\u542b\u6709\u5b57\u7b26\u4e32 \u5373\u6210\u529f\u5b89\u88c5\u3002 \u9759\u6001\u6587\u4ef6\u4e0d\u80fd\u751f\u6210\u7684\u95ee\u9898 \u56e0\u4e3a\u6709\u7684\u670d\u52a1\u5668\u5b9a\u4e49\u7684DOCUMENT_ROOT\u4e0e\u865a\u62df\u7a7a\u95f4\u7684\u76ee\u5f55\u8def\u5f84\u4e0d\u4e00\u81f4,\u5bfc\u81f4cos-html-cahce\u627e\u4e0d\u5230\u6b63\u786e\u7684\u76ee\u5f55\u53bb\u751f\u6210html\u3002\u6bd4\u5982000webhost\u7684\u670d\u52a1\u5668\u5c31\u662f\u5982\u6b64\u3002 cos-html-cache.php\u6587\u4ef6\u4e2d\u6709\u4e00\u884c: $path&nbsp;=&nbsp;$_SERVER[&#8216;DOCUMENT_ROOT&#8217;].&#8221;\/&#8221;; \u767b\u5f55\u540e\u590d\u5236 \u89e3\u51b3\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e00\u4e2aphp\u811a\u672c\u53bb\u6d4b\u8bd5\u81ea\u5df1\u4e3b\u673a\u7684\u7a7a\u95f4\u8def\u5f84,\u7136\u540e\u628a$path\u7684\u503c\u6539\u4e3a\u7a7a\u95f4\u6839\u76ee\u5f55\u8def\u5f84\u5373\u53ef,\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2aphp\u6587\u4ef6,\u5199\u5165\u4ee5\u4e0b\u4ee3\u7801\u3002 &lt;?php echo &#8220;SeverPath: &#8220;.dirname(__FILE__); echo &#8221; &#8220;; $path = $_SERVER[&#039;DOCUMENT_&lt;div style=&#8221;display: none&#8221;&gt;&lt;a&gt;how to&nbsp;increase&nbsp;vertical&nbsp;jump&lt;\/a&gt; ROOT&#8217;].&#8221;\/&#8221;;&nbsp;echo&nbsp;&#8220;DOCUMENT_ROOT:&nbsp;&#8220;.$path;&nbsp;?&amp;gt; \u767b\u5f55\u540e\u590d\u5236 \u7136\u540e\u4e0a\u4f20\u81f3\u7a7a\u95f4\u6839\u76ee\u5f55\uff0c\u8bbf\u95ee\u811a\u672c\u6587\u4ef6\uff0c\u6bd4\u8f83\u3001\u67e5\u770bDOCUMENT_ROOT\u548c\u7a7a\u95f4\u7684\u8def\u5f84\uff0c\u5982\u679c\u4e0d\u4e00\u81f4\u7684\u8bdd\uff0c\u4fee\u6539$path\u7684\u503c\u5373\u53ef\u3002\u6bd4\u5982\u8bbf\u95ee: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29367","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29367"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29367\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}