This vulnerability occurs when a web application stores sensitive data, like authentication details or personal information, within persistent cookies that remain on a user's device.
Cookies are small pieces of data set by a web application and stored locally in a user's browser. While they are essential for maintaining state—like keeping a user logged in or remembering site preferences—they become a security risk when sensitive information is written directly into a cookie that is saved to disk. Unlike session cookies, which are deleted when the browser closes, persistent cookies remain on the hard drive for a defined period, making the sensitive data they contain accessible long-term. Storing sensitive data such as usernames, passwords, session tokens, or personal details in a persistent cookie exposes it to theft or misuse. Attackers can extract these cookies from browser files or through cross-site scripting (XSS) attacks, potentially leading to account takeover or privacy violations. Developers should instead use persistent cookies only for non-sensitive identifiers, storing the actual sensitive data securely on the server side where it can be properly protected.
Impact: Read Application Data