I am new to the ideas of secure connections through cookies/sessions so I am doing some research and I came across the SSL handshake. I understand that:
- browser sends an initial request to a server
- Server sends certificate (containing a public key n) to browser
- Browser chooses a random x (I don't know how this is done), and computes (x^65537 mod n), and sends this computed value back to the Server
- Server decrypts this computed value using their two private (usually prime) keys
- Server and client now have a "session key" which only the two parties know about. They now use this session key to encrypt all messages belonging to this session.
I found a question Here talking about where this SSL symmetric key (session key) is stored on the Server side.
On the client side however, I've tried opening the developers console and looking for it but I can't find it. This makes sense, obviously I shouldn't be able to easily find it. Where is this session key stored on the client side? Is it possible for my session key to be stolen during an XSS attack?