Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

Update npm packages #193

Open
lfatty opened this issue Dec 12, 2016 · 5 comments
Open

Update npm packages #193

lfatty opened this issue Dec 12, 2016 · 5 comments

Comments

@lfatty
Copy link

lfatty commented Dec 12, 2016

Regular Expression Denial of Service

High severity
Vulnerable module: minimatch
Detailed paths

Introduced through: retirement@cfpb/retirement#ebcfc7198ec2a9d390ea7f884a931f25dffe1646 ›
[email protected][email protected][email protected][email protected]
Introduced through: retirement@cfpb/retirement#ebcfc7198ec2a9d390ea7f884a931f25dffe1646 ›

minimatch is a minimalistic matching library used for converting glob expressions into JavaScript RegExp objects.

An attacker can provide a long value to the minimatch function, which nearly matches the pattern being matched. This will cause the regular expression matching to take a long time, all the while occupying the event loop and preventing it from processing other requests and making the server unavailable (a Denial of Service attack).

"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time."

@higs4281
Copy link
Member

higs4281 commented Jan 6, 2017

This has been raised as a broader issue with the platform team.

@sebworks
Copy link
Contributor

@lfatty, what tool was used to find this vulnerability?

@lfatty
Copy link
Author

lfatty commented Jan 26, 2017

@sebworks, https://snyk.io/ was used to testing the dependencies.

@ascott1
Copy link
Member

ascott1 commented Jan 26, 2017

@sebworks installing snyk globally and running snyk wizard should apply patches for all of the impacted dependencies

@sebworks
Copy link
Contributor

ok, just thought he might have been using an alternative tool. Thanks all.

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

No branches or pull requests

4 participants