Do you use e-mail? You use passwords no doubt to log on. People have told you that passwords can be stolen. So what did you do you used a combination of upper case, lower case and god knows what all to come up with a string that you have great difficulty remembering - due to which you need to write it down somewhere. Great now you have your e-mail address secure against password cracking.
Do I need to break your password. I mean if I am a smart attacker I wont bother with that, I will just phish for it and make you provide your password to me on a plate. If you are smart you wont fall for it and you would refuse to provide your password to me. So what else can I do? I can steal your session. I will steal your cookie.
What are cookies, no they are not a sweet tasting dish that someone baked. It is something that websites put on your machine so that the next time you go there, they can find out that it is you. This is how google mail, yahoo mail, hotmail and every other mail works. When you provide an id and password they send a cookie to you which is saved on your machine. Everytime you refresh your page this cookie is sent out which tells them that it is you. You may tell - why the hell I logged on, why does it need a cookie everytime. Good question, but do you think it is possible to for these providers to keep track of every single user that is logged on them. No way. That is how you can log on to multiple machines at once. Even if you log out on one machine, you stay logged on the others. Basically you stay on till the cookie expires.
Coming back, what can I do. I can sniff packets. These cookies are sent without encryption, in plain text. If I see a cookie, I can open it. I can read it, I can do whatever I wish with it. So all I do is I steal the hash information on it. I place it on my browser, and hey, I have your session, I AM YOU. This basically is masquerading. This has been around for ages. I am not saying theoretic stuff, one student in my class actually demonstrated this live. I also went ahead and tried it through virtual machines as I work in a lab where there is just too much network traffic.
It is possible to fix this bug, but no one will because everone uses stateless servers. So do you keep sensitive information in your mail?
Do I need to break your password. I mean if I am a smart attacker I wont bother with that, I will just phish for it and make you provide your password to me on a plate. If you are smart you wont fall for it and you would refuse to provide your password to me. So what else can I do? I can steal your session. I will steal your cookie.
What are cookies, no they are not a sweet tasting dish that someone baked. It is something that websites put on your machine so that the next time you go there, they can find out that it is you. This is how google mail, yahoo mail, hotmail and every other mail works. When you provide an id and password they send a cookie to you which is saved on your machine. Everytime you refresh your page this cookie is sent out which tells them that it is you. You may tell - why the hell I logged on, why does it need a cookie everytime. Good question, but do you think it is possible to for these providers to keep track of every single user that is logged on them. No way. That is how you can log on to multiple machines at once. Even if you log out on one machine, you stay logged on the others. Basically you stay on till the cookie expires.
Coming back, what can I do. I can sniff packets. These cookies are sent without encryption, in plain text. If I see a cookie, I can open it. I can read it, I can do whatever I wish with it. So all I do is I steal the hash information on it. I place it on my browser, and hey, I have your session, I AM YOU. This basically is masquerading. This has been around for ages. I am not saying theoretic stuff, one student in my class actually demonstrated this live. I also went ahead and tried it through virtual machines as I work in a lab where there is just too much network traffic.
It is possible to fix this bug, but no one will because everone uses stateless servers. So do you keep sensitive information in your mail?
