欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

FCKeditor.Net_2.2安全修正版

 更新時(shí)間:2006年10月26日 00:00:00   作者:  
FCKeditor為一開(kāi)源多功能在線Web編輯器。官方網(wǎng)站:http://www.fckeditor.net/。
相關(guān)安全文件參看:
《在.net中使用Fckeditor》 http://cliffever.cnblogs.com/archive/2006/05/09/395134.aspx
《FCKeditor 實(shí)戰(zhàn)技巧》http://www.dbjr.com.cn/html/200609/1206.htm
《asp.net下FCKeditor的安全問(wèn)題》http://www.lvjiyong.com/item/fckeditor-safe


=======================
FCKeditor 安全問(wèn)題(只指.Net_2.2版)

上傳文件格式驗(yàn)證不嚴(yán)格(只客戶端驗(yàn)證)。
FCKeditor目錄沒(méi)有設(shè)驗(yàn)證權(quán)限。
多余上傳文件漏洞。


解決方法:
    可以查看修改過(guò)的FCKeditor.Net_2.2。
    站點(diǎn)下的FCKeditor目錄進(jìn)行安全設(shè)置,只允許制定用戶角色的用戶訪問(wèn)。
    將站點(diǎn)下不使用的多余上傳文件刪除。參看實(shí)例testFCKeditor。

FCKeditor.Net_2.2修改部分:
    1、FileWorkerBase.cs 添加上傳文件擴(kuò)展名驗(yàn)證函數(shù)與屬性部分。
        使用方法跟設(shè)置UserFilesPath類似。
            Application["FCKeditor:UploadDeniedExtensions"]
            Session["FCKeditor:UploadDeniedExtensions"]
            System.Configuration.ConfigurationSettings.AppSettings["FCKeditor:UploadDeniedExtensions"]
        可以參看實(shí)例testFCKeditor。
        UserFilesPath屬性配置部分"FCKeditor:UserFilesPath"可以設(shè)置成"虛擬站點(diǎn)目錄"(類似與修改后的BasePath設(shè)置)。
    2、Uploader.cs
    3、FileBrowserConnector.cs
        以上兩文件增加對(duì)上傳文件類型的驗(yàn)證。
    4、FCKeditor.cs 文件BasePath屬性默認(rèn)為"~/FCKeditor/" 。

注:
    FredCK.FCKeditorV2.dll配件為DotNet 2.0配件。
    本修改部分在ASP.NET 2.0下調(diào)試通過(guò)。
下載文件 下載此文件

相關(guān)文章

最新評(píng)論