Mon Dec 12 05:05:34 2011 UTC ()
This update fixes AST-2011-013 and AST-2011-014.  It also adapts to changes
in the iLBC codec files.

     __________________________________________________________________

               Asterisk Project Security Advisory - AST-2011-013

         Product        Asterisk
         Summary        Possible remote enumeration of SIP endpoints with
                        differing NAT settings
    Nature of Advisory  Unauthorized data disclosure
      Susceptibility    Remote unauthenticated sessions
         Severity       Minor
      Exploits Known    Yes
       Reported On      2011-07-18
       Reported By      Ben Williams
        Posted On
     Last Updated On    December 7, 2011
     Advisory Contact   Terry Wilson <twilson at digium.com>

         CVE Name

    Description  It is possible to enumerate SIP usernames when the general
                 and user/peer NAT settings differ in whether to respond to
                 the port a request is sent from or the port listed for
                 responses in the Via header. In 1.4 and 1.6.2, this would
                 mean if one setting was nat=yes or nat=route and the other
                 was either nat=no or nat=never. In 1.8 and 10, this would
                 mean when one was nat=force_rport or nat=yes and the other
                 was nat=no or nat=comedia.

    Resolution  Handling NAT for SIP over UDP requires the differing
                behavior introduced by these options.

                To lessen the frequency of unintended username disclosure,
                the default NAT setting was changed to always respond to the
                port from which we received the request-the most commonly
                used option.

                Warnings were added on startup to inform administrators of
                the risks of having a SIP peer configured with a different
                setting than that of the general setting. The documentation
                now strongly suggests that peers are no longer configured
                for NAT individually, but through the global setting in the
                "general" context.

                               Affected Versions
                Product              Release Series
         Asterisk Open Source             All        All versions

                                  Corrected In
     As this is more of an issue with SIP over UDP in general, there is no
     fix supplied other than documentation on how to avoid the problem. The
        default NAT setting has been changed to what we believe the most
      commonly used setting for the respective version in Asterisk 1.4.43,
                             1.6.2.21, and 1.8.7.2.

            Links

    Asterisk Project Security Advisories are posted at
    http://www.asterisk.org/security

    This document may be superseded by later versions; if so, the latest
    version will be posted at
    http://downloads.digium.com/pub/security/AST-2011-013.pdf and
    http://downloads.digium.com/pub/security/AST-2011-013.html

                                Revision History
           Date                 Editor                 Revisions Made

               Asterisk Project Security Advisory - AST-2011-013
              Copyright (c) 2011 Digium, Inc. All Rights Reserved.
  Permission is hereby granted to distribute and publish this advisory in its
                           original, unaltered form.

     __________________________________________________________________

               Asterisk Project Security Advisory - AST-2011-014

         Product        Asterisk
         Summary        Remote crash possibility with SIP and the "automon"
                        feature enabled
    Nature of Advisory  Remote crash vulnerability in a feature that is
                        disabled by default
      Susceptibility    Remote unauthenticated sessions
         Severity       Moderate
      Exploits Known    Yes
       Reported On      November 2, 2011
       Reported By      Kristijan Vrban
        Posted On       2011-11-03
     Last Updated On    December 7, 2011
     Advisory Contact   Terry Wilson <twilson at digium.com>

         CVE Name

    Description  When the "automon" feature is enabled in features.conf, it
                 is possible to send a sequence of SIP requests that cause
                 Asterisk to dereference a NULL pointer and crash.

    Resolution  Applying the referenced patches that check that the pointer
                is not NULL before accessing it will resolve the issue. The
                "automon" feature can be disabled in features.conf as a
                workaround.

                               Affected Versions
                Product              Release Series
         Asterisk Open Source           1.6.2.x      All versions
         Asterisk Open Source            1.8.x       All versions

                                  Corrected In
                   Product                              Release
            Asterisk Open Source                   1.6.2.21, 1.8.7.2

                                     Patches
                              Download URL                            Revision
   http://downloads.asterisk.org/pub/security/AST-2011-014-1.6.2.diff 1.6.2.20
   http://downloads.asterisk.org/pub/security/AST-2011-014-1.8.diff   1.8.7.1

            Links

    Asterisk Project Security Advisories are posted at
    http://www.asterisk.org/security

    This document may be superseded by later versions; if so, the latest
    version will be posted at
    http://downloads.digium.com/pub/security/AST-2011-014.pdf and
    http://downloads.digium.com/pub/security/AST-2011-014.html

                                Revision History
           Date                 Editor                 Revisions Made

               Asterisk Project Security Advisory - AST-2011-014
              Copyright (c) 2011 Digium, Inc. All Rights Reserved.
  Permission is hereby granted to distribute and publish this advisory in its
                           original, unaltered form.


(jnemeth)
diff -r1.34 -r1.35 pkgsrc/comms/asterisk16/Makefile
diff -r1.22 -r1.23 pkgsrc/comms/asterisk16/distinfo
diff -r1.11 -r1.12 pkgsrc/comms/asterisk16/options.mk

cvs diff -r1.34 -r1.35 pkgsrc/comms/asterisk16/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/asterisk16/Makefile 2011/12/05 04:18:32 1.34
+++ pkgsrc/comms/asterisk16/Makefile 2011/12/12 05:05:33 1.35
@@ -1,20 +1,19 @@ @@ -1,20 +1,19 @@
1# $NetBSD: Makefile,v 1.34 2011/12/05 04:18:32 jnemeth Exp $ 1# $NetBSD: Makefile,v 1.35 2011/12/12 05:05:33 jnemeth Exp $
2# 2#
3# NOTE: when updating this package, there are two places that sound 3# NOTE: when updating this package, there are two places that sound
4# tarballs need to be checked 4# tarballs need to be checked
5 5
6DISTNAME= asterisk-1.6.2.19 6DISTNAME= asterisk-1.6.2.21
7PKGREVISION= 2 
8DIST_SUBDIR= ${PKGNAME_NOREV} 7DIST_SUBDIR= ${PKGNAME_NOREV}
9DISTFILES= ${DEFAULT_DISTFILES} 8DISTFILES= ${DEFAULT_DISTFILES}
10EXTRACT_ONLY= ${DISTNAME}.tar.gz 9EXTRACT_ONLY= ${DISTNAME}.tar.gz
11CATEGORIES= comms net audio 10CATEGORIES= comms net audio
12MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ 11MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \
13 http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \ 12 http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ \
14 http://downloads.asterisk.org/pub/telephony/sounds/releases/ 13 http://downloads.asterisk.org/pub/telephony/sounds/releases/
15 14
16OWNER= jnemeth@NetBSD.org 15OWNER= jnemeth@NetBSD.org
17HOMEPAGE= http://www.asterisk.org/ 16HOMEPAGE= http://www.asterisk.org/
18COMMENT= The Asterisk Software PBX 17COMMENT= The Asterisk Software PBX
19LICENSE= gnu-gpl-v2 18LICENSE= gnu-gpl-v2
20 19

cvs diff -r1.22 -r1.23 pkgsrc/comms/asterisk16/distinfo (expand / switch to unified diff)

--- pkgsrc/comms/asterisk16/distinfo 2011/07/05 08:34:47 1.22
+++ pkgsrc/comms/asterisk16/distinfo 2011/12/12 05:05:34 1.23
@@ -1,27 +1,27 @@ @@ -1,27 +1,27 @@
1$NetBSD: distinfo,v 1.22 2011/07/05 08:34:47 jnemeth Exp $ 1$NetBSD: distinfo,v 1.23 2011/12/12 05:05:34 jnemeth Exp $
2 2
3SHA1 (asterisk-1.6.2.19/asterisk-1.6.2.19.tar.gz) = a81b426fa5146696abfdacd171f31f48aa976eb7 3SHA1 (asterisk-1.6.2.21/asterisk-1.6.2.21.tar.gz) = 6b7e6868a826d45234c537763d5d20cb0ffc6f97
4RMD160 (asterisk-1.6.2.19/asterisk-1.6.2.19.tar.gz) = 89710872034d9ebaa54d66ed0d7f5f6724caa780 4RMD160 (asterisk-1.6.2.21/asterisk-1.6.2.21.tar.gz) = c7e326c69b2e7951477ef8a22f74ccda012eef74
5Size (asterisk-1.6.2.19/asterisk-1.6.2.19.tar.gz) = 23818324 bytes 5Size (asterisk-1.6.2.21/asterisk-1.6.2.21.tar.gz) = 23807382 bytes
6SHA1 (asterisk-1.6.2.19/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 8692fa61423b4769dc8bfa78faf9ed5ef7a259b9 6SHA1 (asterisk-1.6.2.21/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 8692fa61423b4769dc8bfa78faf9ed5ef7a259b9
7RMD160 (asterisk-1.6.2.19/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 68170c769d739d6b5b35b00f999ad6bbf876f9f6 7RMD160 (asterisk-1.6.2.21/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 68170c769d739d6b5b35b00f999ad6bbf876f9f6
8Size (asterisk-1.6.2.19/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 3349898 bytes 8Size (asterisk-1.6.2.21/asterisk-extra-sounds-en-gsm-1.4.11.tar.gz) = 3349898 bytes
9SHA1 (asterisk-1.6.2.19/extract-cfile.awk) = c4f08eee1ab83c041bde1ab91672a4a3c43c28b8 9SHA1 (asterisk-1.6.2.21/extract-cfile.txt) = b22874814c83a53bcd1a8d96b5911304f304971e
10RMD160 (asterisk-1.6.2.19/extract-cfile.awk) = cd59f8e5807732023d5aec95187e2d5572f400a4 10RMD160 (asterisk-1.6.2.21/extract-cfile.txt) = e7205fe7e95793f3ca6e384edeef1ad5713485e0
11Size (asterisk-1.6.2.19/extract-cfile.awk) = 667 bytes 11Size (asterisk-1.6.2.21/extract-cfile.txt) = 643 bytes
12SHA1 (asterisk-1.6.2.19/rfc3951.txt) = 1a6c769be750fb02456d60db2470909254496017 12SHA1 (asterisk-1.6.2.21/rfc3951.txt) = 1a6c769be750fb02456d60db2470909254496017
13RMD160 (asterisk-1.6.2.19/rfc3951.txt) = 15f7ec61653ec9953172f8f2150e7d8f6f620926 13RMD160 (asterisk-1.6.2.21/rfc3951.txt) = 15f7ec61653ec9953172f8f2150e7d8f6f620926
14Size (asterisk-1.6.2.19/rfc3951.txt) = 373442 bytes 14Size (asterisk-1.6.2.21/rfc3951.txt) = 373442 bytes
15SHA1 (patch-aa) = 8c2a3c75adff34474c8f416bcea5842e771e4631 15SHA1 (patch-aa) = 8c2a3c75adff34474c8f416bcea5842e771e4631
16SHA1 (patch-af) = 09860d714281cb4c65d1a087cf5b16647a16e2fa 16SHA1 (patch-af) = 09860d714281cb4c65d1a087cf5b16647a16e2fa
17SHA1 (patch-ag) = c71c61350cefbbe53eefa99245ca7712753f22d5 17SHA1 (patch-ag) = c71c61350cefbbe53eefa99245ca7712753f22d5
18SHA1 (patch-ai) = e92edab5c1ff323478f41d0b0783102ed527fe39 18SHA1 (patch-ai) = e92edab5c1ff323478f41d0b0783102ed527fe39
19SHA1 (patch-ak) = adee75b7716a8794de1b8cb054af7a5a8f0e5ffd 19SHA1 (patch-ak) = adee75b7716a8794de1b8cb054af7a5a8f0e5ffd
20SHA1 (patch-al) = b2a1134786d7c3b118ee8c47892f91dd2a4c783a 20SHA1 (patch-al) = b2a1134786d7c3b118ee8c47892f91dd2a4c783a
21SHA1 (patch-am) = 98aa4648b867d193ec05d8da14434205f369c17b 21SHA1 (patch-am) = 98aa4648b867d193ec05d8da14434205f369c17b
22SHA1 (patch-an) = 93a5df66fd6459fb76e9191dc3bf37b9ee5483b5 22SHA1 (patch-an) = 93a5df66fd6459fb76e9191dc3bf37b9ee5483b5
23SHA1 (patch-ao) = 0663a698469550b22bb97ee1b18980bc2bc67495 23SHA1 (patch-ao) = 0663a698469550b22bb97ee1b18980bc2bc67495
24SHA1 (patch-ap) = 309d51a35c600f4898d99ad6ab1c492c47c6a55a 24SHA1 (patch-ap) = 309d51a35c600f4898d99ad6ab1c492c47c6a55a
25SHA1 (patch-aq) = fc43fc46ab7d2a6555a51b10ff6a80b0129b4a40 25SHA1 (patch-aq) = fc43fc46ab7d2a6555a51b10ff6a80b0129b4a40
26SHA1 (patch-ar) = 44e46336c0b228ab291e025b8bb5ee505f75345a 26SHA1 (patch-ar) = 44e46336c0b228ab291e025b8bb5ee505f75345a
27SHA1 (patch-as) = a887d37f0829c22d115ff08721893da49e4bfda4 27SHA1 (patch-as) = a887d37f0829c22d115ff08721893da49e4bfda4

cvs diff -r1.11 -r1.12 pkgsrc/comms/asterisk16/options.mk (expand / switch to unified diff)

--- pkgsrc/comms/asterisk16/options.mk 2011/10/11 03:15:50 1.11
+++ pkgsrc/comms/asterisk16/options.mk 2011/12/12 05:05:34 1.12
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: options.mk,v 1.11 2011/10/11 03:15:50 jnemeth Exp $ 1# $NetBSD: options.mk,v 1.12 2011/12/12 05:05:34 jnemeth Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk 3PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk
4PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap 4PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc webvmail ldap
5PKG_OPTIONS_LEGACY_OPTS+= gtk:x11 5PKG_OPTIONS_LEGACY_OPTS+= gtk:x11
6PKG_SUGGESTED_OPTIONS= ldap 6PKG_SUGGESTED_OPTIONS= ldap
7 7
8.include "../../mk/bsd.options.mk" 8.include "../../mk/bsd.options.mk"
9 9
10PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap 10PLIST_VARS+= zaptel x11 unixodbc ilbc webvmail ldap
11 11
12# Asterisk now uses DAHDI, not zaptel; not implemented yet... 12# Asterisk now uses DAHDI, not zaptel; not implemented yet...
13#.if !empty(PKG_OPTIONS:Mzaptel) 13#.if !empty(PKG_OPTIONS:Mzaptel)
14## zaptel only supported under NetBSD at the moment 14## zaptel only supported under NetBSD at the moment
@@ -34,56 +34,56 @@ CONFIGURE_ARGS+= --without-gtk @@ -34,56 +34,56 @@ CONFIGURE_ARGS+= --without-gtk
34. include "../../databases/unixodbc/buildlink3.mk" 34. include "../../databases/unixodbc/buildlink3.mk"
35. include "../../devel/libltdl/buildlink3.mk" 35. include "../../devel/libltdl/buildlink3.mk"
36CONFIGURE_ARGS+= --with-ltdl 36CONFIGURE_ARGS+= --with-ltdl
37CONFIGURE_ARGS+= --with-unixodbc 37CONFIGURE_ARGS+= --with-unixodbc
38PLIST.unixodbc= yes 38PLIST.unixodbc= yes
39.else 39.else
40CONFIGURE_ARGS+= --without-ltdl 40CONFIGURE_ARGS+= --without-ltdl
41CONFIGURE_ARGS+= --without-odbc 41CONFIGURE_ARGS+= --without-odbc
42.endif 42.endif
43 43
44.if !empty(PKG_OPTIONS:Milbc) 44.if !empty(PKG_OPTIONS:Milbc)
45DISTFILES+= rfc3951.txt 45DISTFILES+= rfc3951.txt
46SITES.rfc3951.txt= http://www.ietf.org/rfc/ 46SITES.rfc3951.txt= http://www.ietf.org/rfc/
47DISTFILES+= extract-cfile.awk 47DISTFILES+= extract-cfile.txt
48SITES.extract-cfile.awk= http://www.ilbcfreeware.org/documentation/ 48SITES.extract-cfile.txt= http://www.ilbcfreeware.org/documentation/
49USE_TOOLS+= awk 49USE_TOOLS+= awk tr
50PLIST.ilbc= yes 50PLIST.ilbc= yes
51.endif 51.endif
52 52
53.if !empty(PKG_OPTIONS:Mx11) || !empty(PKG_OPTIONS:Munixodbc) || !empty(PKG_OPTIONS:Milbc) 53.if !empty(PKG_OPTIONS:Mx11) || !empty(PKG_OPTIONS:Munixodbc) || !empty(PKG_OPTIONS:Milbc)
54RUN_MENUSELECT= # empty 54RUN_MENUSELECT= # empty
55MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts 55MAKE_FLAGS+= GLOBAL_MAKEOPTS=${WRKSRC}/pkgsrc.makeopts
56.endif 56.endif
57post-configure: 57post-configure:
58.if !empty(PKG_OPTIONS:Mx11) 58.if !empty(PKG_OPTIONS:Mx11)
59 ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts 59 ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts
60.endif 60.endif
61.if !empty(PKG_OPTIONS:Munixodbc) 61.if !empty(PKG_OPTIONS:Munixodbc)
62 ${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts 62 ${ECHO} "MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE" >> ${WRKSRC}/pkgsrc.makeopts
63.endif 63.endif
64.if !empty(PKG_OPTIONS:Milbc) 64.if !empty(PKG_OPTIONS:Milbc)
65 ${ECHO} "MENUSELECT_CODECS=-codec_ilbc" >> ${WRKSRC}/pkgsrc.makeopts 65 ${ECHO} "MENUSELECT_CODECS=-codec_ilbc" >> ${WRKSRC}/pkgsrc.makeopts
66.endif 66.endif
67.if defined(RUN_MENUSELECT) 67.if defined(RUN_MENUSELECT)
68 # this is a hack to work around a bug in menuselect 68 # this is a hack to work around a bug in menuselect
69 cd ${WRKSRC} && make menuselect.makeopts 69 cd ${WRKSRC} && make menuselect.makeopts
70.endif 70.endif
71 71
72post-extract: 72post-extract:
73.if !empty(PKG_OPTIONS:Milbc) 73.if !empty(PKG_OPTIONS:Milbc)
74 cp ${DISTDIR}/${DIST_SUBDIR}/rfc3951.txt ${WRKSRC}/codecs/ilbc 74 cp ${DISTDIR}/${DIST_SUBDIR}/rfc3951.txt ${WRKSRC}/codecs/ilbc
75 cp ${DISTDIR}/${DIST_SUBDIR}/extract-cfile.awk ${WRKSRC}/codecs/ilbc 75 cp ${DISTDIR}/${DIST_SUBDIR}/extract-cfile.txt ${WRKSRC}/codecs/ilbc
76 cd ${WRKSRC}/codecs/ilbc && ${AWK} -f extract-cfile.awk < rfc3951.txt 76 cd ${WRKSRC}/codecs/ilbc && ${TR} -d '\r' < extract-cfile.txt | ${AWK} -f - rfc3951.txt
77.endif 77.endif
78 78
79.if !empty(PKG_OPTIONS:Mwebvmail) 79.if !empty(PKG_OPTIONS:Mwebvmail)
80DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI 80DEPENDS+= p5-DBI-[0-9]*:../../databases/p5-DBI
81SUBST_CLASSES+= webvmail 81SUBST_CLASSES+= webvmail
82SUBST_STAGE.webvmail= post-patch 82SUBST_STAGE.webvmail= post-patch
83SUBST_FILES.webvmail= contrib/scripts/vmail.cgi 83SUBST_FILES.webvmail= contrib/scripts/vmail.cgi
84SUBST_SED.webvmail+= -e 's|@ASTETCDIR@|${ASTETCDIR}|' 84SUBST_SED.webvmail+= -e 's|@ASTETCDIR@|${ASTETCDIR}|'
85SUBST_SED.webvmail+= -e "s|@ASTSPOOLDIR@|${ASTSPOOLDIR}|" 85SUBST_SED.webvmail+= -e "s|@ASTSPOOLDIR@|${ASTSPOOLDIR}|"
86INSTALLATION_DIRS+= ${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs 86INSTALLATION_DIRS+= ${PREFIX}/libexec/cgi-bin ${PREFIX}/share/httpd/htdocs
87SPECIAL_PERMS+= ${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555 87SPECIAL_PERMS+= ${PREFIX}/libexec/cgi-bin/vmail ${ASTERISK_USER} ${ASTERISK_GROUP} 04555
88INSTALL_TARGET+= webvmail 88INSTALL_TARGET+= webvmail
89PLIST.webvmail= yes 89PLIST.webvmail= yes