LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-09-2020, 02:08 AM   #1
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Rep: Reputation: Disabled
Is there any risk in accepting cookies ?


Hi,
While surfing the web randomly I find many websites asking permission to store cookies. I just leave the notification alone meaning I don't click on the "OK" button.

But some distro forums too ask me if I want to store their cookies.

So I am curious.

Q1) Should I accept cookies ?

Q2) Are there any risks ?
 
Old 07-09-2020, 02:57 AM   #2
markd81
LQ Newbie
 
Registered: Jul 2020
Location: Netherlands
Distribution: Debian
Posts: 17

Rep: Reputation: 3
It depends. What I usually do is browse websites I don't trust in incognito mode and accept all cookies. Some news sites force you to accept cookies in order to see social media content or videos. In my normal browser session I accept the basic or necessary cookies and decline the marketing, performance and statistics cookies. I'm not sure how the website reacts to just ignoring their cookie wall. Perhaps they assume you agree and store all cookies including the marketing stuff. Disabling tracking in your browser is also a good option to activate.
Here's some more info: https://blog.sucuri.net/2019/08/inte...od-or-bad.html
 
Old 07-09-2020, 02:59 AM   #3
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markd81 View Post
It depends. What I usually do is browse websites I don't trust in incognito mode and accept all cookies.
Now that's an awesome idea. Thanks. I will do the same from now.
 
Old 07-09-2020, 04:03 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by markd81 View Post
It depends.
Sure does.
I try to load every web page bare-bones first: only first party HTML & CSS & images.
Only if I can't use the page I allow more.
Sounds troublesome, but the addon can remember my choices so I only have to do it the first time.

Cookies are only one of the many tools the modern web employs to suck your data.
 
Old 07-09-2020, 04:08 AM   #5
markd81
LQ Newbie
 
Registered: Jul 2020
Location: Netherlands
Distribution: Debian
Posts: 17

Rep: Reputation: 3
Quote:
Originally Posted by hifi100 View Post
Now that's an awesome idea. Thanks. I will do the same from now.
You're welcome!

Quote:
Originally Posted by ondoho View Post
Sure does.
I try to load every web page bare-bones first: only first party HTML & CSS & images.
Only if I can't use the page I allow more.
Sounds troublesome, but the addon can remember my choices so I only have to do it the first time.

Cookies are only one of the many tools the modern web employs to suck your data.
I agree. What addon do you use for that?
 
Old 07-09-2020, 04:29 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by markd81 View Post
I agree. What addon do you use for that?
uMatrix.
 
1 members found this post helpful.
Old 07-09-2020, 04:48 AM   #7
KGIII
Member
 
Registered: Sep 2015
Location: North-Western, Maine - in the mountains.
Distribution: Lubuntu 18.04 LTS
Posts: 158
Blog Entries: 6

Rep: Reputation: 64
Heh... I recommend uMatrix, as well. It's basically like an old-school software firewall (for Windows), but only for your browser. Raymond Hill writes good stuff.
 
1 members found this post helpful.
Old 07-09-2020, 05:48 AM   #8
tinfoil3d
Member
 
Registered: Apr 2020
Location: Japan/RJCC
Distribution: debian, lfs, whatever else i need in qemu
Posts: 268

Rep: Reputation: 75
You know, they don't need cookies. There's hundred and more ways to track you besides cookies. It's such an outdated way of doing things anyway. No unconditional risks in accepting them though.
 
1 members found this post helpful.
Old 07-09-2020, 06:52 AM   #9
hifi100
Member
 
Registered: Sep 2016
Location: India
Distribution: Arch Linux
Posts: 357

Original Poster
Rep: Reputation: Disabled
I just went to the preferences window of the Tor browser and found out that Tor browsers by default deletes all cookies on closing of the browser. I don't use Tor browser for all my browsing but its good to know that its security hardened by default.
 
1 members found this post helpful.
Old 07-09-2020, 12:53 PM   #10
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
I try to load every web page bare-bones first: only first party HTML & CSS & images.
Only if I can't use the page I allow more.
Yup. I don't even load images.
Quote:
You know, they don't need cookies. There's hundred and more ways to track you besides cookies. It's such an outdated way of doing things anyway.
What I was thinking. You can be browser and OS fingerprinted no matter what your user agent is, GPS located, web sites keep super cookies, https keeps the original header in the packet, that can be read.

Deleting cookies doesn't do much, other than get rid of your login credentials for a web page. So that the next person sitting down can't use your netflix account.

Clear all of your cookies, clear the cache on your web browser, shut your machine down, reboot it. Then browse a few web pages without logging in to anything. Then go to google and see what they know about you. That will shock you a little. They have your IP associated with you. And depending on what browser that you use, it talks to google, amazon, facebook whether you agree or not.

They will even track you if you use a browser like dillo or w3m, even if you don't have a facebook account.

Go ahead and do a little testing for fun.
 
Old 07-09-2020, 08:28 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
The notices that sites use cookies are the result of the GDPR. Cookies have been around for a long long time, but, because of the GDPR, sites that use cookies and wish to be accessible to folks in the EU are required to notify visitors that they use cookies.

The great majority cookies are harmless. They do things such as allow the website to remember that you are logged in.

