zoukankan      html  css  js  c++  java
  • ASP.NET Misconfiguration: Excessive Session Timeout

    Abstract:

    An overly long authentication timeout gives attackers more time to potentially compromise user accounts.

    Explanation:

    The longer a session stays open, the larger the window of opportunity an attacker has to compromise user accounts. While a

    session remains active, an attacker may be able to brute-force a user's password, crack a user's wireless encryption key, or

    commandeer a session from an open browser. Longer authentication timeouts can also prevent memory from being released and

    eventually result in a denial of service if a sufficiently large number of sessions are created.

    Example 1: The following example shows ASP.NET MVC configured with an hour authentication timeout.

    ...

    <configuration>

    <system.web>

    <authentication>

    <forms

    timeout="60" />

    </authentication>

    </system.web>

    </configuration>

    ...

    If the timeout attribute is not specified the authentication timeout defaults to 30 minutes.

    Recommendations:

    Set an authentication timeout that is 15 minutes or less, which both allows users to interact with the application over a period of

    time and provides a reasonable bound for the window of attack.

    Example 2: The following example sets the authentication timeout to 15 minutes.

    ...

    <configuration>

    <system.web>

    <authentication>

    <forms

    timeout="15" />

    </authentication>

    </system.web>

    </configuration>

  • 相关阅读:
    报表图片不显示的问题(一)
    数据库时区问题
    变色
    给div加滚动条,当内容超过它的范围的时候
    Apple Style Effect
    easyui发生重叠现象的原因
    mysql 获取字符串长度
    纯css的带下拉菜单的导航条
    jQuery验证控件jquery.validate.js使用说明+中文API
    background-position 用法详细介绍
  • 原文地址:https://www.cnblogs.com/time-is-life/p/6203084.html
Copyright © 2011-2022 走看看