一问题描述:

IBM Security AppScan Standard给出系统安全报告:

 

WEB漏洞——启动了不安全的HTTP方法解决办法

解决办法:

添加一下节点代码到web.xml配置文件当中。可以在项目WEB-INF/web.xml中添加:

<!-- close insecure http methods -->
<security-constraint>
    <web-resource-collection>
        <web-resource-name>fortune</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>PUT</http-method>
        <http-method>DELETE</http-method>
        <http-method>HEAD</http-method>
        <http-method>OPTIONS</http-method>
        <http-method>TRACE</http-method>
    </web-resource-collection>
    <auth-constraint></auth-constraint>
</security-constraint>

 

相关文章:

  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-05-30
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-07-27
相关资源
相似解决方案