Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当web应用使用request response包装类时会导致链接失败 #187

Closed
Y4er opened this issue Mar 27, 2022 · 1 comment
Closed

当web应用使用request response包装类时会导致链接失败 #187

Y4er opened this issue Mar 27, 2022 · 1 comment

Comments

@Y4er
Copy link

Y4er commented Mar 27, 2022

以springboot为例程序Filter中request和response被ContentCachingRequestWrapper、ContentCachingResponseWrapper包装

image

导致在链接时net.rebeyond.behinder.payload.java.Echo#fillContext setCharacterEncoding报错

image

并且org.springframework.web.util.ContentCachingResponseWrapper.ResponseServletOutputStream#ResponseServletOutputStream的write函数重载没有只传入一个byte[]参数的

image

所以这个地方也会报错,导致连不上。

image

鉴于dofilter的包装类被广泛应用,建议作者应修复此bug。

另外这是我对当前打内存马的一点建议,传入pagecontext时

image

@rebeyond
Copy link
Owner

谢谢反馈,下个版本会考虑兼容Filter等Web组件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants