Cookies and user information

49 views
Skip to first unread message

rahul gayakwad

unread,
Jul 11, 2013, 3:18:48 AM7/11/13
to wncc...@googlegroups.com
Hello all,
I have been searching on cookies and I want to know more about them..can anyone help me out with this ?
What are the different functionlaities of cookies stored on users side through a website and what different dimensions of information that can be accedssed through cookies?

Dilawar Singh

unread,
Jul 12, 2013, 3:03:12 AM7/12/13
to wncc...@googlegroups.com
Firefox stores cookies in sqlite database, ~/.mozzila/firefox/weired_looking_name/cookies.sqlite . Let's have a look at this database. Some other browser might use xml file to store cookies.

This database has one table moz_cookies; its schema (or what is stored in each line in this table) is following

id INTEGER PRIMARY KEY, baseDomain TEXT, appId INTEGER DEFAULT 0, inBrowserElement INTEGER DEFAULT 0, name TEXT, value TEXT, host TEXT, path TEXT, expiry INTEGER, lastAccessed INTEGER, creationTime INTEGER, isSecure INTEGER, isHttpOnly INTEGER, (..some other sql related stuff ...).

Let's take out one entry which looks like this

88437|guardian.co.uk|0|0|s_vi|[CS]v1|282093D0050118E3-40220010E20222C9F[CE]|.guardian.co.uk|/|1436681754|1373609999761418|1369499620403843|0|0

Moodle stored following cookie
64253|iitb.ac.in|0|0|MOODLEID1_|%25E7%15E6%25FE%25DF%25E3%112Bk%25B1|moodle.iitb.ac.in|/|1399919851|1188735851803123|1372732221802223|0|0

Now the information stored on my browser as cookie by guardian site will be used by the site when I visit them again. When I visit guardian again, it demands cookies with its `domainName` from browser. This information is sent to site to do whatever it wants to do with it.

By looking at cookies, sites figure out how many new unique visitors they have.  They can also check if you logged-out from their site before leaving it; if not then they will automatically log you in during your next visit. Once in a while it is a good idea to look at your cookies if you browse untrusted sites (porn sites, free download sites etc). I am not aware if sites can store anything damaging in my browser as cookies.

Cookies are sensitive data and should be protected (please don't share your whole C: on DC) . Now if you insert this cookie in your browser database, and access guardian site, it will take you as me and might give you my already logged-in account -- (I have changed some data, just to be safe).

Prefer private browsing in Firefox on shared computer (such as pc lab), it will delete all cookies as soon as you log-out.

Dilawar
EE, IITB


--
--
The website for the club is http://stab-iitb.org/wncc
To post to this group, send email to wncc...@googlegroups.com
 
---
You received this message because you are subscribed to the Google Groups "Web and Coding Club IIT Bombay" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wncc_iitb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sanket Totala

unread,
Jul 12, 2013, 5:38:44 AM7/12/13
to wncc...@googlegroups.com
fully agree with the above...

if you clear all fb cookies from browser, you will be automatically logged out of fb.

moreover, affiliate programs use cookies:
if someone visits a site with advertizement, the ad owner stores a cookie on the browser. if something is buyed from the owner's site, the site owner gets commission. Wiki for more..

nowadays, people have started sharing cookies on internet...
For eg, you want to download a book from a book sharing site (which is not free), you can get cookies of a person who has paid for the site. if he is logged in, you too are!!! and u can download all stuff from it.


Thanks and Regards,
Sanket Totala
4rd Year Undergraduate
Computer Science Department
IIT Bombay

Reply all
Reply to author
Forward
0 new messages