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

Security risk #110

Open
KennyGoi opened this issue Dec 7, 2021 · 0 comments
Open

Security risk #110

KennyGoi opened this issue Dec 7, 2021 · 0 comments

Comments

@KennyGoi
Copy link

KennyGoi commented Dec 7, 2021

Affected files:
through2/node_modules/readable-stream/lib/_stream_readable.js
813: while (state.flowing && stream.read() !== null) {}

Risks:
An attacker could provide a very high loop iteration count, causing the loop to go on for prolonged periods of time, potentially causing the application to stop responding. Additionally, if the operation inside the loop is tied to some exhaustible functionality, it may cause bloat elsewhere; For example - if file writes occur inside the loop, then an attacker can cause that file to bloat by simply engaging this file writing capability a very high amount of times.

The application relied on a user-provided value to determine the number of iterations performed by a loop, without enforcing a limited range for this value.

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