Input buffers were not properly escaped when providing the ANI and DNIS strings to the Call Detail Record Postgres logging engine. An attacker could potentially compromise the administrative database containing users' usernames and passwords used for SIP authentication, among other things.
This module is not active by default and must be configured for use by the administrator. Default installations of Asterisk are not affected.
Vulnerable Systems:
* Asterisk Open Source version 1.2.24 and previous
* Asterisk Open Source version 1.4.14 and previous
* Asterisk Business Edition version A.x.x all versions
* Asterisk Business Edition version B.2.3.3 and previous
* Asterisk Business Edition version C.1.0-beta5 and previous
Immune Systems:
* Asterisk Open Source version 1.2.25
* Asterisk Open Source version 1.4.15
* Asterisk Business Edition version B.2.3.4
* Asterisk Business Edition version C.1.0-beta6
Workaround:
Convert your installation to use cdr_odbc with the PgsqlODBC driver. This module provides similar functionality but is not vulnerable.
Solution:
Upgrade to Asterisk release 1.4.15 or higher.