| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
`actions` stores promises by arbitrary `key` and never deletes completed entries. Repeated unique keys (especially attacker-controlled) can grow memory indefinitely, enabling a denial-of-service condition in long-lived processes. Affected files: async-queue.js Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
|
Thank you for your contribution to TestCafe. When a member of the TestCafe team becomes available, they will review this PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Problem
actions stores promises by arbitrary key and never deletes completed entries. Repeated unique keys (especially attacker-controlled) can grow memory indefinitely, enabling a denial-of-service condition in long-lived processes.
Severity: medium
File: src/utils/async-queue.js
Solution
Remove queue entries after completion (finally cleanup), enforce key limits, and avoid accepting untrusted high-cardinality keys directly.
Changes
Testing