According to german BSI, Plone does not use secure cookies OOTB. How do I change that?

梦想的初衷 提交于 2019-12-08 02:01:36

问题


The BSI has published a Security Analysis of various CMS Systems. Plone was quite successful, but got negative points for OOTB security functionality.

Namely, no HTTPS by default and no secure cookies for Authentication OOTB. How can I change to secure cookies.


回答1:


Yes, it can be done:

Given the prerequisite of using Plone over HTTPS, the following extra settings can be used for the cookie: 'HttpOnly' and 'Secure'. The easiest method to do this with the least impact is using the Apache mod_headers module, with the 'edit' action (available from Apache 2.2.4):

Header edit Set-Cookie ^(.*)$ $1;Secure;HttpOnly

(source: http://plone.org/documentation/kb/securing-plone )




回答2:


BSI should be updated. Plone has always provided the ability to secure cookies OOTB. See How to set `secure` and `httpOnly` for Plones `__ac` cookie? for directions.



来源:https://stackoverflow.com/questions/17193366/according-to-german-bsi-plone-does-not-use-secure-cookies-ootb-how-do-i-change

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!