Session Cookie Not Marked as Secure

Severity: Medium
Summary#

Invicti identified a session cookie not marked as secure, and transmitted over HTTPS.

This means the cookie could potentially be stolen by an attacker who can successfully intercept the traffic, following a successful man-in-the-middle attack.

It is important to note that Invicti inferred from the its name that the cookie in question is session related.

Impact#
This cookie will be transmitted over a HTTP connection, therefore an attacker might intercept it and hijack a victim's session. If the attacker can carry out a man-in-the-middle attack, he/she can force the victim to make an HTTP request to your website in order to steal the cookie.
Actions To Take#
  1. See the remedy for solution.
  2. Mark all cookies used within the application as secure. (If the cookie is not related to authentication or does not carry any personal information, you do not have to mark it as secure.)
Remediation#
Mark all cookies used within the application as secure.
Required Skills for Successful Exploitation#
To exploit this issue, the attacker needs to be able to intercept traffic. This generally requires local access to the web server or to the victim's network. Attackers need to understand layer 2 and have gained access to a system between the victim and the web server.

Build your resistance to threats. And save hundreds of hours each month.

Get a demo See how it works