{"id":84737,"date":"2026-07-26T16:48:40","date_gmt":"2026-07-26T08:48:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84737.html"},"modified":"2026-07-26T16:48:40","modified_gmt":"2026-07-26T08:48:40","slug":"dvwa-medium-file-upload%e5%ae%89%e5%85%a8%e6%b5%8b%e8%af%95%e4%b8%8e%e9%98%b2%e6%8a%a4%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84737.html","title":{"rendered":"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790"},"content":{"rendered":"<p>\u6ce8\u610f&#xff1a;\u6709\u5173 File Upload \u6f0f\u6d1e\u7684\u57fa\u7840\u77e5\u8bc6\u4e0e\u539f\u7406\u5df2\u5728\u4e0a\u7bc7\u6587\u7ae0\u6307\u51fa&#xff0c;\u6b64\u5904\u4e0d\u518d\u89e3\u91ca\u3002<br \/>\n\u53ef\u53c2\u8003\u8be5\u6587\u7ae0https:\/\/www.cnblogs.com\/lky-sec\/articles\/21412117<br \/>\n\u672c\u6587\u4ec5\u7528\u4e8e\u7f51\u7edc\u5b89\u5168\u5b66\u4e60\u4e0e\u9632\u5fa1\u7814\u7a76\u3002\u6240\u6709\u6d4b\u8bd5\u5747\u5728\u672c\u4eba\u672c\u5730\u90e8\u7f72\u3001\u5408\u6cd5\u6388\u6743\u7684 DVWA \u9776\u573a\u4e2d\u8fdb\u884c&#xff0c;\u7981\u6b62\u5c06\u76f8\u5173\u65b9\u6cd5\u7528\u4e8e\u4efb\u4f55\u672a\u6388\u6743\u7cfb\u7edf\u3002<\/p>\n<h2>\u4e2d\u7b49\u96be\u5ea6 File Upload<\/h2>\n<h3>\u4e00 \u6d4b\u8bd5\u8303\u56f4\u4e0e\u73af\u5883<\/h3>\n<p>\u672c\u6b21\u6d4b\u8bd5\u76ee\u6807\u4e3a\u672c\u5730 DVWA \u9776\u573a\u4e2d\u7684 File Upload \u6a21\u5757\u3002<\/p>\n<table>\n<tr>\u9879\u76ee\u914d\u7f6e<\/tr>\n<tbody>\n<tr>\n<td>\u6d4b\u8bd5\u73af\u5883<\/td>\n<td>\u672c\u5730 DVWA \u9776\u573a<\/td>\n<\/tr>\n<tr>\n<td>\u5b89\u5168\u7b49\u7ea7<\/td>\n<td>Medium<\/td>\n<\/tr>\n<tr>\n<td>\u6d4b\u8bd5\u7cfb\u7edf<\/td>\n<td>Kali Linux<\/td>\n<\/tr>\n<tr>\n<td>\u6d4b\u8bd5\u5de5\u5177<\/td>\n<td>Firefox\u3001Burp Suite<\/td>\n<\/tr>\n<tr>\n<td>\u6d4b\u8bd5\u65b9\u5f0f<\/td>\n<td>\u9ed1\u76d2\u6d4b\u8bd5\u3001\u8bf7\u6c42\u5206\u6790\u3001\u6e90\u7801\u5ba1\u8ba1<\/td>\n<\/tr>\n<tr>\n<td>\u6388\u6743\u60c5\u51b5<\/td>\n<td>\u672c\u4eba\u672c\u5730\u9776\u573a&#xff0c;\u5408\u6cd5\u6388\u6743<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4e8c \u9875\u9762\u4e0e\u8bf7\u6c42\u5206\u6790<\/h3>\n<h4>1. \u8bbe\u7f6e\u96be\u5ea6\u7b49\u7ea7<\/h4>\n<p>\u8fdb\u5165 DVWA Security&#xff0c;\u5c06\u5b89\u5168\u7b49\u7ea7\u8bbe\u7f6e\u4e3a Medium&#xff0c;\u968f\u540e\u8fdb\u5165 File Upload \u6a21\u5757\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6abf10.png\" alt=\"image\" \/><\/p>\n<h4>2. \u89c2\u5bdf\u6a21\u5757\u6b63\u5e38\u529f\u80fd<\/h4>\n<p>\u4f7f\u7528\u81ea\u5df1\u521b\u5efa\u7684\u6587\u6863test1.txt\u8fdb\u884c\u63d0\u4ea4&#xff0c;\u53d1\u73b0\u9875\u9762\u8fd4\u56de\u7ed3\u679c\u63d0\u793a&#xff0c;\u4ec5\u80fd\u63d0\u4ea4JPEG\/PNG\u3002\u53ef\u77e5\u6a21\u5757\u6b63\u5e38\u529f\u80fd\u4e3a\u63d0\u4ea4JPEG\/PNG\u683c\u5f0f\u6587\u4ef6\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6c7583.png\" alt=\"image\" \/><\/p>\n<h4>3. \u4f7f\u7528 Burp Suite \u8fdb\u884c\u6293\u5305\u5206\u6790<\/h4>\n<p>\u5f00\u542fBurp Suite Proxy\u6a21\u5757\u8fdb\u884c\u62e6\u622a&#xff0c;\u63d0\u4ea4\u4e00\u6b21\u6b63\u5e38\u8bf7\u6c42\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6d8e32.png\" alt=\"image\" \/><br \/>\n\u4ece\u5f53\u524d HTTP \u8bf7\u6c42\u53ef\u4ee5\u786e\u5b9a&#xff0c;Medium File Upload \u6a21\u5757\u4e0a\u4f20\u6587\u4ef6\u65f6\u4f1a\u5411\u670d\u52a1\u5668\u63d0\u4ea4\u6587\u4ef6\u540d\u3001\u6587\u4ef6\u5b57\u6bb5\u4e2d\u7684 Content-Type\u3001\u6587\u4ef6\u5185\u5bb9\u4ee5\u53ca MAX_FILE_SIZE\u3002\u4e14MAX_FILE_SIZE\u6570\u503c\u4e3a100000&#xff08;\u540e\u7eed\u5206\u6790\u6e90\u7801\u662f\u6587\u4ef6\u5927\u5c0f\u9700\u5c0f\u4e8e100000\u5b57\u8282&#xff09;<\/p>\n<h3>\u4e09 \u624b\u5de5\u9ed1\u76d2\u6d4b\u8bd5<\/h3>\n<h4>1.\u4fee\u6539\u6587\u4ef6\u7c7b\u578b<\/h4>\n<p>\u524d\u9762\u5206\u6790\u53ef\u77e5&#xff0c;\u6a21\u5757\u53ea\u53ef\u63d0\u4ea4JPEG\/PNG\u7c7b\u578b&#xff0c;\u5c06\u8bf7\u6c42\u53d1\u9001\u81f3Repeater\u6a21\u5757&#xff0c;\u5c1d\u8bd5\u5c06test1.txt\u6587\u4ef6\u5b57\u6bb5\u7684Content-Type\u4fee\u6539\u540e\u53d1\u9001\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6f15c4.png\" alt=\"image\" \/><br \/>\n\u7531\u8fd4\u56de\u7ed3\u679c\u53ef\u77e5&#xff0c;\u6587\u4ef6\u4e0a\u4f20\u6210\u529f&#xff0c;\u5206\u6790\u53ef\u77e5&#xff0c;\u8be5\u7ed3\u679c\u8bf4\u660e\u7a0b\u5e8f\u7684\u6587\u4ef6\u7c7b\u578b\u5224\u65ad\u4f9d\u8d56\u5ba2\u6237\u7aef\u63d0\u4f9b\u7684Content-Type&#xff0c;\u5e76\u4e14\u6ca1\u6709\u6821\u9a8c\u6587\u4ef6\u6269\u5c55\u540d\u548c\u771f\u5b9e\u56fe\u7247\u5185\u5bb9\u3002\u63a5\u4e0b\u6765\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u4e0a\u4f20\u76ee\u5f55\u662f\u5426\u5177\u6709\u811a\u672c\u89e3\u6790\u80fd\u529b\u3002<\/p>\n<h4>2.\u6784\u9020\u811a\u672c<\/h4>\n<p>\u6784\u5efaphp\u811a\u672c\u6587\u4ef6&#xff0c;\u4e0a\u4f20\u8fdb\u884c\u63d0\u4ea4&#xff0c;\u4fee\u6539\u6587\u4ef6\u5b57\u6bb5\u7684Content-Type\u540e\u53d1\u9001\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084839-6a65c9e721790.png\" alt=\"image\" \/><\/p>\n<h4>3.\u9a8c\u8bc1\u4e0a\u4f20\u76ee\u5f55\u7684\u811a\u672c\u89e3\u6790\u884c\u4e3a<\/h4>\n<p>\u5c06\u8fd4\u56de\u7ed3\u679c..\/..\/hackable\/uploads\/test2.php\u62fc\u63a5\u5230\u6d4f\u89c8\u5668URL\u5904&#xff0c;\u53d1\u73b0\u6587\u4ef6\u5185\u5bb9\u88ab\u6267\u884c&#xff0c;\u8fd4\u56dePHP\u7248\u672c\u7b49\u4fe1\u606f\u3002\u8bf4\u660e\u5f53\u524d\u670d\u52a1\u5668\u5141\u8bb8\u5728\u8be5\u76ee\u5f55\u4e2d\u89e3\u6790PHP\u811a\u672c\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084839-6a65c9e7495a1.png\" alt=\"image\" \/><\/p>\n<h3>\u56db \u4ee3\u7801\u5ba1\u8ba1<\/h3>\n<h4>1.\u70b9\u51fbview source\u67e5\u770b\u6e90\u7801<\/h4>\n<p>&lt;?php<\/p>\n<p>if( isset( $_POST[ &#039;Upload&#039; ] ) ) {<br \/>\n    \/\/ Where are we going to be writing to?<br \/>\n    $target_path  &#061; DVWA_WEB_PAGE_TO_ROOT . &#034;hackable\/uploads\/&#034;;<br \/>\n    $target_path .&#061; basename( $_FILES[ &#039;uploaded&#039; ][ &#039;name&#039; ] );<\/p>\n<p>    \/\/ File information<br \/>\n    $uploaded_name &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;name&#039; ];<br \/>\n    $uploaded_type &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;type&#039; ];<br \/>\n    $uploaded_size &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;size&#039; ];<\/p>\n<p>    \/\/ Is it an image?<br \/>\n    if( ( $uploaded_type &#061;&#061; &#034;image\/jpeg&#034; || $uploaded_type &#061;&#061; &#034;image\/png&#034; ) &amp;&amp;<br \/>\n        ( $uploaded_size &lt; 100000 ) ) {<\/p>\n<p>        \/\/ Can we move the file to the upload folder?<br \/>\n        if( !move_uploaded_file( $_FILES[ &#039;uploaded&#039; ][ &#039;tmp_name&#039; ], $target_path ) ) {<br \/>\n            \/\/ No<br \/>\n            echo &#039;&lt;pre&gt;Your image was not uploaded.&lt;\/pre&gt;&#039;;<br \/>\n        }<br \/>\n        else {<br \/>\n            \/\/ Yes!<br \/>\n            echo &#034;&lt;pre&gt;{$target_path} succesfully uploaded!&lt;\/pre&gt;&#034;;<br \/>\n        }<br \/>\n    }<br \/>\n    else {<br \/>\n        \/\/ Invalid file<br \/>\n        echo &#039;&lt;pre&gt;Your image was not uploaded. We can only accept JPEG or PNG images.&lt;\/pre&gt;&#039;;<br \/>\n    }<br \/>\n}<\/p>\n<p>?&gt; <\/p>\n<h4>2.\u6e90\u7801\u5206\u6790<\/h4>\n<p>Medium \u7b49\u7ea7\u9996\u5148\u83b7\u53d6\u4e0a\u4f20\u6587\u4ef6\u7684\u6587\u4ef6\u540d\u3001MIME \u7c7b\u578b\u548c\u6587\u4ef6\u5927\u5c0f&#xff1a;<\/p>\n<p>$uploaded_name &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;name&#039; ];<br \/>\n$uploaded_type &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;type&#039; ];<br \/>\n$uploaded_size &#061; $_FILES[ &#039;uploaded&#039; ][ &#039;size&#039; ];<\/p>\n<p>\u968f\u540e\u7a0b\u5e8f\u5bf9\u4e0a\u4f20\u6587\u4ef6\u8fdb\u884c\u9650\u5236&#xff0c;\u53ea\u5141\u8bb8&#xff1a;<\/p>\n<p>image\/jpeg<br \/>\nimage\/png<\/p>\n<p>\u5e76\u8981\u6c42\u6587\u4ef6\u5927\u5c0f\u5c0f\u4e8e100000\u5b57\u8282&#xff1a;<\/p>\n<p>if( ( $uploaded_type &#061;&#061; &#034;image\/jpeg&#034; || $uploaded_type &#061;&#061; &#034;image\/png&#034; ) &amp;&amp;<br \/>\n    ( $uploaded_size &lt; 100000 ) )<\/p>\n<p>\u76f8\u6bd4 Low \u7b49\u7ea7&#xff0c;Medium \u589e\u52a0\u4e86\u6587\u4ef6\u7c7b\u578b\u548c\u6587\u4ef6\u5927\u5c0f\u6821\u9a8c\u3002<\/p>\n<p>\u4f46\u8fd9\u91cc\u7684 $uploaded_type \u6765\u6e90\u4e8e\u5ba2\u6237\u7aef\u4e0a\u4f20\u8bf7\u6c42\u4e2d\u7684 Content-Type&#xff0c;\u8be5\u503c\u53ef\u4ee5\u901a\u8fc7 Burp Suite \u76f4\u63a5\u4fee\u6539\u3002\u56e0\u6b64\u653b\u51fb\u8005\u53ef\u4ee5\u5c06 PHP \u6587\u4ef6\u7684 Content-Type \u4fee\u6539\u4e3a image\/jpeg \u6216 image\/png&#xff0c;\u4ece\u800c\u7ed5\u8fc7 MIME \u7c7b\u578b\u68c0\u67e5\u3002<\/p>\n<p>\u540c\u65f6&#xff0c;\u7a0b\u5e8f\u4ecd\u7136\u76f4\u63a5\u4f7f\u7528\u539f\u59cb\u6587\u4ef6\u540d&#xff1a;<\/p>\n<p>$target_path .&#061; basename( $_FILES[ &#039;uploaded&#039; ][ &#039;name&#039; ] );<\/p>\n<p>\u5e76\u901a\u8fc7 move_uploaded_file() \u5c06\u6587\u4ef6\u4fdd\u5b58\u5230 Web \u53ef\u8bbf\u95ee\u7684\u4e0a\u4f20\u76ee\u5f55\u4e2d&#xff0c;\u6ca1\u6709\u8fdb\u4e00\u6b65\u68c0\u67e5\u6587\u4ef6\u6269\u5c55\u540d\u6216\u6587\u4ef6\u771f\u5b9e\u5185\u5bb9\u3002<\/p>\n<p>\u56e0\u6b64&#xff0c;\u8be5\u6f0f\u6d1e\u7684\u4e3b\u8981\u539f\u56e0\u662f&#xff1a;\u7a0b\u5e8f\u4ec5\u4f9d\u8d56\u5ba2\u6237\u7aef\u53ef\u63a7\u7684 MIME \u7c7b\u578b\u5224\u65ad\u6587\u4ef6\u7c7b\u578b&#xff0c;\u7f3a\u5c11\u5bf9\u6587\u4ef6\u6269\u5c55\u540d\u548c\u771f\u5b9e\u6587\u4ef6\u5185\u5bb9\u7684\u670d\u52a1\u7aef\u6821\u9a8c\u3002<\/p>\n<h4>3.\u4fee\u590d\u65b9\u6848<\/h4>\n<p>1&#xff09;\u5bf9\u4e0a\u4f20\u6587\u4ef6\u6269\u5c55\u540d\u8fdb\u884c\u767d\u540d\u5355\u6821\u9a8c&#xff0c;\u4ec5\u5141\u8bb8 JPEG\u3001JPG\u3001PNG \u7b49\u5408\u6cd5\u56fe\u7247\u683c\u5f0f\u3002<br \/>\n2&#xff09;\u4f7f\u7528\u670d\u52a1\u7aef\u6587\u4ef6\u68c0\u6d4b\u51fd\u6570\u6821\u9a8c\u771f\u5b9e MIME \u7c7b\u578b&#xff0c;\u4e0d\u4fe1\u4efb\u5ba2\u6237\u7aef\u63d0\u4ea4\u7684 Content-Type\u3002<br \/>\n3&#xff09;\u5bf9\u4e0a\u4f20\u56fe\u7247\u8fdb\u884c\u5185\u5bb9\u89e3\u6790&#xff0c;\u786e\u8ba4\u6587\u4ef6\u80fd\u591f\u88ab\u6b63\u5e38\u8bc6\u522b\u4e3a\u56fe\u7247\u3002<br \/>\n4&#xff09;\u5bf9\u4e0a\u4f20\u6587\u4ef6\u91cd\u65b0\u751f\u6210\u968f\u673a\u6587\u4ef6\u540d&#xff0c;\u907f\u514d\u76f4\u63a5\u4f7f\u7528\u7528\u6237\u63d0\u4ea4\u7684\u539f\u59cb\u6587\u4ef6\u540d\u3002<br \/>\n5&#xff09;\u4e25\u683c\u9650\u5236\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f&#xff0c;\u5e76\u5728\u670d\u52a1\u7aef\u8fdb\u884c\u6821\u9a8c\u3002<br \/>\n6&#xff09;\u5c06\u4e0a\u4f20\u76ee\u5f55\u8bbe\u7f6e\u4e3a\u4e0d\u53ef\u6267\u884c\u76ee\u5f55&#xff0c;\u7981\u6b62 PHP \u7b49\u811a\u672c\u6587\u4ef6\u88ab\u89e3\u6790\u6267\u884c\u3002<br \/>\n7&#xff09;\u5c06\u4e0a\u4f20\u6587\u4ef6\u5b58\u50a8\u5728 Web \u6839\u76ee\u5f55\u4e4b\u5916&#xff0c;\u901a\u8fc7\u53d7\u63a7\u63a5\u53e3\u8fdb\u884c\u8bbf\u95ee\u3002<br \/>\n8&#xff09;\u5bf9\u4e0a\u4f20\u5931\u8d25\u3001\u7c7b\u578b\u5f02\u5e38\u548c\u9ad8\u9891\u4e0a\u4f20\u884c\u4e3a\u8fdb\u884c\u65e5\u5fd7\u8bb0\u5f55\u4e0e\u5b89\u5168\u76d1\u63a7\u3002<\/p>\n<h3>\u4e94 Low\u4e0eMedium\u5dee\u5f02<\/h3>\n<table>\n<tr>\u5bf9\u6bd4\u9879LowMedium<\/tr>\n<tbody>\n<tr>\n<td>\u4e0a\u4f20\u76ee\u5f55<\/td>\n<td>hackable\/uploads\/<\/td>\n<td>hackable\/uploads\/<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u540d\u5904\u7406<\/td>\n<td>\u4f7f\u7528 basename() \u83b7\u53d6\u539f\u59cb\u6587\u4ef6\u540d<\/td>\n<td>\u4f7f\u7528 basename() \u83b7\u53d6\u539f\u59cb\u6587\u4ef6\u540d<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u7c7b\u578b\u6821\u9a8c<\/td>\n<td>\u65e0<\/td>\n<td>\u6821\u9a8c MIME \u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td>\u5141\u8bb8\u7684 MIME \u7c7b\u578b<\/td>\n<td>\u4e0d\u9650\u5236<\/td>\n<td>image\/jpeg\u3001image\/png<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u5927\u5c0f\u6821\u9a8c<\/td>\n<td>\u65e0<\/td>\n<td>\u9650\u5236\u5c0f\u4e8e 100000 \u5b57\u8282<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u6269\u5c55\u540d\u6821\u9a8c<\/td>\n<td>\u65e0<\/td>\n<td>\u65e0<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u771f\u5b9e\u5185\u5bb9\u6821\u9a8c<\/td>\n<td>\u65e0<\/td>\n<td>\u65e0<\/td>\n<\/tr>\n<tr>\n<td>\u662f\u5426\u4fe1\u4efb\u5ba2\u6237\u7aef Content-Type<\/td>\n<td>\u4e0d\u6d89\u53ca<\/td>\n<td>\u662f<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u91cd\u547d\u540d<\/td>\n<td>\u65e0<\/td>\n<td>\u65e0<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u4fdd\u5b58\u65b9\u5f0f<\/td>\n<td>move_uploaded_file()<\/td>\n<td>move_uploaded_file()<\/td>\n<\/tr>\n<tr>\n<td>PHP \u6587\u4ef6\u76f4\u63a5\u4e0a\u4f20<\/td>\n<td>\u53ef\u4ee5<\/td>\n<td>\u9ed8\u8ba4\u65e0\u6cd5\u901a\u8fc7\u7c7b\u578b\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td>\u4fee\u6539 MIME \u7c7b\u578b\u7ed5\u8fc7<\/td>\n<td>\u4e0d\u9700\u8981<\/td>\n<td>\u53ef\u4ee5\u7ed5\u8fc7\u7c7b\u578b\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u8981\u9632\u62a4\u63aa\u65bd<\/td>\n<td>\u65e0\u660e\u663e\u4e0a\u4f20\u9650\u5236<\/td>\n<td>\u589e\u52a0 MIME \u7c7b\u578b\u548c\u6587\u4ef6\u5927\u5c0f\u9650\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u4e3b\u8981\u5b89\u5168\u95ee\u9898<\/td>\n<td>\u672a\u5bf9\u4e0a\u4f20\u6587\u4ef6\u8fdb\u884c\u6709\u6548\u6821\u9a8c<\/td>\n<td>MIME \u7c7b\u578b\u53ef\u7531\u5ba2\u6237\u7aef\u63a7\u5236&#xff0c;\u4e14\u672a\u6821\u9a8c\u6269\u5c55\u540d\u548c\u771f\u5b9e\u6587\u4ef6\u5185\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u6ce8\u610f&#xff1a;\u6709\u5173 File Upload \u6f0f\u6d1e\u7684\u57fa\u7840\u77e5\u8bc6\u4e0e\u539f\u7406\u5df2\u5728\u4e0a\u7bc7\u6587\u7ae0\u6307\u51fa&#xff0c;\u6b64\u5904\u4e0d\u518d\u89e3\u91ca\u3002<br \/>\n\u53ef\u53c2\u8003\u8be5\u6587\u7ae0https:\/\/www.cnblogs.com\/lky-sec\/articles\/21412117<br \/>\n\u672c\u6587\u4ec5\u7528\u4e8e\u7f51\u7edc\u5b89\u5168\u5b66\u4e60\u4e0e\u9632\u5fa1\u7814\u7a76\u3002\u6240\u6709\u6d4b\u8bd5\u5747\u5728\u672c\u4eba\u672c\u5730\u90e8\u7f72\u3001\u5408\u6cd5\u6388\u6743\u7684 DVWA \u9776\u573a\u4e2d\u8fdb\u884c&#xff0c;\u7981\u6b62\u5c06\u76f8\u5173\u65b9\u6cd5\u7528\u4e8e\u4efb\u4f55\u672a\u6388\u6743\u7cfb\u7edf\u3002\u4e2d\u7b49\u96be\u5ea6 File Upload<br \/>\n\u4e00 \u6d4b\u8bd5\u8303\u56f4\u4e0e\u73af\u5883<br \/>\n\u672c\u6b21\u6d4b\u8bd5\u76ee\u6807\u4e3a\u672c\u5730 DVWA \u9776\u573a\u4e2d\u7684 File Up<\/p>\n","protected":false},"author":2,"featured_media":84731,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9487,1806,275,1800,122],"topic":[],"class_list":["post-84737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-dvwa","tag-kali-linux","tag-web","tag-1800","tag-122"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/84737.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6ce8\u610f&#xff1a;\u6709\u5173 File Upload \u6f0f\u6d1e\u7684\u57fa\u7840\u77e5\u8bc6\u4e0e\u539f\u7406\u5df2\u5728\u4e0a\u7bc7\u6587\u7ae0\u6307\u51fa&#xff0c;\u6b64\u5904\u4e0d\u518d\u89e3\u91ca\u3002 \u53ef\u53c2\u8003\u8be5\u6587\u7ae0https:\/\/www.cnblogs.com\/lky-sec\/articles\/21412117 \u672c\u6587\u4ec5\u7528\u4e8e\u7f51\u7edc\u5b89\u5168\u5b66\u4e60\u4e0e\u9632\u5fa1\u7814\u7a76\u3002\u6240\u6709\u6d4b\u8bd5\u5747\u5728\u672c\u4eba\u672c\u5730\u90e8\u7f72\u3001\u5408\u6cd5\u6388\u6743\u7684 DVWA \u9776\u573a\u4e2d\u8fdb\u884c&#xff0c;\u7981\u6b62\u5c06\u76f8\u5173\u65b9\u6cd5\u7528\u4e8e\u4efb\u4f55\u672a\u6388\u6743\u7cfb\u7edf\u3002\u4e2d\u7b49\u96be\u5ea6 File Upload \u4e00 \u6d4b\u8bd5\u8303\u56f4\u4e0e\u73af\u5883 \u672c\u6b21\u6d4b\u8bd5\u76ee\u6807\u4e3a\u672c\u5730 DVWA \u9776\u573a\u4e2d\u7684 File Up\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84737.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T08:48:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6abf10.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84737.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84737.html\",\"name\":\"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T08:48:40+00:00\",\"dateModified\":\"2026-07-26T08:48:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84737.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84737.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84737.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/84737.html","og_locale":"zh_CN","og_type":"article","og_title":"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6ce8\u610f&#xff1a;\u6709\u5173 File Upload \u6f0f\u6d1e\u7684\u57fa\u7840\u77e5\u8bc6\u4e0e\u539f\u7406\u5df2\u5728\u4e0a\u7bc7\u6587\u7ae0\u6307\u51fa&#xff0c;\u6b64\u5904\u4e0d\u518d\u89e3\u91ca\u3002 \u53ef\u53c2\u8003\u8be5\u6587\u7ae0https:\/\/www.cnblogs.com\/lky-sec\/articles\/21412117 \u672c\u6587\u4ec5\u7528\u4e8e\u7f51\u7edc\u5b89\u5168\u5b66\u4e60\u4e0e\u9632\u5fa1\u7814\u7a76\u3002\u6240\u6709\u6d4b\u8bd5\u5747\u5728\u672c\u4eba\u672c\u5730\u90e8\u7f72\u3001\u5408\u6cd5\u6388\u6743\u7684 DVWA \u9776\u573a\u4e2d\u8fdb\u884c&#xff0c;\u7981\u6b62\u5c06\u76f8\u5173\u65b9\u6cd5\u7528\u4e8e\u4efb\u4f55\u672a\u6388\u6743\u7cfb\u7edf\u3002\u4e2d\u7b49\u96be\u5ea6 File Upload \u4e00 \u6d4b\u8bd5\u8303\u56f4\u4e0e\u73af\u5883 \u672c\u6b21\u6d4b\u8bd5\u76ee\u6807\u4e3a\u672c\u5730 DVWA \u9776\u573a\u4e2d\u7684 File Up","og_url":"https:\/\/www.wsisp.com\/helps\/84737.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T08:48:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260726084838-6a65c9e6abf10.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84737.html","url":"https:\/\/www.wsisp.com\/helps\/84737.html","name":"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T08:48:40+00:00","dateModified":"2026-07-26T08:48:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84737.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84737.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84737.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"DVWA Medium File Upload\u5b89\u5168\u6d4b\u8bd5\u4e0e\u9632\u62a4\u5206\u6790"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=84737"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84737\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/84731"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84737"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}