Insecure Cookie Attributes
We are using MS Entra ID as an IDP and @azure/msal-browser package in the vue application for authentication and login.
We observed below things during the security scan -
The path attribute set in the cookie is set to the web application root “/”.
Impact - When this attribute is not enabled, cookies can be accessed by malicious scripts in the browser. If the path attribute is set to the web server root "/", then the application cookies will be sent to every application within the same domain. It could leave the application vulnerable to attacks by other applications on the same server.
The SameSite attribute is set to ‘None’.
Impact - When this attribute is not enabled, cookies can be accessed by malicious scripts in the browser. If the path attribute is set to the web server root "/", then the application cookies will be sent to every application within the same domain. It could leave the application vulnerable to attacks by other applications on the same server.
Please confirm if above mentioned items are a valid security finding.