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
{{ message }}
Repository navigation
HTTPParser crashes the node process when given bad input #16552
Platform:
Darwin Maxs-MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Subsystem:
HTTPParser
I noticed that the HTTPParser is very sensitive, which is fine, but crashing the entire process is not. I would expect a normal exception to be thrown instead.
I'm sure there's a way to exploit this even though I believe HTTPParser is just used internally.
@maxnordlund I believe that everything under process.binding (including http_parser) is internal Node API, and is not meant to be called by userland modules
I do know that, I was more concerned about the possibility of an security exploit here. Hopefully that internal code doesn't trigger this, but I prefer to be sure rather then hopeful.
Activity
maclover7 commentedon Oct 27, 2017
@maxnordlund I believe that everything under
process.binding(including http_parser) is internal Node API, and is not meant to be called by userland modulesbnoordhuis commentedon Oct 27, 2017
@maclover7 is right.
process.binding()is in the category of "if it breaks, you get to keep both pieces."maxnordlund commentedon Oct 27, 2017
I do know that, I was more concerned about the possibility of an security exploit here. Hopefully that internal code doesn't trigger this, but I prefer to be sure rather then hopeful.