fix: JWT Token 漏洞

This commit is contained in:
fit2cloud-chenyw
2025-12-25 16:58:13 +08:00
committed by fit2cloud-chenyw
parent ec04214ebd
commit cac165ee84

View File

@@ -43,7 +43,7 @@ public class CommunityTokenFilter implements Filter {
Object apisixCacheManage = CommonBeanFactory.getBean("apisixCacheManage");
Method method = DeReflectUtil.findMethod(apisixCacheManage.getClass(), "userCacheBO");
Object o = ReflectionUtils.invokeMethod(method, apisixCacheManage, userId);
Method pwdMethod = DeReflectUtil.findMethod(o.getClass(), "getPwd");
Method pwdMethod = DeReflectUtil.findMethod(o.getClass(), "getSecret");
Object pwdObj = ReflectionUtils.invokeMethod(pwdMethod, o);
secret = pwdObj.toString();
}