Decrypt Session objects?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stefan

    #1

    Decrypt Session objects?

    Hi!
    I just want to know if it's common to decrypt a Session-Object in a
    ASP.NET application.
    My collegue says that I have not do this because the information is
    stored on the server.
    Any suggestions?


  • Justin Rogers

    #2
    Re: Decrypt Session objects?

    Session state is stored on the server side, so you don't need to use any
    crypto on it. The actual session id is sent down to the client in the form
    of a cookie and re-read on return to the site to actually hook up the user's
    Session state with the running code (Page instance).

    --
    Justin Rogers
    DigiTec Web Consultants, LLC.

    "Stefan" <shogun@steffsw orld.ch> wrote in message
    news:eEexumebDH A.3312@TK2MSFTN GP11.phx.gbl...[color=blue]
    > Hi!
    > I just want to know if it's common to decrypt a Session-Object in a
    > ASP.NET application.
    > My collegue says that I have not do this because the information is
    > stored on the server.
    > Any suggestions?
    >
    >[/color]


    Comment

    • Stefan

      #3
      Re: Decrypt Session objects?

      So Session hijacking isn't an issue?

      "Justin Rogers" <Justin@games4d otnet.com> wrote in message
      news:uhgdRTfbDH A.2308@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Session state is stored on the server side, so you don't need to use any
      > crypto on it. The actual session id is sent down to the client in the[/color]
      form[color=blue]
      > of a cookie and re-read on return to the site to actually hook up the[/color]
      user's[color=blue]
      > Session state with the running code (Page instance).
      >
      > --
      > Justin Rogers
      > DigiTec Web Consultants, LLC.
      >
      > "Stefan" <shogun@steffsw orld.ch> wrote in message
      > news:eEexumebDH A.3312@TK2MSFTN GP11.phx.gbl...[color=green]
      > > Hi!
      > > I just want to know if it's common to decrypt a Session-Object in a
      > > ASP.NET application.
      > > My collegue says that I have not do this because the information is
      > > stored on the server.
      > > Any suggestions?
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • John Timney \(Microsoft MVP\)

        #4
        Re: Decrypt Session objects?

        Session hijacking is always an issue if your network traffic can be
        compromised - and on the web it usually can - which is why you have
        encrypted viewstate in .NET, and SSL to fall back on should you require it.
        However, its not usually something you worry about unless your transactions
        are mission critical or financial, then not using enhanced security is a
        real foolish thing to do.

        Have a read of this, its a very good explanation of your concerns.

        http://msdn.microsoft.com/chats/vstu...dio_121201.asp

        --
        Regards

        John Timney (Microsoft ASP.NET MVP)
        ----------------------------------------------
        <shameless_auth or_plug>
        Professional .NET for Java Developers with C#
        ISBN:1-861007-91-4
        Professional Windows Forms
        ISBN: 1861005547
        Professional JSP 2nd Edition
        ISBN: 1861004958
        Professional JSP
        ISBN: 1861003625
        Beginning JSP Web Development
        ISBN: 1861002092
        </shameless_autho r_plug>
        ----------------------------------------------

        "Stefan" <shogun@steffsw orld.ch> wrote in message
        news:#2qtWXfbDH A.1128@tk2msftn gp13.phx.gbl...[color=blue]
        > So Session hijacking isn't an issue?
        >
        > "Justin Rogers" <Justin@games4d otnet.com> wrote in message
        > news:uhgdRTfbDH A.2308@TK2MSFTN GP12.phx.gbl...[color=green]
        > > Session state is stored on the server side, so you don't need to use any
        > > crypto on it. The actual session id is sent down to the client in the[/color]
        > form[color=green]
        > > of a cookie and re-read on return to the site to actually hook up the[/color]
        > user's[color=green]
        > > Session state with the running code (Page instance).
        > >
        > > --
        > > Justin Rogers
        > > DigiTec Web Consultants, LLC.
        > >
        > > "Stefan" <shogun@steffsw orld.ch> wrote in message
        > > news:eEexumebDH A.3312@TK2MSFTN GP11.phx.gbl...[color=darkred]
        > > > Hi!
        > > > I just want to know if it's common to decrypt a Session-Object in a
        > > > ASP.NET application.
        > > > My collegue says that I have not do this because the information is
        > > > stored on the server.
        > > > Any suggestions?
        > > >
        > > >[/color]
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Stefan

          #5
          Re: Decrypt Session objects?

          many tnx!
          "John Timney (Microsoft MVP)" <timneyj@despam med.com> wrote in message
          news:%238pCI4gb DHA.1272@TK2MSF TNGP12.phx.gbl. ..[color=blue]
          > Session hijacking is always an issue if your network traffic can be
          > compromised - and on the web it usually can - which is why you have
          > encrypted viewstate in .NET, and SSL to fall back on should you require[/color]
          it.[color=blue]
          > However, its not usually something you worry about unless your[/color]
          transactions[color=blue]
          > are mission critical or financial, then not using enhanced security is a
          > real foolish thing to do.
          >
          > Have a read of this, its a very good explanation of your concerns.
          >
          > http://msdn.microsoft.com/chats/vstu...dio_121201.asp
          >
          > --
          > Regards
          >
          > John Timney (Microsoft ASP.NET MVP)
          > ----------------------------------------------
          > <shameless_auth or_plug>
          > Professional .NET for Java Developers with C#
          > ISBN:1-861007-91-4
          > Professional Windows Forms
          > ISBN: 1861005547
          > Professional JSP 2nd Edition
          > ISBN: 1861004958
          > Professional JSP
          > ISBN: 1861003625
          > Beginning JSP Web Development
          > ISBN: 1861002092
          > </shameless_autho r_plug>
          > ----------------------------------------------
          >
          > "Stefan" <shogun@steffsw orld.ch> wrote in message
          > news:#2qtWXfbDH A.1128@tk2msftn gp13.phx.gbl...[color=green]
          > > So Session hijacking isn't an issue?
          > >
          > > "Justin Rogers" <Justin@games4d otnet.com> wrote in message
          > > news:uhgdRTfbDH A.2308@TK2MSFTN GP12.phx.gbl...[color=darkred]
          > > > Session state is stored on the server side, so you don't need to use[/color][/color][/color]
          any[color=blue][color=green][color=darkred]
          > > > crypto on it. The actual session id is sent down to the client in the[/color]
          > > form[color=darkred]
          > > > of a cookie and re-read on return to the site to actually hook up the[/color]
          > > user's[color=darkred]
          > > > Session state with the running code (Page instance).
          > > >
          > > > --
          > > > Justin Rogers
          > > > DigiTec Web Consultants, LLC.
          > > >
          > > > "Stefan" <shogun@steffsw orld.ch> wrote in message
          > > > news:eEexumebDH A.3312@TK2MSFTN GP11.phx.gbl...
          > > > > Hi!
          > > > > I just want to know if it's common to decrypt a Session-Object in a
          > > > > ASP.NET application.
          > > > > My collegue says that I have not do this because the information is
          > > > > stored on the server.
          > > > > Any suggestions?
          > > > >
          > > > >
          > > >
          > > >[/color]
          > >
          > >[/color]
          >
          >[/color]


          Comment

          Working...