Sharing Accounts Through Cookies

Sharing Accounts Through Cookies

share your account without revealing your password

What are Cookies?

Cookies are small text files with data used to personalize, save, and remember certain information about the user and their session. Different cookie types are used for various purposes. However, we'll focus on session cookies today because they save information like your username and password and are used to streamline your web experience.

While this might make you uneasy, cookies are safe and useful. For starters, they are kept locally on your computer and are only used by the server when your web browser needs them. Additionally, they enable stateful sessions on the internet. Stateful sessions are why when you log into a site, you are still signed in even when you close your browser or shut down your computer.

Imagine having to sign in each time you navigated to a different site, closed your browser, or had your shopping cart cleared because you navigated to another website. That wouldn't exactly be a nice experience, would it? Cookies prevent that nightmare from happening.

This short article will explain how you can share your accounts with friends or family without revealing passwords using cookies.

Prerequisite

Install the Chrome extension, and let's eat; sorry, I mean, share some cookies.

Exporting Cookies

Let's assume you want to share the log-in details of abc.xy.

  1. Add the extension to Chrome browser by clicking on the "Add to Chrome" button.

Cookies Editors

  1. Log in to the abc.xy account you wish to share with a friend.

  2. At the ribbon of your Chrome browser, you should see the cookie icon.

  3. Click it and click on export.

  4. Cookies will be automatically exported to your clipboard. You can send your friend the copied text.

Export Cookies

Importing Cookies

So you have shared it, but how do they use the cookie on the abc.xy website?

  1. First, they need to add the Cookie-Editor extension to their Chrome browser.

  2. Open abc.xy website.

  3. Click on the extension and click on import.

  4. Paste the shared text, which is JSON.

  5. Click on Import.

import Cookies

  1. Refresh the website.

Note: If you log out of abc.xy, you will need to repeat the whole process.

Is Sharing Cookies Dangerous?

Yes, for starters unauthorized guests can access your account. They can also launch attacks such as man-in-the-middle attacks, XSS (cross-site scripting) attacks, or CSRF attacks on your internet privacy. This article by Kris Koishigawa has further information on this topic.

Disabling Cookies Access

Although there are many approaches, you, the account owner, can simply log out of the account in this situation. This will disrupt the saved session and log-out everyone the cookie was shared with.

Wrapping Up

Users’ web experience has significantly changed thanks to cookies. Although you can share a few accounts with your friends using this tutorial, you should keep security concerns in mind.

Resources

Check out the resources to learn more about cookies, share this article, and let me know on Twitter if you found this tutorial useful.

Acknowledgment

This post was published using this article: Start Using GitHub to Publish Articles on Hashnode by Girish Patil

GitHub Readme: link