Cookie prefixes problem server only sees cookie name

This preview shows page 27 - 32 out of 32 pages.

Cookie Prefixes Problem: Server only sees cookie name and value in HTTP request, no information about its attributes Impossible for server to know if a cookie it receives was set securely Solution: ‘Smuggle’ information to server in cookie name "__Secure-" prefix "__Host-" prefix
Image of page 27

Subscribe to view the full document.

The ‘SameSite’ Attribute Problem: Cookies are sent with all requests to a server, regardless of request origin Attackers can abuse this by initiating authenticated cross-origin requests, e.g., CSRF, XSSI, etc. Solution: New cookie attribute SameSite=[Strict|Lax] Prevents cookies from being attached to cross-origin requests
Image of page 28
SUMMARY
Image of page 29

Subscribe to view the full document.

Summary Key Takeaways: Cookies are still largely based on a draft from 1994 The security model has many weaknesses Don’t build your application on false assumptions about cookie security Application and framework developers should take advantage of new improvements to cookie security Beware that not all browsers are using the same cookie recipe (yet)
Image of page 30
The ‘Ultimate’ Cookie Is there an ‘ultimate’ cookie configuration? This is probably the most secure configuration we have for now: Set-Cookie: __Host- SessionID=3h93…; Path=/;Secure;HttpOnly;SameSite=Strict
Image of page 31

Subscribe to view the full document.

The End Questions? @securitybits
Image of page 32
  • Fall '19

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes