实验室昨天第一时间监测到的0day漏洞,目前已上线检测
一、简述
3月25日,墨菲安全实验室监测发现 Spring Cloud Function 修复了 Spel 表达式注入漏洞,已 2022.03.25 日17时提交CNVD,并上线检测能力。
漏洞发现时间:2022-03-24
漏洞验证时间:2022-03-25,已第一时间提交CNVD
标题:Spring Cloud Function 3.0.0.RELEASE~3.2.2 版本SPEL表达式注入漏洞
发现方式:墨菲安全实验室情报预警监控
语言:java
影响组件及版本:org.springframework.cloud:spring-cloud-function-context(影响版本:3.0.0.RELEASE~3.2.2)
缺陷前置条件:properties中配置spring.cloud.function.definition=functionRouter
漏洞描述:
Spring Cloud Function 是Spring cloud中的serverless框架。
Spring Cloud Function 中的 RoutingFunction 类的 apply 方法将请求头中的“spring.cloud.function.routing-expression”参数作为 Spel 表达式进行处理,造成 Spel 表达式注入漏洞。
攻击者可通过该漏洞执行任意代码。
漏洞类型: Spel 表达式注入漏洞
排查方式:
- 在项目代码目录中执行以下命令获取 org.springframework.cloud:s