Stealing HttpOnly Cookies with the "Cookie Sandwich" Technique

The "cookie sandwich" technique exploits how web servers parse cookies containing special characters, potentially compromising HttpOnly cookies. By embedding quotes and legacy cookies within a cookie header, an attacker can manipulate the server's interpretation, leading to the exposure of sensitive cookies to client-side scripts. This vulnerability arises because certain servers process cookies in a way that allows such manipulation, highlighting the need for robust cookie handling and validation to prevent unauthorized access.

https://portswigger.net/research/stealing-httponly-cookies-with-the-cookie-sandwich-technique

Comments

Popular posts from this blog

Secure Vibe Coding Guide: Best Practices for Writing Secure Code

OWASP SAMM Skills Framework Enhances Software Security Roles

Opengrep: Open-Source SAST for Code Security and Innovation