-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Uncaught exception on malformed multipart data #224
Comments
Closed
This is very strange but I'm getting another error 😖 For me, busboy emits a file that never fire |
Okay, that was fixed in a later version of Busboy, the fix will have to include a bumped dependency. |
Fixed in 1.0.4 |
Thank you!! |
Still getting this on nestjs |
15 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the simplest use case of using multer middleware (1.0.3) e.g.:
If I create badly formed multipart data e.g. test.txt:
(note the additional space in the end boundary that makes it malformed)
And I send it:
I will crash my server:
It's a pretty serious security flaw. It looks like it is because there is no event handler for Busboy.on('error',fn). I can use process.on('uncaughtException', fn) to catch this, but it's considered a rather bad idea to try to recover from uncaught exceptions. Can this be fixed please?
The text was updated successfully, but these errors were encountered: