LOGO 首页 OA教程 ERP教程 模切知识交流 PMS教程 CRM教程 技术文档 其他文档  
 
网站管理员

[点晴永久免费OA]Windows Server服务器IIS管理器被检测到会话cookie中缺少HttpOnly属性漏洞,如何解决?

admin
2022年9月26日 10:4 本文热度 6518

通过配置出站规则getcookie添加HttpOnly

在网站根目录下找到文件“Web.config”,在其中添加如下出站规则:

  1. <rewrite>
  2. <outboundRules>
  3. <rule name="Add HttpOnly">
  4. <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" />
  5. <conditions>
  6. <add input="{R:0}" pattern="; HttpOnly" negate="true" />
  7. </conditions>
  8. <action type="Rewrite" value="{R:0}; HttpOnly" />
  9. </rule>
  10. <rule name="Add Secure">
  11. <match serverVariable="RESPONSE_Set_Cookie" pattern=".*" />
  12. <conditions>
  13. <add input="{R:0}" pattern="; Secure" negate="true" />
  14. </conditions>
  15. <action type="Rewrite" value="{R:0}; Secure" />
  16. </rule>
  17. </outboundRules>
  18. </rewrite>

添加完成后图示


测试结果


搞定!


该文章在 2022/9/26 10:04:22 编辑过

全部评论1

admin
2022年9月26日 10:28
rewrite放置位置参考(代码不是上面的,不要照抄!): <?xmlversion=1.0encoding=UTF-8?> <configuration> <system.webServer> <rewrite> <rules> <rulename=root_location_rewritestopProcessing=true> <matchignoreCase=falseurl=./> <conditionslogicalGrouping=MatchAll> <addignoreCase=falseinput=matchType=IsFilenegate=true/> <addignoreCase=falseinput=matchType=IsDirectorynegate=true/> </conditions> <actionappendQueryString=truetype=Rewriteurl=index.php?/> </rule> <rulename=default_file_rewritestopProcessing=true> <matchignoreCase=falseurl=^$/> <actionappendQueryString=truetype=Rewriteurl=index.php?/> </rule> </rules> </rewrite> </system.webServer> </configuration> 该评论在 2022/9/26 10:37:31 编辑过
关键字查询
相关文章
正在查询...
点晴ERP是一款针对中小制造业的专业生产管理软件系统,系统成熟度和易用性得到了国内大量中小企业的青睐。
点晴PMS码头管理系统主要针对港口码头集装箱与散货日常运作、调度、堆场、车队、财务费用、相关报表等业务管理,结合码头的业务特点,围绕调度、堆场作业而开发的。集技术的先进性、管理的有效性于一体,是物流码头及其他港口类企业的高效ERP管理信息系统。
点晴WMS仓储管理系统提供了货物产品管理,销售管理,采购管理,仓储管理,仓库管理,保质期管理,货位管理,库位管理,生产管理,WMS管理系统,标签打印,条形码,二维码管理,批号管理软件。
点晴免费OA是一款软件和通用服务都免费,不限功能、不限时间、不限用户的免费OA协同办公管理系统。
Copyright 2010-2026 ClickSun All Rights Reserved  粤ICP备13012886号-2  粤公网安备44030602007207号