How 0xehab/freepbx-cve-2025-57819-rce works
This is a single-file Python proof of concept, not the FreePBX product itself. Its workflow creates an administrator through unauthenticated SQL injection, authenticates, uploads and verifies a webshell, then runs a command or attempts a reverse shell. The graph follows the orchestrator and HTTP requests shown in exploit.py; it does not infer internal FreePBX implementation details.
Main entry points: exploit.py Exploit client
Components 11
Exploit workflow
- CLI workflow
exploit.py - Exploit client
exploit.py
Target interactions
- Admin creation
exploit.py - FreePBX target
- Admin login
exploit.py - Webshell upload
exploit.py
Command execution
- Webshell endpoint
- Single command
exploit.py - Reverse shell
exploit.py - Listener
Other components
- Operator
Connections 15
- Operator → CLI workflow: supplies options
README.md - CLI workflow → Exploit client: runs workflow
exploit.py - Exploit client → Admin creation: creates admin
exploit.py - Admin creation → FreePBX target: injects SQL
exploit.py - Exploit client → Admin login: authenticates
exploit.py - Admin login → FreePBX target: posts credentials
exploit.py - Exploit client → Webshell upload: uploads shell
exploit.py - Webshell upload → FreePBX target: posts traversal upload
exploit.py - Exploit client → Webshell endpoint: verifies shell
exploit.py - Exploit client → Single command: selects mode
exploit.py - Single command → Webshell endpoint: sends command
exploit.py - Exploit client → Reverse shell: fires payloads
exploit.py - Reverse shell → Webshell endpoint: runs shell payload
exploit.py - Operator → Listener: provides callback
README.md - Listener → Reverse shell: receives connection
exploit.py