Gửi #922841: nanocoai nanoclaw <= 2.1.17 Improper Link Resolution Before File Access / Link Following (CWE-59)thông tin

tiêu đềnanocoai nanoclaw <= 2.1.17 Improper Link Resolution Before File Access / Link Following (CWE-59)
Mô tả# Technical Details A symlink-following arbitrary file write vulnerability exists in the `forwardAttachedFiles()` method in `src/modules/agent-to-agent/agent-route.ts` of NanoClaw (npm package `nanoclaw`). NanoClaw's built-in agent-to-agent (A2A) attachment forwarding trusts the target inbox path. `forwardAttachedFiles()` hardens the source side (rejects unsafe message ids, refuses symlinked source outbox directories and files, resolves `realSrc` and checks containment under the canonical source outbox), but performs no equivalent `lstat()` or `realpath()` containment checks on the target inbox before calling `fs.mkdirSync()` and `fs.copyFileSync()`. The vulnerable code: ```js const targetInboxDir = path.join(sessionDir(target.agentGroupId, target.sessionId), 'inbox', target.messageId); fs.mkdirSync(targetInboxDir, { recursive: true }); ... const dst = path.join(targetInboxDir, filename); fs.copyFileSync(realSrc, dst);
Nguồn⚠️ https://github.com/nanocoai/nanoclaw/issues/2828
Người dùng
 Eric-a (UID 96353)
Đệ trình11/08/2026 14:52 (cách đây 1 tháng)
Kiểm duyệt13/09/2026 18:00 (1 month later)
Trạng tháiđược chấp nhận
Mục VulDB403309 [nanocoai NanoClaw đến 2.1.17 Attachment agent-route.ts forwardAttachedFiles nâng cao đặc quyền]
điểm20

Do you want to use VulDB in your project?

Use the official API to access entries easily!