为什么CVE-2021-33623容易受到ReDoS攻击?
CVE-2021-33623指出以下代码(在此提交中修复,包括测试用例)存在与 ReDoS 相关的问题:
trimNewlines.end = string => string.replace(/[rn]+$/, '');
但究竟为什么它容易受到 ReDoS 攻击?
CVE-2021-33623指出以下代码(在此提交中修复,包括测试用例)存在与 ReDoS 相关的问题:
trimNewlines.end = string => string.replace(/[rn]+$/, '');
但究竟为什么它容易受到 ReDoS 攻击?