【问题标题】:IBM AppScan - Missing Secure Attribute in Encrypted Session (SSL) CookieIBM AppScan - 加密会话 (SSL) Cookie 中缺少安全属性
【发布时间】:2023-03-31 03:14:01
【问题描述】:

根据 IBM App Scan DSAT 测试,我们发现 primefaces.download 的加密会话 (SSL) Cookie 中缺少安全属性问题。

Primefaces 版本是 7.0

示例:https://www.primefaces.org/showcase/ui/data/dataexporter/basic.xhtml

primefaces.download -- 当我们下载文件时设置这个 cookie

我们已经在 web.xml 中有 session-config,但是当我签入 chrome 时,primefaces.download cookie 没有设置为 http-only 和secured。

在 JBOSS 7.2 上运行时还有什么需要做的吗?

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

..........

<session-config>
    <cookie-config>
        <http-only>true</http-only>
        <secure>true</secure>
    </cookie-config>
    <tracking-mode>COOKIE</tracking-mode>
</session-config>

更新: 提出的问题 https://github.com/primefaces/primefaces/issues/6040

【问题讨论】:

    标签: jsf cookies primefaces bluemix-app-scan


    【解决方案1】:

    已提交修复 9.0-SNAPSHOT 中问题的拉取请求。

    https://github.com/primefaces/primefaces/pull/6041

    【讨论】:

      猜你喜欢
      • 2013-09-10
      • 2018-11-15
      • 1970-01-01
      • 2012-04-07
      • 1970-01-01
      • 2015-04-09
      • 2016-01-22
      • 2014-09-24
      • 2021-12-03
      相关资源
      最近更新 更多