Description
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.
Module options
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(freepbx_unauth_sqli_to_rce) > show actions ...actions...msf undefined(freepbx_unauth_sqli_to_rce) > set ACTION < action-name >msf undefined(freepbx_unauth_sqli_to_rce) > show options ...show and set options...msf undefined(freepbx_unauth_sqli_to_rce) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub