can you prevent malicious use of browser back button in forms auth

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default can you prevent malicious use of browser back button in forms auth

    Hi there,

    Here is a scenario that I 've been asked to look into. Can anyone comment on this...

    I have a Web App that uses forms authentication to secure sections. Say for example that a user is logged in and authenticated to use secure sections of site. User then proceeds to navigate to some site outside of the secure sections of the web app (could be any url) but forgets to log out then eventually gets up and walks away from their machine. Some other malicious user then comes along and presses the back button on their browser to see what forgetful user has been looking at.

    I've been asked to somehow prevent that malicious user from being able to gain access to secure content if fogetful user didn't logout and the forms authentication timer on the auth cookie hasn't yet expired.

    I'm really not sure if this is possible
    Danny Guest

  2. Similar Questions and Discussions

    1. Browser Back button problem
      Dear all I'm having a probelm concerning the security of my application. the problem is when a user is loggoed in and then he looged out i redirect...
    2. [PHP] back button and forms
      GET method has restrictions -- you are only guaranteed proper handling of the first 1024 (or some such limit) after which the behaviour is...
    3. [PHP] back button and forms
      session.cache_expire is what your looking for I believe http://www.php.net/manual/en/ref.session.php ----- Original Message ----- From:...
    4. prevent back in browser
      For the whole appliation, how can I prevent the users from pressing back in the browser to go back to the previous page? Thanks
    5. Back button on the browser problem
      Hi In my application I have a wizard and I have to make sure that user can't come back to previous page of the wizard. The problem is that is user...
  3. #2

    Default Re: can you prevent malicious use of browser back button in forms auth

    Danny,

    Try this in your Page_Load:
    Response.Cache.SetCacheability(HttpCacheability.No Cache)

    This will make it so that when they hit back, the pages aren't still there.

    --
    Regards,
    Wes Henderson

    In order to help everyone, please direct all replies to this newsgroup.
    This posting is my personal effort to provide help and is not on behalf of
    any company.
    Also, this posting is provided "AS IS" with no expressed or implied
    warranties.

    "Danny" <Danny@discussions.microsoft.com> wrote in message
    news:326E8C10-7B46-4D27-94F8-5A10465BBFEF@microsoft.com...
    > Hi there,
    >
    > Here is a scenario that I 've been asked to look into. Can anyone comment
    on this...
    >
    > I have a Web App that uses forms authentication to secure sections. Say
    for example that a user is logged in and authenticated to use secure
    sections of site. User then proceeds to navigate to some site outside of the
    secure sections of the web app (could be any url) but forgets to log out
    then eventually gets up and walks away from their machine. Some other
    malicious user then comes along and presses the back button on their browser
    to see what forgetful user has been looking at.
    >
    > I've been asked to somehow prevent that malicious user from being able to
    gain access to secure content if fogetful user didn't logout and the forms
    authentication timer on the auth cookie hasn't yet expired.
    >
    > I'm really not sure if this is possible

    Wes Henderson Guest

  4. #3

    Default Re: can you prevent malicious use of browser back button in forms

    This does prevent cached pages from being viewed however it does not prevent the fact that a valid authentication cookie still exists on the client machine. Therefore, when the malicious user presses back, the secure pages are reloaded from the server using the forms authentication cookie that nice user accidently left lying around (without knowing it).

    What I'm trying to ask here is how can you prevent a malicious user (inadvertently) making use of the forms authentication cookie that hasn't yet expired due to a timeout?



    "Wes Henderson" wrote:
    > Danny,
    >
    > Try this in your Page_Load:
    > Response.Cache.SetCacheability(HttpCacheability.No Cache)
    >
    > This will make it so that when they hit back, the pages aren't still there.
    >
    > --
    > Regards,
    > Wes Henderson
    >
    > In order to help everyone, please direct all replies to this newsgroup.
    > This posting is my personal effort to provide help and is not on behalf of
    > any company.
    > Also, this posting is provided "AS IS" with no expressed or implied
    > warranties.
    >
    > "Danny" <Danny@discussions.microsoft.com> wrote in message
    > news:326E8C10-7B46-4D27-94F8-5A10465BBFEF@microsoft.com...
    > > Hi there,
    > >
    > > Here is a scenario that I 've been asked to look into. Can anyone comment
    > on this...
    > >
    > > I have a Web App that uses forms authentication to secure sections. Say
    > for example that a user is logged in and authenticated to use secure
    > sections of site. User then proceeds to navigate to some site outside of the
    > secure sections of the web app (could be any url) but forgets to log out
    > then eventually gets up and walks away from their machine. Some other
    > malicious user then comes along and presses the back button on their browser
    > to see what forgetful user has been looking at.
    > >
    > > I've been asked to somehow prevent that malicious user from being able to
    > gain access to secure content if fogetful user didn't logout and the forms
    > authentication timer on the auth cookie hasn't yet expired.
    > >
    > > I'm really not sure if this is possible
    >
    >
    >
    Danny Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139