This module exploits an unauthenticated SQL injection flaw in FreePBX prior to versions 15.0.66, 16.0.89, and 17.0.3. The vulnerability lies in the /admin/ajax.php endpoint, which is accessible without authentication. Additionally, the database user created by FreePBX can schedule cronjobs, allowing remote code execution on the target system.
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/http/freepbx/unauth_sqli_to_rcemsf undefined(unauth_sqli_to_rce) > show actions ...actions...msf undefined(unauth_sqli_to_rce) > set ACTION < action-name >msf undefined(unauth_sqli_to_rce) > show options ...show and set options...msf undefined(unauth_sqli_to_rce) > runWith curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hubexploit
Excellent
No
Aug 28, 2025
Echo_Slow
Piotr Bazydlo
Sonny
repeatable-session
crash-safe