網(wǎng)站存在目錄遍歷漏洞IIS服務器主機空間修復
發(fā)表日期:2024-07-22 16:13:57?? 文章編輯:超級管理員 ?? 瀏覽次數(shù):193
原因:直接網(wǎng)址打開目錄會顯示所有內(nèi)容,比如:在瀏覽器打開網(wǎng)址:m.mabhome.com/images/后,會顯示目錄下所有文件,如不顯示,表示已經(jīng)禁用,否則已開啟。

目錄遍歷漏洞圖
IIS服務器修復方法:在網(wǎng)站根目錄下的web.config里新增以下紅色部分代碼到相應的位置即可。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<defaultDocument>
<files>
<clear />
<add value="index.php" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
如沒特殊注明,文章均為宜興博路網(wǎng)絡原創(chuàng),轉載請注明來自http://m.mabhome.com/news/changjianwenti/412.html
