关于web系统不安全的http请求方法 OPTIONS

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/songyanfei1205/article/details/80886488

可在tomcat的web.xml中添加配置:

 <security-constraint>
            <web-resource-collection>
                <web-resource-name>fortune</web-resource-name>
                <url-pattern>/*</url-pattern>
                <http-method>HEAD</http-method>
                <http-method>OPTIONS</http-method>
                <http-method>TRACE</http-method>
            </web-resource-collection>
            <auth-constraint></auth-constraint>
        </security-constraint>

具体测试使用 Burb suite中的重放攻击repeater进行测试  .


猜你喜欢

转载自blog.csdn.net/songyanfei1205/article/details/80886488