mirror of
https://github.com/dataease/dataease.git
synced 2026-05-21 12:45:37 +08:00
fix: JWT Token 漏洞
This commit is contained in:
committed by
fit2cloud-chenyw
parent
ec04214ebd
commit
cac165ee84
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user