Lucene search

K
hackeroneMcollinaH1:804772
HistoryFeb 25, 2020 - 5:51 p.m.

Node.js third-party modules: Prototype pollution in multipart parsing

2020-02-2517:51:30
mcollina
hackerone.com
122

EPSS

0.002

Percentile

52.4%

I would like to report a prototype pollution attack in fastify-multipart it allows to crash a remote server parsing multipart requests by sending a specially crafted request.

Module

module name: fastify-multipart**version:**all versions before < v1.0.5. v1.0.5 contains the fix. npm page: https://www.npmjs.com/package/fastify-multipart

Module Description

Fastify plugin to parse the multipart content-type.

Under the hood it uses busboy.

Module Stats

weekly downloads: 4900

Vulnerability

Vulnerability Description

Eran Hammer found this vulnerability for Hapi, he tested Fastify as well and found it vulnerable.
Here is the Hapi vulnerability report: https://www.npmjs.com/advisories/1479.

Steps To Reproduce:

> Detailed steps to reproduce with all required references/steps/commands. If there is any exploit code or reference to the package source code this is the place where it should be put.

Patch

This was already released in https://github.com/fastify/fastify-multipart/pull/116 and version 1.0.5 issued.

Wrap up

> Select Y or N for the following statements:

  • I contacted the maintainer to let them know: Y
  • I opened an issue in the related repository: N

I just need a CVE issued.

Impact

It’s a Denial of Service attack

EPSS

0.002

Percentile

52.4%