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
Tools/GitHubGitHub/ninajafli/dotcms-cve-2022-45782
Password AttacksVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubninajafli/dotcms-cve-2022-45782

DotCMS-CVE-2022-45782

Share

Proof-of-concept for CVE-2022-45782: predictable dotCMS password-reset tokens, with a token cracker and full exploit chain.

View Repository
1285 months agoNot yet reviewed

CVE-2022-45782 – dotCMS Password Reset Token Predictability (PoC)

This repository contains a proof-of-concept exploit for CVE-2022-45782, a vulnerability in dotCMS where password-reset tokens are generated using the non-cryptographic method RandomStringUtils.randomAlphanumeric(). Because this token is predictable, an attacker can brute-force or derive it and reset the password of an administrator account.

This PoC demonstrates the full exploit chain:

  • running a vulnerable dotCMS instance
  • triggering password reset
  • receiving the attacker’s reset token
  • cracking the administrator’s token using the randomstringutils repo
  • resetting the administrator’s account

Repository Structure

This repo uses a Git submodule containing the cracker for the vulnerable token-generation function. It is the C implementation of the cracker used to derive/guess password-reset tokens generated by RandomStringUtils.randomAlphanumeric().

Clone with submodule:

git clone https://github.com/alex91ar/randomstringutils.git

Running the Vulnerable dotCMS Instance

  1. Configure SMTP (Gmail Example)

dotCMS must send reset emails for the PoC to work.

Edit docker-compose.yml:

DOT_MAIL_SMTP_USER: "<smtp_email>"
DOT_MAIL_SMTP_PASSWORD: "<smtp_pass>"

(If using Gmail: enable App Password and use the generated 16-character app password.)

  1. Start dotCMS
docker compose up

If it fails (common on first startup), simply run again.

Login page: https://localhost:8443/dotAdmin/#/public/login

  1. Create Accounts

Inside dotCMS:

  • Create an administrator account
  • Create a separate attacker account

These two accounts will be used by the PoC.

Compiling the Token Cracker (randomstringutils)

randomstringutils is the brute-forcer/cracker for dotCMS’s insecure token.

Compile it using:

cd randomstringutils
gcc -lpthread -O3 -o randomutils randomutils.c

This produces the fast token-cracker binary.

Running the Exploit (PoC)

  1. Set the attacker and administrator usernames (in README or poc.py, depending on your setup)
  2. Run the proof-of-concept:
python3 poc.py
  1. The attacker receives their own password-reset email
  2. Paste the attacker reset token into the terminal when prompted
  3. The PoC uses the randomutils cracker to compute the matching admin reset token and brute forces the timestamp

If successful, the script uses the cracked admin token to reset the admin account.

Disclaimer

This repository is for educational, academic, and authorized security testing only. Do NOT use this exploit against systems you do not own or have explicit permission to test.

Download Tool

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.

    524
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    478
  • 3

    ARTEX

    baarai/artex

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

    357
  • 4

    redforge

    cybersecurity91/redforge

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

    317
  • 5

    estorides

    grisuno/estorides

    Aggregates 99+ free OSINT sources in parallel, resolves entities into a knowledge graph, and exports STIX 2.1, MISP, or GraphML with LLM-assisted analysis.

    305
  • 6

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    275

Explore all tools

Browse our collection of tools

View all tools →