🇰🇷 한글 설명
n8n의 'Respond to Webhook' 노드에서 발생하는 저장형 XSS 취약점입니다. 1.114.0 미만 버전에서는 HTML 응답에 포함된 실행 가능한 스크립트가 샌드박스를 벗어나 최상위 창에서 실행될 수 있습니다. 이로 인해 워크플로우 생성 권한이 있는 공격자가 n8n 에디터 인터페이스 내에서 임의의 자바스크립트를 실행할 수 있습니다.
💡 쉬운 설명
워크플로우 자동화 도구인 n8n에서 악성 코드가 포함된 웹 응답을 처리할 때 보안 경계를 넘어 실행되는 문제입니다. 공격자가 사용자의 브라우저에서 몰래 명령을 실행하여 정보를 훔치거나 설정을 조작할 수 있습니다.
🇺🇸 원문 (English)
n8n is an open source workflow automation platform. Prior to version 1.114.0, a stored Cross-Site Scripting (XSS) vulnerability may occur in n8n when using the “Respond to Webhook” node. When this node responds with HTML content containing executable scripts, the payload may execute directly in the top-level window, rather than within the expected sandbox introduced in version 1.103.0. This behavior can enable a malicious actor with workflow creation permissions to execute arbitrary JavaScript in the context of the n8n editor interface. This issue has been patched in version 1.114.0. Workarounds for this issue involve restricting workflow creation and modification privileges to trusted users only, avoiding use of untrusted HTML responses in the “Respond to Webhook” node, and using an external reverse proxy or HTML sanitizer to filter responses that include executable scripts.
📍 영향받는 시스템
n8n version 1.114.0 미만
⚔️ 공격 벡터
워크플로우 생성 권한을 가진 사용자가 'Respond to Webhook' 노드에 악성 스크립트가 포함된 HTML을 설정하여 실행
🛡️ 대응 방법
n8n을 버전 1.114.0 이상으로 업데이트하거나, 신뢰할 수 있는 사용자에게만 워크플로우 생성 권한을 부여하고 외부 HTML 검사기를 사용하십시오.
🔧 검증 코드
출력된 버전 번호가 1.114.0 미만이면 취약한 상태이며, 1.114.0 이상이면 안전합니다.
curl -s http://<n8n-instance-url>/api/v1/version | grep -E '"version": "[0-1]\.[0-9]{2,3}\.[0-9]+"'