Why is the newCoockie() parameter httpOnly setted false? #48610
-
In the class /Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php the newCoockie method is setted httpOnly to false, someone can tell me why please? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The |
Beta Was this translation helpful? Give feedback.
This is a False Positive and can be safely ignored. This cookie is intentionally set without
httponly
because it is required by the javascript to work.Automated security scanners are ignorant of implementation details like this, so although they work really well for finding low-hanging fruit, they also find things that look like security risks, but really aren't.
I'm a penetration tester, so I'm always seeing this popup in scanners and I advise my clients to ignore it.