🇰🇷 한글 설명
n8n 워크플로우 자동화 플랫폼의 xml2js 라이브러리에서 XML 요청 파싱 시 프로토타입 오염 취약점이 발견되었습니다. 인증된 사용자가 악의적 XML 페이로드를 통해 JavaScript 객체 프로토타입을 오염시키고 Git 노드의 SSH 작업과 연계하여 원격 코드 실행을 달성할 수 있습니다.
💡 쉬운 설명
n8n에서 XML 파일 처리 시 프로그램의 기본 설정을 악의적으로 변경할 수 있는 문제가 있습니다. 이를 통해 공격자가 서버에서 임의의 명령을 실행할 수 있습니다.
🇺🇸 원문 (English)
n8n is an open source workflow automation platform. Prior to versions 1.123.32, 2.17.4, and 2.18.1, a flaw in the xml2js library used to parse XML request bodies in n8n's webhook handler allowed prototype pollution via a crafted XML payload. An authenticated user with permission to create or modify workflows could exploit this to pollute the JavaScript object prototype and, by chaining the pollution with the Git node's SSH operations, achieve remote code execution on the n8n host. This issue has been patched in versions 1.123.32, 2.17.4, and 2.18.1.
📍 영향받는 시스템
n8n 버전 1.123.32 이전, 2.17.4 이전, 2.18.1 이전
⚔️ 공격 벡터
인증된 사용자가 조작된 XML 페이로드를 웹훅으로 전송하여 프로토타입 오염을 유발하고 Git SSH 연산으로 RCE 달성
🛡️ 대응 방법
n8n을 버전 1.123.32, 2.17.4, 또는 2.18.1 이상으로 즉시 업그레이드
🔧 검증 코드
설치된 n8n 버전이 1.123.32, 2.17.4, 2.18.1 이상이면 패치됨, 그 이전 버전이면 취약
npm list n8n 2>/dev/null | grep -oP 'n8n@\K[\d.]+' || echo 'Not installed'