Mon Jul 16 23:21:58 2018 UTC ()
Update to Asterisk 11.25.3.  This is a security update to fix
AST-2017-005, AST-2017-006, and AST-2017-008.  There was no release
announcement as only security patches were issued.  I just found
this update while looking to see what updates I was missing for
more recent versions of Asterisk.  The Asterisk 11.x series was
declared end-of-life on Oct. 25th, 2017, so there will not be any
more updates to this package (other then PKGREVISION bumps for
dependencies) before it gets deleted.  There is a reasonable chance
that there are unpatched vulnerabilities in this package.  Anybody
still using it should upgrade a newer version as soon as possibble.

-----  AST-2017-2005  -----

    Description  The "strictrtp" option in rtp.conf enables a feature of the
                 RTP stack that learns the source address of media for a
                 session and drops any packets that do not originate from
                 the expected address. This option is enabled by default in
                 Asterisk 11 and above.

                 The "nat" and "rtp_symmetric" options for chan_sip and
                 chan_pjsip respectively enable symmetric RTP support in the
                 RTP stack. This uses the source address of incoming media
                 as the target address of any sent media. This option is not
                 enabled by default but is commonly enabled to handle
                 devices behind NAT.

                 A change was made to the strict RTP support in the RTP
                 stack to better tolerate late media when a reinvite occurs.
                 When combined with the symmetric RTP support this
                 introduced an avenue where media could be hijacked. Instead
                 of only learning a new address when expected the new code
                 allowed a new source address to be learned at all times.

                 If a flood of RTP traffic was received the strict RTP
                 support would allow the new address to provide media and
                 with symmetric RTP enabled outgoing traffic would be sent
                 to this new address, allowing the media to be hijacked.
                 Provided the attacker continued to send traffic they would
                 continue to receive traffic as well.

    Resolution  The RTP stack will now only learn a new source address if it
                has been told to expect the address to change. The RTCP
                support has now also been updated to drop RTCP reports that
                are not regarding the RTP session currently in progress. The
                strict RTP learning progress has also been improved to guard
                against a flood of RTP packets attempting to take over the
                media stream.

-----  AST-2017-006  -----

    Description  The app_minivm module has an "externnotify" program
                 configuration option that is executed by the MinivmNotify
                 dialplan application. The application uses the caller-id
                 name and number as part of a built string passed to the OS
                 shell for interpretation and execution. Since the caller-id
                 name and number can come from an untrusted source, a
                 crafted caller-id name or number allows an arbitrary shell
                 command injection.

    Resolution  Patched Asterisk's app_minivm module to use a different
                system call that passes argument strings in an array instead
                of having the OS shell determine the application parameter
                boundaries.

-----  AST-2017-008  -----

    Description  This is a follow up advisory to AST-2017-005.

                 Insufficient RTCP packet validation could allow reading
                 stale buffer contents and when combined with the "nat" and
                 "symmetric_rtp" options allow redirecting where Asterisk
                 sends the next RTCP report.

                 The RTP stream qualification to learn the source address of
                 media always accepted the first RTP packet as the new
                 source and allowed what AST-2017-005 was mitigating. The
                 intent was to qualify a series of packets before accepting
                 the new source address.

    Resolution  The RTP/RTCP stack will now validate RTCP packets before
                processing them. Packets failing validation are discarded.
                RTP stream qualification now requires the intended series of
                packets from the same address without seeing packets from a
                different source address to accept a new source address.


(jnemeth)
diff -r1.162 -r1.163 pkgsrc/comms/asterisk/Makefile
diff -r1.84 -r1.85 pkgsrc/comms/asterisk/distinfo

cvs diff -r1.162 -r1.163 pkgsrc/comms/asterisk/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/asterisk/Attic/Makefile 2018/04/29 21:31:29 1.162
+++ pkgsrc/comms/asterisk/Attic/Makefile 2018/07/16 23:21:58 1.163
@@ -1,21 +1,21 @@ @@ -1,21 +1,21 @@
1# $NetBSD: Makefile,v 1.162 2018/04/29 21:31:29 adam Exp $ 1# $NetBSD: Makefile,v 1.163 2018/07/16 23:21:58 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; look win ${WRKSRC}/sounds/Makefile 4# tarballs need to be checked; look win ${WRKSRC}/sounds/Makefile
5# to find out the current sound file versions 5# to find out the current sound file versions
6 6
7DISTNAME= asterisk-11.25.1 7DISTNAME= asterisk-11.25.3
8PKGREVISION= 13 8#PKGREVISION= 13
9CATEGORIES= comms net audio 9CATEGORIES= comms net audio
10MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ 10MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/
11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/ 11MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/asterisk/old-releases/
12MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/ 12MASTER_SITES+= http://downloads.asterisk.org/pub/telephony/sounds/releases/
13DIST_SUBDIR= ${PKGNAME_NOREV} 13DIST_SUBDIR= ${PKGNAME_NOREV}
14DISTFILES= ${DEFAULT_DISTFILES} 14DISTFILES= ${DEFAULT_DISTFILES}
15 15
16COMMENT= The Asterisk Software PBX 16COMMENT= The Asterisk Software PBX
17OWNER= jnemeth@NetBSD.org 17OWNER= jnemeth@NetBSD.org
18HOMEPAGE= http://www.asterisk.org/ 18HOMEPAGE= http://www.asterisk.org/
19LICENSE= gnu-gpl-v2 19LICENSE= gnu-gpl-v2
20 20
21EXTRACT_ONLY= ${DISTNAME}.tar.gz 21EXTRACT_ONLY= ${DISTNAME}.tar.gz

