How cookies can be dangerous !
August 18, 2013 2 Comments
I was just exploring the scope of javascript injection the other day when I stumbled across this yet another dangerous element in the web, the cookies !!!
While cookies help web developers offer services and features that would require extensive programming otherwise, there are some dangerous security risks that must be understood before cookies are ever implemented into a website.
What are cookies ?
Cookie may be considered as a small piece of data sent from a website and stored in a user’s web browser while a user is browsing a website. When the user browses the same website in the future, the data stored in the cookie can be retrieved by the website to notify the website of the user’s previous activity. So that means only some mere information are stored in form of cookies!
So what is the big deal?

The big deal about cookies!
- Cookies are stored in form of plain text in user’s system. So if you have the access to local machine you have the access to their cookies.
- Cookies are passed as plain text across the network unless explicitly encrypted. Anyone with a sniffer can capture the cookies contents and use them as their own. If a person logs into a web application at an unprotected wireless hotspot, an attacker can grab the session value and insert it into their own cookie, thus hijacking the session from the valid user.
- Cross site scripting can be used to steal theelements like session ids which can be used by the attacker to collect sensitive information or create panic by posting fake content under a stolen account.
Still I didn’t get it.
Let me take an example of foursquare.com . Read more of this post

