docker-compose up -d
VM (docker-container): 172.18.0.2
docker build -t scan11981 .
docker run -v /tmp/:/output --network exploit -t scan11981 --targets 172.18.0.2:6379 --output /output/result.txt
cat /tmp/result.txt
漏洞描述:该漏洞与Apache Airflow中的命令注入有关(版本1.10.10及以下),当使用CeleryExecutor和Redis作为消息代理时。拥有Redis访问权限的攻击者可以发送特制任务,Airflow工作进程(workers)会将这些任务作为命令执行。这可能导致以运行Airflow的用户权限执行任意代码。
风险:RCE - 对机器的控制。
修复建议:更新Apache Airflow,当前最新版本为3.0.1;同时建议限制对消息代理(Redis或RabbitMQ)的访问。