The most inimical cookies are tracking cookies, which track where you go beyond the website you are visiting. Some tracking cookies remain active even after you have left or logged out of the particular website that dropped them (these are called "persistent" cookies), sometimes after you have closed your browser. Facebook, in particular, is notorious for that type of tracking, but it's hardly alone in these days of surveillance capitalism.

I run noscript on Firefox, which is my primary browser. When I visit a website that I trust (such as LQ), I will mark that site as trusted in noscript. If it's one that I consider generally trustworthy (say, a major newspaper website, such as ajc.com or azcentral.com), I will click to temporarily trust it.

If it's one I do not trust, such as the Zuckerborg, I will browse it in private or incognito mode, ensuring that any cookies it drops will not persist past my visit to the site.

Just my two cents.

Last edited by frankbell; 07-10-2020 at 10:11 PM. Reason: grammar
 
Old 07-10-2020, 04:34 PM   #12
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by hifi100 View Post
I just went to the preferences window (...) by default deletes all cookies on closing of the browser.
Oh yes, one should definitely do that.

Quote:
Originally Posted by teckk View Post
Deleting cookies doesn't do much, other than get rid of your login credentials for a web page. So that the next person sitting down can't use your netflix account.
I disagree. These are just session cookies, but they can do much more, can contain much more information.
Cookies can be read across sites so they get a whole set of info from you visiting other sites etc.
 
Old 07-10-2020, 11:22 PM   #13
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
For some time I do not much think about cookies. If it is an option I disable them.
But cookies are created with JavaScript, so NoScript helps me with that, too, especially when a site owner is completely unaware of what the “developers” used to have someone “generate” while they were payed to “develop” it, by themselves.

My default is to block everything, I enable individual entries if need be (seldomly is).
Here is France Culture; I always feel nostalgic when I see doubleclick.net... reminds me of the junkbuster years :
Attached Thumbnails
Click image for larger version

Name:	sc_frace_culture.png
Views:	16
Size:	200.1 KB
ID:	33629  

Last edited by Michael Uplawski; 07-11-2020 at 05:34 AM. Reason: Confusion shifted.
 
Old 07-11-2020, 04:58 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Michael Uplawski View Post
But cookies are created with JavaScript
The two might often be connected, but technically this is not true, not as a generalisation anyhow.
I know plenty situations where cookies are created without javascript. PHP usually does that I think.

Quote:
Originally Posted by Michael Uplawski View Post
Here is France Culture;
This is the Tor Browser, this image is not representative of anything.
But even so, I hope you are not allowing all those set to Default.

Is France Culture "öffentlich-rechtlich"? What a horrible amount of trackers.
To compare, this is what I'm seeing on wdr.de:
Attached Thumbnails
Click image for larger version

Name:	scrot-2020-07-11_12:53:22.png
Views:	16
Size:	33.5 KB
ID:	33631  
 
Old 07-11-2020, 05:15 AM   #15
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
PHP usually does that I think.
Astonish me and tell me how a PHP-generated web-page creates cookies. At this moment, I know nothing about it and really need to learn this.

When the web-page creates cookies, it is already loaded in a browser. I cannot see what else but JavaScript would be able to do anything “dynamic” at this moment. PHP will most certainly create the JavaScript which is shipped along with the generated HTML, as do any other Web-Application frameworks, like jsp, faces, rails, sinatra... etc.

Quote:
This is the Tor Browser, this image is not representative of anything.
It is NoScript 11.0.33.
Quote:
But even so, I hope you are not allowing all those set to Default.
See my posting :
Quote:
Originally Posted by Michael Uplawski
My default is to block everything, I enable individual entries if need be (seldomly is).
Quote:
Is France Culture "öffentlich-rechtlich"?
Completely.
I already wrote about that problem here on LQ. What I did :
  • Contacted the Radio France « Moderator » 5 times on the topic (« We do not know what you are talking about / Nobody ever complained »)
  • Wrote to the French agency for Net-security (Like Datenschutzbehörde) (« We are incompetent to advise you ». I Swear !!)
  • Wrote to the French ministry of Communications & Culture (« We are incompetent to give you a response ». That was somehow expected.)

Quote:
To compare, this is what I'm seeing on wdr.de:
It is the same for BR2 (or br.de in general). Things got worse when you wanted to actually *listen* to their broadcasts on franceculture.fr, but they changed that in the meantime : You could quite simple not listen to anything, if you did not allow some connections completely unrelated to podcasts or streaming.

I only hope that they know what they are doing.

Last edited by Michael Uplawski; 07-11-2020 at 05:39 AM. Reason: cosmetics.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What cookies does linuxquestions send a user? Must I enable cookies to keep logged in? winger9 Linux - Newbie 2 01-18-2014 07:24 PM
cookies in Firefox - can Google read Yahoo! cookies? nerdofdarkness Linux - Newbie 9 11-11-2013 01:04 AM
Will a RISK Processor Run on Linux, PA-RISK 8500 at 400MHz CPU IBNETMAN79 Linux - General 2 03-08-2002 07:09 PM
Will a RISK Processor Run Linux, PA-RISK 8500 CPU IBNETMAN79 Linux - Newbie 1 03-08-2002 06:49 PM
Will A RISK CPU Run Linux, HP PA-RISK 8500 CPU IBNETMAN79 General 0 03-08-2002 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration