🇰🇷 한글 설명
n8n-nodes-sqlite3의 1.0.0 미만 버전에서 SqliteV1.node.ts가 상위 워크플로우 입력으로부터 데이터 표현식을 허용하는 취약점이 발견되었습니다. 공격자가 신뢰할 수 없는 입력을 db_path 매개변수에 매핑할 경우, 의도된 데이터베이스 위치를 벗어나 프로세스가 접근 가능한 파일을 읽거나 생성 또는 덮어쓸 수 있습니다.
💡 쉬운 설명
n8n에서 SQLite 데이터베이스를 사용할 때, 파일 경로를 조작할 수 있는 허점이 있습니다. 이를 통해 해커가 시스템의 중요한 파일을 몰래 읽거나 망가뜨릴 수 있습니다.
🇺🇸 원문 (English)
n8n-nodes-sqlite3 is a node for operating a local SQLite database from n8n. Prior to 1.0.0, nodes/SqliteNode/v1/SqliteV1.node.ts exposes the db_path database file path as a node parameter that permits data expressions from upstream workflow input. A workflow author who maps untrusted input to db_path can allow a remote attacker to select which SQLite file the n8n process opens, enabling traversal outside the intended database location and potentially reading, creating, or overwriting files accessible to the process. This issue is fixed in version 1.0.0.
📍 영향받는 시스템
n8n-nodes-sqlite3 1.0.0 미만 버전
⚔️ 공격 벡터
신뢰할 수 없는 외부 입력을 SqliteNode의 db_path 매개변수에 전달하여 경로 탐색(Path Traversal) 공격 수행
🛡️ 대응 방법
n8n-nodes-sqlite3를 1.0.0 이상의 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 1.0.0 미만이면 취약한 상태이며, 1.0.0 이상이면 안전합니다.
npm list n8n-nodes-sqlite3 | grep -E 'n8n-nodes-sqlite3@'