[UNIX] Asterisk Multiple RTP Buffer Overflows
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 19 Mar 2008 09:09:58 +0200
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Asterisk Multiple RTP Buffer Overflows
------------------------------------------------------------------------
SUMMARY
<http://www.asterisk.org/> Asterisk is "an open source telephony engine
and toolkit. Asterisk implements the Session Initiation Protocol (SIP)".
The Mu Security Research team has found two security issues in the SDP
parser in Asterisk 1.4.18. One is an invalid write to an
attacker-controllable, almost arbitrary memory location and the other is a
stack buffer overflow with limited attacker-controllable values.
DETAILS
Vulnerable Systems:
* Asterisk version 1.4.18.0 and prior
Immune Systems:
* Asterisk version 1.4.18.1
1) Sending an invalid RTP payload type number in the SDP payload of an
INVITE message can cause a write to an invalid memory location. An
attacker would have some control over the memory location.
The invalid memory write is in ast_rtp_unset_m_type() (main/rtp.c, line
1655) called by process_line() (channels/chan_sip.c, line 5275).
ast_rtp_unset_mt_type() does not validate pt, while it is validated in
ast_rtp_set_mt_type() (line 1642). The attacker controls pt and could
write a 0 to a wide range of memory locations.
Example invalid SDP payload (invalid RTP payload type is 780903144):
v=0
o=- 817933771 817933775 IN IP4 10.10.1.101
s=session-name
c=IN IP4 10.10.1.101
t=0 0
m=audio 5000 RTP/AVP 0
a=rtpmap:780903144 PCMU/8000
a=rtpmap:4 G723/8000/1
a=rtpmap:97 telephone-event/8000
2) Sending more than 32 RTP payload type number attributes in the SDP
payload of a SIP INVITE will overflow a buffer on the stack. An attacker
would have some control over the values written.
In process_sdp() (channels/chan_sip.c, line 4980), rtpmap codecs are
stored in found_rtpmap_codecs, an array of 32 ints. The number of codecs
in the map is stored in last_rtpmap_codec. Codecs are appeneded to the
array without checking the size of the array (line 5258). Up to 64
(SIP_MAX_LINES). An attacker would have some control over the values
written - the codec must be between 0 and 256 (MAX_RTP_PT).
Example SDP payload:
v=0
o=- 817933771 817933775 IN IP4 10.10.1.101
s=session-name
c=IN IP4 10.10.1.101
t=0 0
m=audio 5000 RTP/AVP 0
a=rtpmap:0 PCMU/8000
[... repeat this line ...]
a=rtpmap:4 G723/8000/1
a=rtpmap:97 telephone-event/8000
Vendor Response / Solution:
Fixed in Asterisk 1.4.18.1 and other branches. Available from
http://www.asterisk.org
History:
March 11, 2008 - First contact with vendor
March 18, 2008 - Vendor releases fix and advisory
CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1289>
CVE-2008-1289
ADDITIONAL INFORMATION
The information has been provided by Mu Security.
The original article can be found at:
<http://labs.musecurity.com/advisories/MU-200803-01.txt>
http://labs.musecurity.com/advisories/MU-200803-01.txt
========================================
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
- Prev by Date: [UNIX] RTP Codec Payload Handling Two Buffer Overflows
- Next by Date: [NEWS] IBM Informix Dynamic Server DBPATH Buffer Overflow
- Previous by thread: [UNIX] RTP Codec Payload Handling Two Buffer Overflows
- Next by thread: [NEWS] IBM Informix Dynamic Server DBPATH Buffer Overflow
- Index(es):
Relevant Pages
- [Full-disclosure] [MU-200803-01] Multiple buffer overflows in Asterisk
... Asterisk is an open source telephony engine and toolkit. ... The Mu Security
Research team has found two security issues in the SDP ... Sending an invalid RTP payload
type number in the SDP payload of an ... Example invalid SDP payload (invalid RTP payload
type is 780903144): ... (Full-Disclosure) - [NT] Buffer Overrun in Windows Help and Support Center Could Lead to System Compromise (MS03-044)
... Get your security news from a reliable source. ... A security vulnerability
exists in the Help and Support Center function ... *Microsoft Windows Millennium Edition
... An attacker could exploit the vulnerability by constructing a URL that, ...
(Securiteam) - [UNIX] Security Analysis of VTun
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... An attacker can modify
... Packet forwarding: ... password) as encryption key. ... (Securiteam) - [REVS] Security Considerations for Web-based Applications
... Get your security news from a reliable source. ... consequences of this ranges
from the erosion of customer confidence in the ... of poorly implemented host naming
procedures or web-application URL ... The attacker may choose to inject ...
(Securiteam) - [NT] Windows Media Player Directory Traversal Vulnerability (WMZ)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... When Media Player 7 or
8 is installed, ... As most other Internet Explorer vulnerabilities, ... cannot
be guessed by a potential attacker. ... (Securiteam)