cvs diff -r1.84 -r1.85 pkgsrc/comms/asterisk/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/comms/asterisk/Attic/distinfo 2016/12/11 00:50:15 1.84
+++ pkgsrc/comms/asterisk/Attic/distinfo 2018/07/16 23:21:58 1.85
@@ -1,23 +1,23 @@ @@ -1,23 +1,23 @@
1$NetBSD: distinfo,v 1.84 2016/12/11 00:50:15 jnemeth Exp $ 1$NetBSD: distinfo,v 1.85 2018/07/16 23:21:58 jnemeth Exp $
2 2
3SHA1 (asterisk-11.25.1/asterisk-11.25.1.tar.gz) = 7bd4603284639d71da9097d93920b28a705dc012 3SHA1 (asterisk-11.25.3/asterisk-11.25.3.tar.gz) = e9419263150010a9d1b8ff5cabc904bbbd7448eb
4RMD160 (asterisk-11.25.1/asterisk-11.25.1.tar.gz) = 8f29571cccd93a20ad6faf67dec2efc0734f781f 4RMD160 (asterisk-11.25.3/asterisk-11.25.3.tar.gz) = 9eda6648ca8fbc2afad987a4f45db6a2da16feee
5SHA512 (asterisk-11.25.1/asterisk-11.25.1.tar.gz) = 37144b7296f929bdb707853690a12d4c1403741221c943becc88c18fe20587ba2381425574e97647c10efa9f98200336ddae7e3433740e5a509a837ed28ca02c 5SHA512 (asterisk-11.25.3/asterisk-11.25.3.tar.gz) = 9c0521d55e5b69663ea40066d52e397ba6c165a4b20cd0a1e5e375b9c0e5a6e4f37908e50b0b580e288dec9be252af9a8bce7bceb03ba029f902fb757e6311ed
6Size (asterisk-11.25.1/asterisk-11.25.1.tar.gz) = 35125897 bytes 6Size (asterisk-11.25.3/asterisk-11.25.3.tar.gz) = 35134682 bytes
7SHA1 (asterisk-11.25.1/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 831ae6442e23cbef1e7d1c84798778ad0b0524d1 7SHA1 (asterisk-11.25.3/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 831ae6442e23cbef1e7d1c84798778ad0b0524d1
8RMD160 (asterisk-11.25.1/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = d52df795201c53fc4cd7d99ed41516e312f6f0f3 8RMD160 (asterisk-11.25.3/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = d52df795201c53fc4cd7d99ed41516e312f6f0f3
9SHA512 (asterisk-11.25.1/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = c7d3c3fd2c854e6776801312d34bf69bbed78a443c16121637f508c5275f18b1d415cbb6e4f6f8c5aa3769cbbfa1a11485b9972053777f3ac39256c2c81729f1 9SHA512 (asterisk-11.25.3/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = c7d3c3fd2c854e6776801312d34bf69bbed78a443c16121637f508c5275f18b1d415cbb6e4f6f8c5aa3769cbbfa1a11485b9972053777f3ac39256c2c81729f1
10Size (asterisk-11.25.1/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 4256538 bytes 10Size (asterisk-11.25.3/asterisk-extra-sounds-en-gsm-1.5.tar.gz) = 4256538 bytes
11SHA1 (patch-Makefile) = 5fd774779d3c8d85936beca8a3407dd3011af2dc 11SHA1 (patch-Makefile) = 5fd774779d3c8d85936beca8a3407dd3011af2dc
12SHA1 (patch-addons_chan__ooh323.c) = 57f61a2edf0f9f022e03837230ee572ec9cf47b4 12SHA1 (patch-addons_chan__ooh323.c) = 57f61a2edf0f9f022e03837230ee572ec9cf47b4
13SHA1 (patch-apps_app__confbridge.c) = c815905994355a19c32e8e3e2eb5dc9f1679eb29 13SHA1 (patch-apps_app__confbridge.c) = c815905994355a19c32e8e3e2eb5dc9f1679eb29
14SHA1 (patch-apps_app__dial.c) = 0f78d2571af88384a2d472ece08bf4b06f9ad211 14SHA1 (patch-apps_app__dial.c) = 0f78d2571af88384a2d472ece08bf4b06f9ad211
15SHA1 (patch-apps_app__dumpchan.c) = f5a5cc776c99875d1c58e60953fb3f4cec27a94f 15SHA1 (patch-apps_app__dumpchan.c) = f5a5cc776c99875d1c58e60953fb3f4cec27a94f
16SHA1 (patch-apps_app__followme.c) = 0b362486e1759099b61d42a9880109c5743fa0bc 16SHA1 (patch-apps_app__followme.c) = 0b362486e1759099b61d42a9880109c5743fa0bc
17SHA1 (patch-apps_app__meetme.c) = 3927b77fac1cd69f58df4e2ec783359ed0135dad 17SHA1 (patch-apps_app__meetme.c) = 3927b77fac1cd69f58df4e2ec783359ed0135dad
18SHA1 (patch-apps_app__osplookup.c) = 692776511b6a970d29db5fdef9d68af2a3ef6e35 18SHA1 (patch-apps_app__osplookup.c) = 692776511b6a970d29db5fdef9d68af2a3ef6e35
19SHA1 (patch-apps_app__queue.c) = ffed7ef3133d924ef7d176a4f30f369bdd245a42 19SHA1 (patch-apps_app__queue.c) = ffed7ef3133d924ef7d176a4f30f369bdd245a42
20SHA1 (patch-apps_app__skel.c) = e661a53b61d36343c54be7ad9ea6cde6cb10f180 20SHA1 (patch-apps_app__skel.c) = e661a53b61d36343c54be7ad9ea6cde6cb10f180
21SHA1 (patch-apps_app__sms.c) = d89b27a9df04d4da98d562241c07d25d182baefc 21SHA1 (patch-apps_app__sms.c) = d89b27a9df04d4da98d562241c07d25d182baefc
22SHA1 (patch-apps_app__voicemail.c) = 692551a10f51729dd23aa304117eccfb3978c1c8 22SHA1 (patch-apps_app__voicemail.c) = 692551a10f51729dd23aa304117eccfb3978c1c8
23SHA1 (patch-apps_confbridge_conf__config__parser.c) = 42d5a6e2ce837111d06fa9154c7f66403cb83553 23SHA1 (patch-apps_confbridge_conf__config__parser.c) = 42d5a6e2ce837111d06fa9154c7f66403cb83553