【发布时间】:2014-09-09 09:43:12
【问题描述】:
我有一个 webapp (MVC 4),它的目的是对文件进行操作,它的工作方式是:
用户上传文件 -> 网站对文件进行操作 -> 用户再次下载文件(文件的新版本)。
所以我需要在我的网站中接受一个大文件大小,所以我做了什么:
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
<authentication mode="None" />
<!--<compilation debug="true" targetFramework="4.5" />-->
<httpRuntime targetFramework="4.5" maxRequestLength="2097151" executionTimeout="3600"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295"/>
</requestFiltering>
</security>
如您所见,我放大了“maxAllowedContectLength”以及“maxRequestLength”和“executionTimeout”值。
我的问题:
我的行为是否会在我的网站安全方面造成漏洞?
如果是这样,为什么?有更好的方法吗?我能做些什么来最大程度地减少威胁?
【问题讨论】:
标签: asp.net asp.net-mvc security