Rocket Chat
Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
Learn & practice GCP Hacking:
HackTricks Training GCP Red Team Expert (GRTE)
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2Fpentest.eu%2FRENDER_WebSec_10fps_21sec_9MB_29042024.gif&width=768&dpr=4&quality=100&sign=bc0743d1&sv=1)
RCE
Si eres administrador dentro de Rocket Chat, puedes obtener RCE.
Ve a
Integraciones
y seleccionaNueva Integración
y elige cualquiera:Incoming WebHook
oOutgoing WebHook
./admin/integrations/incoming
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F2730383215-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOGiU7XValBchYYDg6h1H%252Fuploads%252Fgit-blob-fce3191e91d7c184b2b75e07d47be5ec4f98bff3%252Fimage%2520%28266%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=4206c559&sv=1)
Según la documentación, ambos utilizan ES2015 / ECMAScript 6 (básicamente JavaScript) para procesar los datos. Así que obtengamos un rev shell para javascript como:
Configura el WebHook (el canal y la publicación como nombre de usuario deben existir):
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F2730383215-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOGiU7XValBchYYDg6h1H%252Fuploads%252Fgit-blob-bbff6c5f4ab0ed17241ca5540c530e4ec4cd7d49%252Fimage%2520%28905%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=104f1f02&sv=1)
Configura el script del WebHook:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F2730383215-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOGiU7XValBchYYDg6h1H%252Fuploads%252Fgit-blob-163b502deb9aecff582ab6f262e8153e3bff5404%252Fimage%2520%28572%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=49036ae9&sv=1)
Guarda los cambios
Obtén la URL del WebHook generado:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F2730383215-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FOGiU7XValBchYYDg6h1H%252Fuploads%252Fgit-blob-eb57ea914240b4f2d2c6c1137712561d6c4b6a90%252Fimage%2520%28937%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b2169c1d&sv=1)
Llama a la URL con curl y deberías recibir el rev shell
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2Fpentest.eu%2FRENDER_WebSec_10fps_21sec_9MB_29042024.gif&width=768&dpr=4&quality=100&sign=bc0743d1&sv=1)
Aprende y practica Hacking en AWS:HackTricks Training AWS Red Team Expert (ARTE)
Aprende y practica Hacking en GCP:
HackTricks Training GCP Red Team Expert (GRTE)
Last updated