basic-ftp 是 Node.js 的 FTP 客户端。在 6.2.1 版本之前,恶意或已被攻陷的 FTP 服务器可以迫使 在解析目录列表时消耗二次方级的 CPU 时间。这是因为 中的 正则表达式在遇到具有有效前缀但无法满足后续文件大小和日期字段的长 Unix 风格行时,会在相邻的可变长度所有者(owner)和组(group)字段之间发生回溯。 函数会根据最后一个非空行选择解析器,并将该解析器应用于所有行。因此,一个正常的最后一行可能会选中 Unix 解析器,而之前精心构造的行则会阻塞 Node.js 事件循环
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| patrickjuchli | basic-ftp | < 6.2.1 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet