[NEWS] IAX2 Incomplete 3-Way Handshake (Spoofing)



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

- - - - - - - - -



IAX2 Incomplete 3-Way Handshake (Spoofing)
------------------------------------------------------------------------


SUMMARY

A vulnerability in Asterisk's IAX2 support allows remote attackers that
can spoof IAX2 packets to cause the product generate increasing amounts of
traffic that will be sent to the spoofed source.

DETAILS

Vulnerable Systems:
* Asterisk Open Source 1.0.x - all versions
* Asterisk Open Source 1.2.x - all versions prior to 1.2.28
* Asterisk Open Source 1.4.x - all versions prior to 1.4.19.1
* Asterisk Business Edition A.x.x - all versions
* Asterisk Business Edition B.x.x - all versions prior to B.2.5.2
* Asterisk Business Edition C.x.x - all versions prior to C.1.8.1
* AsteriskNOW 1.0.x - all versions prior to 1.0.3
* Asterisk Appliance Developer Kit 0.x.x - all versions
* s800i (Asterisk Appliance) 1.0.x - all versions prior to 1.1.0.3

Immune Systems:
* Asterisk Open Source version 1.2.28
* Asterisk Open Source version 1.4.19.1
* Asterisk Business Edition version B.2.5.2
* Asterisk Business Edition version C.1.8.1
* AsteriskNOW version 1.0.3
* s800i (Asterisk Appliance) version 1.1.0.3

Javantea originally reported an issue in IAX2, whereby an attacker could
send a spoofed IAX2 NEW message, and Asterisk would start sending early
audio to the target address, without ever receiving an initial response.
That original vulnerability was addressed in June 2007, by requiring a
response to the initial NEW message before starting to send any audio.

Javantea subsequently found that we were doing insufficient verification
of the ACK response and that the ACK response could be spoofed, just like
the initial NEW message. We have addressed this failure with two changes.
First, we have started to require that the ACK response contains the
unique source call number that we send in our reply to the NEW message.
Any ACK response that does not contain the source call number that we have
created will be silently thrown away. Second, we have made the generation
of our source call number a little more difficult to predict, by randomly
selecting a source call number, instead of allocating them sequentially.

Workaround:
Disable remote unauthenticated IAX2 sessions, by disallowing guest access.

Resolution:
Upgrade your Asterisk installation to revision 114561 or later, or install
one of the releases shown below.

Exploit:
session = altsci_iax2.IAX_session(host, port, verbose)

# Capability == GSM, ...
data =
altsci_iax2.IAX_create_ie(altsci_iax2.IAX_IE_TYPE['IAX_IE_CAPABILITY'],
altsci_iax2.pack_long(0x000002aa))
# Reqd Version, Called number, codec prefs, Calling Presentation,
# Calling TON, Calling TNS, Format?
session.send(data)

resp = session.recv()

doit = 0
if resp[0] == altsci_iax2.IAX_FRAMETYPE['FT_IAXCTL'] and resp[1] ==
altsci_iax2.IAXCTL_SUBCLASS['IC_ACCEPT']:
print "Accepted, let's ack"
data = ''
session.send(data, frame_type = altsci_iax2.IAX_FRAMETYPE['FT_IAXCTL'],
subclass = altsci_iax2.IAXCTL_SUBCLASS['IC_ACK'])
doit = 1
#end if

CVE Information:
<http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-1897>
CVE-2008-1897


ADDITIONAL INFORMATION

The information has been provided by <mailto:jvoss@xxxxxxxxxx> Joel R.
Voss aka. Javantea.
The original article can be found at:
<http://downloads.digium.com/pub/security/AST-2008-006.html>
http://downloads.digium.com/pub/security/AST-2008-006.html and
<https://www.altsci.com/concepts/page.php?s=asteri&p=2>
https://www.altsci.com/concepts/page.php?s=asteri&p=2



========================================


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.



Relevant Pages

  • [UNIX] IAX2 Channel Driver Resource Exhaustion Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... The IAX2 channel driver in Asterisk is vulnerable to a Denial of Service ...
    (Securiteam)
  • [UNIX] Asterisk Skinny Unauthenticated Heap Overflow
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Asterisk Skinny Unauthenticated Heap Overflow ... Asterisk is "The Opensource PBX", ... Asterisk version 1.2.12.1 and prior ...
    (Securiteam)
  • [UNIX] AsteriDex Code Execution (Asterisk and Trixbox)
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... AsteriDex Code Execution (Asterisk and Trixbox) ... of arbitrary operating system commands as the 'asterisk' user. ... Originate' command which is used to ...
    (Securiteam)
  • [UNIX] Asterisk Manager Interface Buffer Overflow Vulnerability
    ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... " <http://www.asterisk.org/> Asterisk is a complete PBX in software. ... A Buffer Overflow with manager interface allow attackers to execute ... If the command string is specifically crafted, is it possible to use this ...
    (Securiteam)
  • Re: VOIP Programm und Anbieter =?iso-8859-1?Q?f=FCr?= Linux, nicht an Window Manager gebunde
    ... wenn man sich nen Asterisk auf dem heimischen Server bzw. ... Zum Provider gehts dann weiter via SIP oder IAX2 ...
    (de.comp.os.unix.apps.misc)