BlogEngine.NET js.axd 模块漏洞及修复

by benben 4/14/2008 1:46:00 PM

早上浏览http://ha.ckers.org/时,发现作者说BlogEngine.NET的读取文件漏洞!于是在本地测试了下,发现国内1.3的确存在这样的漏洞!

问题 

读取web.config

 

读取管理员用户名和密码 users.xml

解决办法

1.修改 BlogEngine.Core\Web\HttpHandlers\JavaScriptHandler.cs文件

在private static string RetrieveRemoteScript(string file) 和private static string RetrieveLocalScript(string file)里分别加上以下代码

[code:c#]

            if (!file.EndsWith(".js", StringComparison.OrdinalIgnoreCase))
            {
                throw new System.Security.SecurityException("No access");
            }

[/code] 

重新编译后即可解决问题。

2.下载我编译好的文件,覆盖到 bin文件夹即可

修复后提示

Bin-fix.zip (263.00 kb)

3.采用官方修复办法

 http://www.dotnetblogengine.net/post/Critical-Security-Patch-Available.aspx

 

test

Tags: , ,

.net

Comments

5/29/2008 6:21:36 AM

很好的说明,不过最好把地址栏的内容用写字板涂掉,这个漏洞实在是太严重了,有不轨的人利用就可怕了。
顺便贴下一个台湾工程师的文章,他提到的logpphaser工具很有用。

ebum cn

5/29/2008 6:30:11 AM

呵呵,看到你的留言了

ebum cn

5/29/2008 7:44:46 AM

呵呵,谢谢提醒!

benben cn

Add comment

 

   

 

  Country flag

buquote
Loading

Powered by BlogEngine.NET 苏ICP备08023017号



Recent comments

Author

声明

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in