🇰🇷 한글 설명
n8n의 LDAP 인증 기능에서 LDAP 이메일 속성이 기존 로컬 계정의 이메일과 일치할 경우 자동으로 계정을 연결하는 취약점이 발견되었습니다. 공격자가 자신의 LDAP 이메일을 관리자의 이메일로 변경하면 해당 계정의 권한을 완전히 탈취할 수 있으며, 이 연결은 이메일이 복구되어도 유지됩니다.
💡 쉬운 설명
로그인 정보가 일치하면 자동으로 계정을 합쳐주는 기능의 허점을 이용한 공격입니다. 공격자가 자신의 이메일 주소를 관리자의 것으로 바꾸면 관리자 권한을 그대로 뺏을 수 있습니다.
🇺🇸 원문 (English)
n8n is an open source workflow automation platform. Prior to versions 2.4.0 and 1.121.0, when LDAP authentication is enabled, n8n automatically linked an LDAP identity to an existing local account if the LDAP email attribute matched the local account's email. An authenticated LDAP user who could control their own LDAP email attribute could set it to match another user's email — including an administrator's — and upon login gain full access to that account. The account linkage persisted even if the LDAP email was later reverted, resulting in a permanent account takeover. LDAP authentication must be configured and active (non-default). The issue has been fixed in n8n versions 2.4.0 and 1.121.0. Users should upgrade to one of these versions or later to remediate the vulnerability. If upgrading is not immediately possible, administrators should consider the following temporary mitigations: Disable LDAP authentication until the instance can be upgraded, restrict LDAP directory permissions so that users cannot modify their own email attributes, and/or audit existing LDAP-linked accounts for unexpected account associations. These workarounds do not fully remediate the risk and should only be used as short-term mitigation measures.
📍 영향받는 시스템
n8n versions prior to 2.4.0 and 1.121.0 (with LDAP authentication enabled)
⚔️ 공격 벡터
LDAP 이메일 속성을 조작하여 타인의 이메일과 일치시킨 후 로그인하여 계정 탈취
🛡️ 대응 방법
n8n 버전을 2.4.0 또는 1.121.0 이상으로 즉시 업그레이드
🔧 검증 코드
명령어 결과에 2.4.0 또는 1.121.0 이상의 버전이 표시되지 않으면 취약할 수 있습니다.
curl -s http://localhost:5678/api/v1/version | grep -E '"version": "(2\.4\.0|1\.121\.0|[2-9]\.|1\.[1-9][2-9][0-9])' || echo 'Vulnerable or version unknown'