Hack to hide browser cookies #7

Open
opened 2024-01-10 05:28:53 +07:00 by Arsen Mirzaev Tatyano-Muradovich · 0 comments

Check out a hack that allows to hide browser cookies at random addresses

  1. Generate random HTTP address
  2. Open page at this address
  3. Write a cookie with a SameSite to this address
  4. Close page
  5. Delete a page from history

If the browser allows you to use "SameSite" and third-party "Path" then simply assign cookies without opening the page

Most likely, it is not possible to assign cookies to third-party sites using this method.

Currently, browsers is block creation of background windows by default (exists a tricks to enable this).

Check the ability to call fetch() in JavaScript on a third-party document and send a header with a cookie.

Check that cookies cannot be detected on the target page.

Most likely, all this will not work on third-party documents, but maybe can use it inside inner site pages to hide cookies from potential hackers.

### Check out a hack that allows to hide browser cookies at random addresses 1. Generate random HTTP address 2. Open page at this address 3. Write a cookie with a SameSite to this address 4. Close page 5. Delete a page from history If the browser allows you to use **"SameSite"** and **third-party "Path"** then simply assign cookies without opening the page _**Most likely, it is not possible to assign cookies to third-party sites using this method.**_ Currently, browsers is **block creation of background windows** by default (exists a tricks to enable this). Check the ability to call **fetch()** in JavaScript on a third-party document and **send a header with a cookie**. Check that **cookies cannot be detected on the target page**. _Most likely, all this will **not work on third-party documents**, but maybe can use it inside inner site pages to hide cookies from potential hackers_.
Arsen Mirzaev Tatyano-Muradovich added the
Difficulty
Easy
Probability
Medium
labels 2024-01-10 05:28:53 +07:00
Arsen Mirzaev Tatyano-Muradovich added this to the Programming project 2024-01-10 05:28:53 +07:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mirzaev/thoughts#7
No description provided.