🔍 CVE-2026-48716

8.7
CVSS Score
HIGH
2026-06-18
2026-10-25 23:10
✅ 완료

🇰🇷 한글 설명

nanobot AI 어시스턴트 0.1.5.post3 및 이전 버전의 WhatsApp 브리지에서 파일 경로 검증 미흡으로 인한 취약점이 발견되었습니다. 공격자가 조작된 파일 이름을 포함한 문서를 전송하면 시스템의 임의 경로에 파일을 쓸 수 있는 경로 탐색(Path Traversal) 취약점이 발생합니다.

💡 쉬운 설명

AI 비서가 WhatsApp으로 받은 파일을 저장할 때, 파일 이름에 숨겨진 명령어를 제대로 확인하지 못하는 문제입니다. 이를 통해 해커가 컴퓨터의 중요한 설정 파일을 마음대로 바꾸거나 악성 파일을 심을 수 있습니다.

🇺🇸 원문 (English)

nanobot is a personal AI assistant. In versions 0.1.5.post3 and prior, the WhatsApp bridge in bridge/src/whatsapp.ts constructs a filesystem path using the fileName field from an incoming WhatsApp document message without sanitization. The WhatsApp bridge downloads media attachments and writes them to disk using a filename derived from the sender's message via documentMessage.fileName, which is concatenated with a prefix and its raw value is passed directly to path.join(mediaDir, outFilename). Node.js path.join resolves .. components, allowing an attacker to escape the intended media/ directory by sending a document with a crafted fileName such as ../../../.ssh/authorized_keys. Because the attacker also controls the file content (the downloaded buffer), this is a write-anywhere primitive — both path and content are attacker-controlled. A fix for this issue is planned for version 0.1.5.post4.

📍 영향받는 시스템

nanobot version 0.1.5.post3 and prior

⚔️ 공격 벡터

WhatsApp 문서 메시지의 fileName 필드에 '../'와 같은 경로 조작 문자를 삽입하여 전송

🛡️ 대응 방법

nanobot 버전을 0.1.5.post4 이상으로 업데이트

🔧 검증 코드

명령어 결과에 취약한 버전 번호가 나타나면 해당 시스템은 보안 업데이트가 필요한 상태입니다.

Shell / Script
npm list nanobot | grep -E 'nanobot@0\.(1\.5\.post3|1\.5\.post2|1\.5\.post1|1\.5\.post0)'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:H

💻 영향받는 소프트웨어

Node.js