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

Regular Expression Denial of Service (DoS) #254

Open
larrycameron80 opened this issue Sep 17, 2019 · 0 comments
Open

Regular Expression Denial of Service (DoS) #254

larrycameron80 opened this issue Sep 17, 2019 · 0 comments

Comments

@larrycameron80
Copy link

Regular Expression Denial of Service (DoS)
Vulnerable module: minimatch
Introduced through: [email protected]
Detailed paths
Introduced through: walletgenerator.net@walletgeneratornet/WalletGenerator.net › [email protected][email protected][email protected][email protected]
Remediation: Upgrade to [email protected].
Introduced through: walletgenerator.net@walletgeneratornet/WalletGenerator.net › [email protected][email protected]
Remediation: Upgrade to [email protected].
Introduced through: walletgenerator.net@walletgeneratornet/WalletGenerator.net › [email protected][email protected][email protected]
Remediation: Upgrade to [email protected].
Overview
minimatch is a minimalistic matching library used for converting glob expressions into JavaScript RegExp objects. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Many Regular Expression implementations may reach edge cases that causes them to work very slowly (exponentially related to input size), allowing an attacker to exploit this and can cause the program to enter these extreme situations by using a specially crafted input and cause the service to excessively consume CPU, resulting in a Denial of Service.

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).

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