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

在 Content-Length 和文件不一致时会引起程序崩溃 Cannot read property 'originalUrl' of null #10

Open
zhongshan1993 opened this issue Nov 17, 2020 · 0 comments

Comments

@zhongshan1993
Copy link

zhongshan1993 commented Nov 17, 2020

复现 demo https://github.com/zhongshan1993/fastify-file-error-demo

在 触发 busboy 的 error 事件后,又触发了 finish 事件,导致 middie 中的 done 方法再次被调用,此时 req 的值为 null。

这种场景下,live 环境易收到外部攻击

image

@zhongshan1993 zhongshan1993 changed the title 在 Content-Length 和文件不一致时会引起程序崩溃 在 Content-Length 和文件不一致时会引起程序崩溃 Cannot read property 'originalUrl' of null Nov 17, 2020
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

1 participant