🇰🇷 한글 설명
n8n 워크플로우 자동화 플랫폼에서 소스 제어 기능이 활성화된 경우, 공격자가 악의적인 데이터 테이블 JSON 파일을 Git 저장소에 커밋하여 SQL 인젝션을 유발할 수 있습니다. 관리자가 소스 제어 풀(Pull)을 수행하면 조작된 컬럼 이름이 포함된 파일이 임포트되어 내부 PostgreSQL 데이터베이스가 공격받을 수 있습니다. 이 취약점은 PostgreSQL을 백엔드 데이터베이스로 사용하는 환경에서 발생합니다.
💡 쉬운 설명
공격자가 n8n과 연결된 코드 저장소에 몰래 조작된 파일을 넣어두면, 관리자가 업데이트를 진행할 때 데이터베이스가 해킹될 수 있는 보안 약점입니다. 이를 통해 공격자는 데이터베이스 내부 정보를 훔치거나 조작할 위험이 있습니다.
🇺🇸 원문 (English)
n8n is an open source workflow automation platform. Prior to 1.123.43, 2.22.1, and 2.20.7, an attacker with write access to the git repository connected to an n8n Source Control configuration could commit a malicious Data Table JSON file containing a crafted column name. When an administrator performed a Source Control Pull, n8n imported the file and could lead to SQL injection on the internal PostgreSQL instance. Exploitation requires the n8n instance uses PostgreSQL as its database backend, the Source Control feature is enabled and connected to a repository the attacker can write to, and an administrator triggers a Source Control Pull. This vulnerability is fixed in 1.123.43, 2.22.1, and 2.20.7.
📍 영향받는 시스템
n8n versions prior to 1.123.43, 2.22.1, and 2.20.7 (using PostgreSQL backend)
⚔️ 공격 벡터
Git 저장소에 악의적인 Data Table JSON 파일을 커밋한 후 관리자가 Source Control Pull을 실행하도록 유도
🛡️ 대응 방법
n8n을 최신 패치 버전(1.123.43, 2.22.1, 2.20.7 이상)으로 업데이트하십시오.
🔧 검증 코드
출력된 n8n 버전을 확인하여 취약한 버전(1.123.43, 2.22.1, 2.20.7 미만)인지 체크합니다.
npm list -g n8n | grep n8n