说明:无CNNVD漏洞编号
漏洞概述
Spring Security 是一套为基于Spring的应用程序提供说明性安全保护的安全框架。
Spring Security 受影响版本可能容易受到通过 FORWARD 或 INCLUDE 调度绕过授权规则的影响。
当满足以下所有条件时,应用程序很容易受到攻击:
- 应用程序期望 Spring Security 应用安全性来 forward 和 include 调度程序类型。
- 应用程序手动或通过 authorizeHttpRequests 方法使用 AuthorizationFilter。
- 应用程序配置 FilterChainProxy 以应用 forward 和/或 include 请求。
- 应用程序将请求 forward / include 到更高权限的安全端点。
- 应用程序通过 authorizeHttpRequests().shouldFilterAllDispatcherTypes(true) 配置 Spring Security 以应用于每个调度程序类型
如果符合以下任意一项,则应用程序不会受到攻击:
- 应用程序不使用 authorizeHttpRequests 方法 或 AuthorizationFilter。
- 该应用程序不使用 forward / include 调度器处理请求。
- 应用程序不需要配置 Spring Security 来应用 forward 或 include 调度器类型。
风险等级:高危
受影响版本
org.springframework.security:spring-security-web@[5.7.0, 5.7.5)
org.springframework.security:spring-security-web@[5.6.0, 5.6.9)
防御措施
将组件 org.springframework.security:spring-security-web 升级至 5.7.5 及以上版本
将组件 org.springframework.security:spring-security-web 升级至 5.6.9 及以上版本
参考链接
https://nvd.nist.gov/vuln/detail/CVE-2022-31692
https://spring.io/blog/2022/10/31/cve-2022-31692-authorization-rules-can-be-bypassed-via-forward-or-include-in-spring-security
https://github.com/spring-projects/spring-security/commit/1f481aafff14f324ffe2b43a973d3d5f54ae92d4
![weinxin](http://zone.ci/zone_ci_images/zone.ci.png)
评论