Summary
SQL injection vulnerabilities exist in the FreePBX Phone Apps module affecting the app_extension parameter.
Authentication with a known password is required. Depending on local configuration, this password could be the extension, voicemail, user manager, DPMA or EPM phone admin password.
Mitigations
- Update to the latest fixed version of the
restapps module.
- Protect your Phone Apps from suspicious users.
- Isolate telephony network from the public internet e.g. OpenVPN, VLANs, etc.
- Remove users and extensions that should not have access.
- Change passwords to longer randomized strings, e.g., 16 digits that you share with users in four blocks of four digits each might be okay for a voicemail password in your environment.
- Change Phone Admin Password (under Endpoint Manager -> Global Settings).
- Utilize User Manager authentication (under Phone Apps -> Endpoint Manager -> User Manager authentication). This option is not available on phones using DPMA.
- Consider hardware firewall for your FreePBX RESTful Phone Apps ports (ports listed under System Admin -> Port Management).
- Check FreePBX Responsive Firewall is active as this can limit access to Phone Apps to the IPs of SIP phones which already registered successfully (see previous blog post for more information: https://www.freepbx.org/freepbx-security-issue-sec-2023-001/)
- Require tokens for all endpoints (under Advanced Settings -> Phone Apps -> Enable Token Based Security). TEST IT FIRST AND BE READY TO REBOOT ALL YOUR PHONES SHOULD YOU DECIDE TO ACTIVATE TOKENS.
Scoring
CVSS 4.0 Base vector string: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS 4.0 more complete vector string: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:U/AU:N/R:U/V:D/RE:L/U:Green
Current CVSS v4.0 Base score is 8.6 (High)
Current CVSS v4.0 more complete score is 6.1 (Medium)
Alternative CVSS v4.1 score is 0.9 (Low)
See details on scoring on the FreePBX blog at https://www.freepbx.org/watch-what-we-do-with-security-fixes-%f0%9f%91%80/
Summary
SQL injection vulnerabilities exist in the FreePBX Phone Apps module affecting the
app_extensionparameter.Authentication with a known password is required. Depending on local configuration, this password could be the extension, voicemail, user manager, DPMA or EPM phone admin password.
Mitigations
restappsmodule.Scoring
CVSS 4.0 Base vector string:
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:NCVSS 4.0 more complete vector string:
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:U/AU:N/R:U/V:D/RE:L/U:GreenCurrent CVSS v4.0 Base score is 8.6 (High)
Current CVSS v4.0 more complete score is 6.1 (Medium)
Alternative CVSS v4.1 score is 0.9 (Low)
See details on scoring on the FreePBX blog at https://www.freepbx.org/watch-what-we-do-with-security-fixes-%f0%9f%91%80/