From 09bbf18aa611694daf60a532628b440e9c040166 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 11:16:37 +0200 Subject: [PATCH 01/10] Created SECURITY.md Should be linked in the FAQ - to address the common security related questions. --- SECURITY.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..03d5ad5 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,30 @@ +# Security + +## Are you tracking my viewing history? + +No. The extension's code is public and you can see it for yourself. The only information being sent is the video ID. There are no additional headers being sent. Over the communication layer, your public IP will be exposed to the server, as well as the time when the request was made. However, none of these are uniquely identifying you in any way. Assuming a zero-trust environment, the best we could get is a dynamic IP. Which, today is yours, tomorrow is your neighbor's. If you're really worried about your IP being traced, you probably already use a VPN. + +# Can you uniquely identify me if I dislike? + +No. When you dislike a video, we create a unique (but random and non-identifiable) ID for you. This is done to prevent botting. But again, it cannot uniquely identify you. + +## What information do you have, exactly? + +Just the video ID. Not your comments, not your username, not who you've shared the video with, not any additional metadata. Nothing. Just the video ID. + +## How is my IP stored? + +The backend keeps IP addresses in volatile memory (RAM) only. These addresses aren't stored on a hard drive, and therefore aren't logged. This is done to prevent database vandalism. + +## I heard some discussion over OAuth, and access to my YouTube account! + +This feature is optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way OAuth was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. + +## How can I trust this dislike count? + +Short answer is: you can't. We've implemented anti-botting measures, but at the end of the day, it's up to you to decide whether you trust our count or not. + +## Why don't you share the backend code? + +We may share it at some point - but there's really no real reason to share it. It gives a false sense of security - because in a zero-trust system, we could just as well disclose one version but deploy another. There are plenty of reasons to keep the code hidden, specifically, how we battle spam. Hiding/Obfuscating the spam handling code is a fairly standard practice. + From b46d705b2c0e9b916848200cdf5c13d83534d380 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 11:18:40 +0200 Subject: [PATCH 02/10] Update FAQ.md --- FAQ.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FAQ.md b/FAQ.md index 0192501..74c5ac7 100644 --- a/FAQ.md +++ b/FAQ.md @@ -16,3 +16,6 @@ The extension collects the video id of the video you are watching, fetches the d ### **4. What will happen after the YouTube API stops returning the dislike count?** The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives. + +## I have security concerns +See [this page](SECURITY.md) for more info. From 420be465886bf2d7d4d3c19521a3c369c485ac93 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 11:20:23 +0200 Subject: [PATCH 03/10] Update SECURITY.md Formatting changes --- SECURITY.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 03d5ad5..9343216 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,30 +1,30 @@ # Security -## Are you tracking my viewing history? +### Are you tracking my viewing history? No. The extension's code is public and you can see it for yourself. The only information being sent is the video ID. There are no additional headers being sent. Over the communication layer, your public IP will be exposed to the server, as well as the time when the request was made. However, none of these are uniquely identifying you in any way. Assuming a zero-trust environment, the best we could get is a dynamic IP. Which, today is yours, tomorrow is your neighbor's. If you're really worried about your IP being traced, you probably already use a VPN. -# Can you uniquely identify me if I dislike? +### Can you uniquely identify me if I dislike? No. When you dislike a video, we create a unique (but random and non-identifiable) ID for you. This is done to prevent botting. But again, it cannot uniquely identify you. -## What information do you have, exactly? +### What information do you have, exactly? Just the video ID. Not your comments, not your username, not who you've shared the video with, not any additional metadata. Nothing. Just the video ID. -## How is my IP stored? +### How is my IP stored? The backend keeps IP addresses in volatile memory (RAM) only. These addresses aren't stored on a hard drive, and therefore aren't logged. This is done to prevent database vandalism. -## I heard some discussion over OAuth, and access to my YouTube account! +### I heard some discussion over OAuth, and access to my YouTube account! This feature is optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way OAuth was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. -## How can I trust this dislike count? +### How can I trust this dislike count? Short answer is: you can't. We've implemented anti-botting measures, but at the end of the day, it's up to you to decide whether you trust our count or not. -## Why don't you share the backend code? +### Why don't you share the backend code? We may share it at some point - but there's really no real reason to share it. It gives a false sense of security - because in a zero-trust system, we could just as well disclose one version but deploy another. There are plenty of reasons to keep the code hidden, specifically, how we battle spam. Hiding/Obfuscating the spam handling code is a fairly standard practice. From ef96424e08767c38861eea5f45bb8ab4eed52c34 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:22:01 +0200 Subject: [PATCH 04/10] Added OAUTH link --- SECURITY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SECURITY.md b/SECURITY.md index 9343216..6f22026 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -18,7 +18,7 @@ The backend keeps IP addresses in volatile memory (RAM) only. These addresses ar ### I heard some discussion over OAuth, and access to my YouTube account! -This feature is optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way OAuth was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. +This feature is optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way [OAuth](https://en.wikipedia.org/wiki/OAuth#:~:text=but%20without%20giving%20them%20the%20passwords.) was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. ### How can I trust this dislike count? From 6649964ccec96cccb1a5a1c828ad35e43c0313d8 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:22:52 +0200 Subject: [PATCH 05/10] Corrected to "Security / Privacy concerns" --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 74c5ac7..73bd8d0 100644 --- a/FAQ.md +++ b/FAQ.md @@ -17,5 +17,5 @@ The extension collects the video id of the video you are watching, fetches the d ### **4. What will happen after the YouTube API stops returning the dislike count?** The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives. -## I have security concerns +## I have security / privacy concerns See [this page](SECURITY.md) for more info. From 6a42c7fbba231346c42b87066c36429b0f7c8998 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:30:14 +0200 Subject: [PATCH 06/10] Added suggestions from @himanshudabas --- SECURITY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 6f22026..89a450e 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -2,7 +2,7 @@ ### Are you tracking my viewing history? -No. The extension's code is public and you can see it for yourself. The only information being sent is the video ID. There are no additional headers being sent. Over the communication layer, your public IP will be exposed to the server, as well as the time when the request was made. However, none of these are uniquely identifying you in any way. Assuming a zero-trust environment, the best we could get is a dynamic IP. Which, today is yours, tomorrow is your neighbor's. If you're really worried about your IP being traced, you probably already use a VPN. +No. The extension's code is public and you can see it for yourself. The only information being sent is the video ID, which is required to fetch the dislike count for the videos. There are no additional headers being sent. Over the communication layer, your public IP will be exposed to the server, as well as the time when the request was made. However, none of these are uniquely identifying you in any way. Assuming a zero-trust environment, the best we could get is a dynamic IP. Which, today is yours, tomorrow is your neighbor's. If you're really worried about your IP being traced, you probably already use a VPN. ### Can you uniquely identify me if I dislike? @@ -22,7 +22,7 @@ This feature is optional, and very much opt-in. If you are a YouTube creator, an ### How can I trust this dislike count? -Short answer is: you can't. We've implemented anti-botting measures, but at the end of the day, it's up to you to decide whether you trust our count or not. +We have implemented measures to prevent bot attacks, and we are going to continue to work on improving the effectiveness of the bot prevention system. This will help us keep the dislike count as a good representative of the actual count. Of course, it can never be 100% accurate. So it's up to you to decide whether you trust the count or not. ### Why don't you share the backend code? From 772e37b10850f42f62681aaa88356720d72e151d Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 16:51:58 +0200 Subject: [PATCH 07/10] Updated per @himanshudabas and @UnderscoreX5 suggestions. --- SECURITY.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 89a450e..da4c1cf 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -18,11 +18,11 @@ The backend keeps IP addresses in volatile memory (RAM) only. These addresses ar ### I heard some discussion over OAuth, and access to my YouTube account! -This feature is optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way [OAuth](https://en.wikipedia.org/wiki/OAuth#:~:text=but%20without%20giving%20them%20the%20passwords.) was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. +This feature will be optional, and very much opt-in. If you are a YouTube creator, and would like to share your dislike stats with us, you can. The way [OAuth](https://en.wikipedia.org/wiki/OAuth#:~:text=but%20without%20giving%20them%20the%20passwords.) was structured, is it's actually very secure. You can revoke access to your account at any time, and can give very specific permissions to us. We will not ask for any permissions that aren't required. We'll only ask for permissions to view your video stats. ### How can I trust this dislike count? -We have implemented measures to prevent bot attacks, and we are going to continue to work on improving the effectiveness of the bot prevention system. This will help us keep the dislike count as a good representative of the actual count. Of course, it can never be 100% accurate. So it's up to you to decide whether you trust the count or not. +We have implemented measures to prevent bot attacks and are gonna continue to work on improving the effectiveness of the bot prevention system: this will help us keep the dislike count as a good representative of the actual count. Of course it will never be 100% accurate so it's up to you to decide whether you trust the count or not. ### Why don't you share the backend code? From d7b0ecdb0ff4c28af0786900dd83b6cb6d0e462b Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 19:14:20 +0200 Subject: [PATCH 08/10] Added IP hashing statement --- SECURITY.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SECURITY.md b/SECURITY.md index da4c1cf..efe6bc0 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -14,7 +14,7 @@ Just the video ID. Not your comments, not your username, not who you've shared t ### How is my IP stored? -The backend keeps IP addresses in volatile memory (RAM) only. These addresses aren't stored on a hard drive, and therefore aren't logged. This is done to prevent database vandalism. +The backend keeps IP addresses in volatile memory (RAM) only. These addresses aren't stored on a hard drive, and therefore aren't logged. We hash the IP addresses, and that's stored instead. This is done to prevent database vandalism. A hash is a one-way function, so your IP address cannot be guessed from the hash. ### I heard some discussion over OAuth, and access to my YouTube account! From c11e40f6f29090f3832c1769e60e0da12b00f94c Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 22:33:12 +0200 Subject: [PATCH 09/10] Rename SECURITY.md to SECURITY-FAQ.md --- SECURITY.md => SECURITY-FAQ.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename SECURITY.md => SECURITY-FAQ.md (100%) diff --git a/SECURITY.md b/SECURITY-FAQ.md similarity index 100% rename from SECURITY.md rename to SECURITY-FAQ.md From 6193e57210caffbcaa25f2f9b753472291ff5c06 Mon Sep 17 00:00:00 2001 From: Alex <8050799+CallMeAlexO@users.noreply.github.com> Date: Sun, 19 Dec 2021 22:36:09 +0200 Subject: [PATCH 10/10] Update FAQ.md --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 73bd8d0..c0f1744 100644 --- a/FAQ.md +++ b/FAQ.md @@ -18,4 +18,4 @@ The extension collects the video id of the video you are watching, fetches the d The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives. ## I have security / privacy concerns -See [this page](SECURITY.md) for more info. +See [this page](SECURITY-FAQ.md) for more info.