A remote stack buffer overflow condition in Asterisk's MGCP implementation could allow for arbitrary code execution. The vulnerable code is triggered with the use of a malformed AUEP (audit endpoint) response message. A second issue exists in the handling of file names sent to the Record() application which could lead to arbitrary code execution via a format string attack or arbitrary file-overwrite via directory traversal techniques. The impact of this vulnerability is minimal, however, as it requires an administrator to use a client-controlled variable as part of the filename. Asterisk versions 1.0.0 through 1.2.10 are affected.
dbdc141ab5d77885c8dca0d5658fe534d27d30e676035e308e313dba03713a10
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Multiple Vulnerabilities in Asterisk 1.2.10 [MU-200608-01]
August 23, 2006
https://labs.musecurity.com/advisories.html
Affected Product/Versions:
Asterisk 1.0.0 through 1.2.10
Product Overview:
https://www.asterisk.org/features
"Asterisk-based telephony solutions offer a rich and flexible feature set.
Asterisk offers both classical PBX functionality and advanced features, and
interoperates with traditional standards-based telephony systems and Voice
over IP systems. Asterisk offers the features one would expect of a large
proprietary PBX system such as Voicemail, Conference Bridging, Call Queuing,
and Call Detail Records."
Vulnerability Details:
A remote stack buffer overflow condition in Asterisk's MGCP implementation
could allow for arbitrary code execution. The vulnerable code is triggered
with the use of a malformed AUEP (audit endpoint) response message.
A second issue exists in the handling of file names sent to the Record()
application which could lead to arbitrary code execution via a format string
attack or arbitrary file-overwrite via directory traversal techniques. The
impact of this vulnerability is minimal, however, as it requires an
administrator to use a client-controlled variable as part of the filename.
Solution:
Mu Security would like to thank the Asterisk security team for their
timely response to these issues.
A patch for the buffer overflow is available from the following link:
https://ftp.digium.com/pub/asterisk/asterisk-1.2.11-patch.gz
To protect against the Record() vulnerability, do not use user-controlled
variables ( eg, ${CALLERIDNAME} ) as part of the the filename argument.
History:
08/10/06 - First contact with vendor
08/16/06 - Vendor acknowledges vulnerability
08/23/06 - Advisory released
Credit:
These vulnerabilities were discovered by the Mu Security research team.
https://labs.musecurity.com/pgpkkey.txt
Mu Security offers a new class of security analysis system, delivering a
rigorous and streamlined methodology for verifying the robustness and security
readiness of any IP-based product or application. Founded by the pioneers of
intrusion detection and prevention technology, Mu Security is backed by
preeminent venture capital firms that include Accel Partners, Benchmark
Capital and DAG Ventures. The company is headquartered in Sunnyvale, CA. For
more information, visit the companys website at https://www.musecurity.com.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
iD8DBQFE7JuPMl+docYeP+YRAg7aAJ978dkk09dDG2P/CNRJkk3gWcMSAQCfXud0
ActeX5hrO9+B9rJzefxRkis=
=OXvK
-----END PGP SIGNATURE-----