Menu

Cookie Security Flags: Auditing Secure, HttpOnly, SameSite
📰

Cookie Security Flags: Auditing Secure, HttpOnly, SameSite

DEV Community: security·Muhammad Ali Mughal·16 days ago
#mIkFiYkn
#devtosecurity#devto#dev#cookie#session
Reading 0:00
15s threshold

Most session hijacking bugs I find in audits are not exotic. They are a session cookie missing one attribute: HttpOnly left off so an XSS payload can read it, Secure missing so it rides over a plain HTTP request, SameSite=None set "to fix a login bug" and never reverted, or a Domain=.example.com scope that hands the cookie to every forgotten subdomain. Each takes one line to fix and about two minutes to audit, if you know what to look for in the Set-Cookie header.

I build PixelValut , a set of browser-side developer and security tools, and I run this exact audit on every Laravel and Node app I ship.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.