You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在SpelExpressionParser中再次通过''.getClass()获取 Class 对象会报错
原因:SpelExpressionParser解析字符串时使用StringLiteral对象,初始化时会取出中间字符串将''替换为 ',导致最终的payload变为'.getClass()从而抛出异常
ThymeleafExec输出的payload内容如下:
在SpelExpressionParser中再次通过
''.getClass()获取 Class 对象会报错原因:
SpelExpressionParser解析字符串时使用StringLiteral对象,初始化时会取出中间字符串将''替换为',导致最终的payload变为'.getClass()从而抛出异常'''.getClass()可成功,或使用().getClass()或1.getClass()等方式