Enable secure cookies over HTTPS.

By | Apr 11, 2017

It is important to realize that although a website might be running under HTTPS it does not guarantee that the session information is not accessible from normal HTTP requests. When a session cookie is generated it is important to make sure that the cookie can only be transmitted over a secure HTTP connection (HTTPS).

There is an vulnerability called POODLE which would take advantage of sites that allowed for the session cookie information to be transmitted over an unsecure connection. This would allow for man in the middle attacks where the attacker can downgrade a secure http connection to an unsecure http connection and still transmit the cookie information.

With ws-federation it will require a configuration change in the issuing STS. Note the cookieHandler is attribute “requireSsl” is set to “true”

<cookieHandler requireSsl="true" mode="Chunked" path="/"></cookieHandler>

For asp.net websites that might be generating other cookies, the configuration change is similar. Change the requireSSL attribute to “true”.

<httpCookies httpOnlyCookies="true" requireSSL="true" lockItem="true" />

You might also be interested in these posts.

Securing Http with HSTS in IIS
How to disable insecure cipher suits.
Remove the IIS version from HTTP response header
Custom Error Pages
Securing website access control

0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments