漏洞信息
# 如果未开放actuator结束点,Spring Boot EndpointRequest.to()会产生错误的匹配规则
## 概述
Spring Security 中的 `EndpointRequest.to()` 方法在为禁用或未暴露的端点创建请求时会生成一个匹配器,该匹配器匹配 `null/**`,从而可能导致安全漏洞。
## 影响版本
无具体影响版本信息
## 细节
当以下所有条件同时满足时,你的应用程序会受到影响:
- 你使用了 Spring Security
- 在 Spring Security 链式配置中使用了 `EndpointRequest.to()`
- `EndpointRequest` 引用的端点已禁用或未通过 Web 暴露
- 你的应用程序处理了对 `/null` 的请求且需要对该路径进行保护
你不受影响的情形包括:
- 你未使用 Spring Security
- 你未使用 `EndpointRequest.to()`
- `EndpointRequest.to()` 引用的端点已启用且已暴露
- 你的应用程序不处理 `/null` 的请求或该路径无需保护
## 影响
存在安全风险的路径 `/null` 可能会被未授权访问,导致潜在的安全问题。
神龙判断
是否为 Web 类漏洞:
是
判断理由:
是。这个漏洞影响Spring Security框架的配置,当特定的Actuator端点被禁用或未通过Web暴露时,`EndpointRequest.to()`方法会创建一个匹配`null/**`的模式。这可能导致对`/null`路径的请求处理不当,进而影响应用的安全性。如果上述条件均满足,则应用程序存在潜在的安全风险。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Spring Boot EndpointRequest.to() creates wrong matcher if actuator endpoint is not exposed
漏洞描述信息
EndpointRequest.to() creates a matcher for null/** if the actuator endpoint, for which the EndpointRequest has been created, is disabled or not exposed.
Your application may be affected by this if all the following conditions are met:
* You use Spring Security
* EndpointRequest.to() has been used in a Spring Security chain configuration
* The endpoint which EndpointRequest references is disabled or not exposed via web
* Your application handles requests to /null and this path needs protection
You are not affected if any of the following is true:
* You don't use Spring Security
* You don't use EndpointRequest.to()
* The endpoint which EndpointRequest.to() refers to is enabled and is exposed
* Your application does not handle requests to /null or this path does not need protection
CVSS信息
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
漏洞类别
输入验证不恰当
漏洞标题
VMware Spring Boot 安全漏洞
漏洞描述信息
VMware Spring Boot是美国威睿(VMware)公司的一套开源框架。 VMware Spring Boot存在安全漏洞,该漏洞源于EndpointRequest.to在端点禁用或未暴露时创建null/**匹配器,可能导致安全约束绕过。
CVSS信息
N/A
漏洞类别
其他