🇰🇷 한글 설명
nanobot 개인용 AI 어시스턴트의 WebSocket 서버에서 발생하는 Cross-Site WebSocket Hijacking(CSWSH) 취약점입니다. 이전 취약점(CVE-2026-2577)의 불완전한 수정으로 인해 Origin 헤더 검증이 누락되어, 공격자가 사용자의 브라우저를 통해 로컬 WebSocket 서버에 접근할 수 있습니다. 이를 통해 WhatsApp 세션을 탈취하거나 메시지를 읽고 전송하는 등의 권한 남용이 가능합니다.
💡 쉬운 설명
사용자가 악성 웹사이트에 접속하기만 해도, 웹사이트가 사용자의 컴퓨터에 설치된 AI 비서 프로그램에 몰래 명령을 내릴 수 있는 보안 구멍입니다. 공격자는 이를 통해 사용자의 메시지를 훔쳐보거나 대신 메시지를 보낼 수 있습니다.
🇺🇸 원문 (English)
nanobot is a personal AI assistant. Versions prior to 0.1.5 contain a Cross-Site WebSocket Hijacking (CSWSH) vulnerability exists in the bridge's WebSocket server in bridge/src/server.ts, resulting from an incomplete remediation of CVE-2026-2577. The original fix changed the binding from 0.0.0.0 to 127.0.0.1 and added an optional BRIDGE_TOKEN parameter, but token authentication is disabled by default and the server does not validate the Origin header during the WebSocket handshake. Because browsers do not enforce the Same-Origin Policy on WebSockets unless the server explicitly denies cross-origin connections, any website visited by a user running the bridge can establish a WebSocket connection to ws://127.0.0.1:3001/ and gain full access to the bridge API. This allows an attacker to hijack the WhatsApp session, read incoming messages, steal authentication QR codes, and send messages on behalf of the user. This issue has bee fixed in version 0.1.5.
📍 영향받는 시스템
nanobot 버전 0.1.5 미만
⚔️ 공격 벡터
사용자가 악성 웹사이트를 방문할 때 브라우저를 통해 로컬 WebSocket 서버(ws://127.0.0.1:3001/)로 교차 사이트 요청을 전송
🛡️ 대응 방법
nanobot를 최신 버전인 0.1.5 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 0.1.5 미만이면 취약한 상태이며, 0.1.5 이상이면 안전합니다.
npm list nanobot 2>/dev/null | grep -E 'nanobot@'