gateway 报错 reactor.core.Exceptions$ErrorCallbackNotImplemented
生产环境好好的,突然前端请求全部跨域,请求 500。gateway 报错。reactor.core.Exceptions$ErrorCallbackNotImplemented:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0。所有的接口都报。原因,由于 gateway 也集成了 springboot-admin,开启了应用程序的 act
·
生产环境好好的,突然前端请求全部跨域,请求 500。gateway 报错。
reactor.core.Exceptions$ErrorCallbackNotImplemented:java.lang.IndexOutOfBoundsException: Index: 0, Size: 0。所有的接口都报。
原因
由于 gateway 也集成了 springboot-admin,开启了应用程序的 actuator 端点,导致受到代码注入的攻击
临时解决方式,直接 nginx 拦截该路径,conf 添加如下配置,reload nginx 即可。
location /actuator {
return 404;
}
版本加固: 升级至安全版本 3.1.x -> 3.1.1,3.0.x -> 3.0.7+
更多推荐
已为社区贡献8条内容
所有评论(0)