Rocket Chat
学习与实践 AWS 黑客技术:HackTricks 培训 AWS 红队专家 (ARTE)
学习与实践 GCP 黑客技术:
HackTricks 培训 GCP 红队专家 (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
如果你是 Rocket Chat 的管理员,你可以获得 RCE。
转到
Integrations
,选择New Integration
,并选择任意:Incoming WebHook
或Outgoing WebHook
。/admin/integrations/incoming
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F902778555-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVXPBd5ePyq2S6WpIV6Cj%252Fuploads%252Fgit-blob-fce3191e91d7c184b2b75e07d47be5ec4f98bff3%252Fimage%2520%28266%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=b1b3c5f4&sv=1)
根据 docs,两者都使用 ES2015 / ECMAScript 6 (基本上是 JavaScript) 来处理数据。所以让我们获取一个 JavaScript 的 rev shell,例如:
配置 WebHook(频道和以用户名发布必须存在):
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F902778555-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVXPBd5ePyq2S6WpIV6Cj%252Fuploads%252Fgit-blob-bbff6c5f4ab0ed17241ca5540c530e4ec4cd7d49%252Fimage%2520%28905%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=99470b23&sv=1)
配置 WebHook 脚本:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F902778555-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVXPBd5ePyq2S6WpIV6Cj%252Fuploads%252Fgit-blob-163b502deb9aecff582ab6f262e8153e3bff5404%252Fimage%2520%28572%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=11bd21d0&sv=1)
保存更改
获取生成的 WebHook URL:
![](https://book.hacktricks.xyz/~gitbook/image?url=https%3A%2F%2F902778555-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FVXPBd5ePyq2S6WpIV6Cj%252Fuploads%252Fgit-blob-eb57ea914240b4f2d2c6c1137712561d6c4b6a90%252Fimage%2520%28937%29.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=d6112f8c&sv=1)
使用 curl 调用它,你应该收到反向 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)
学习和实践 AWS 黑客技术:HackTricks 培训 AWS 红队专家 (ARTE)
学习和实践 GCP 黑客技术:
HackTricks 培训 GCP 红队专家 (GRTE)
Last updated