I have just released GNU Gatekeeper version 5.18. This is another security
update and you are urged to please update as soon as possible.
Download from https://www.gnugk.org/h323download.html
This release contains about 70 bug fixes, most of them found by Anthropics OSS-Scanner. Almost all of the bugs are security related, some critical.
This release changes the default for [RoutedMode] EnableT120= to 0.
If you really still use T.120, you must explicitly set it to 1.
Some existing feature now have timeouts and you can configure them with these new settings:
- new switch [Gatekeeper::Main] MaxRIPDelay=, default 10 s)
- add Timeout= switch to HttpPasswordAuth, Routing::Http and HttpAcct
- new switch [Gatekeeper::Main] MaxWorkerThreads= (default: 3000)
- new switch [AMQPAcct] Timeout= (default: 5 s)
- document the [Proxy] switches RTPInactivityCheck, RTPInactivityTimeout and RTPInactivityCheckSession
- apply ReadTimeout= and ConnectTimeout= to PostgreSQL and Firebird queries and connects
This new version also drops calls when a configured Auth or Acct rules isn't available, eg. not compiled in.
Additionally, you should disable unused features in GnuGk to reduce your attack surface. For example, only enable H.460.17, H.460.23, H.460.24 and H.460.26 or T.120 if you really use them (which 99% of users don't).
Changes from 5.17 to 5.18
=========================
- changed default: [RoutedMode] EnableT120= now defaults to off
- new switch [AMQPAcct] Timeout= (default: 5 s)
- new switch [Gatekeeper::Main] MaxRIPDelay=, default 10 s)
- add Timeout= switch to HttpPasswordAuth, Routing::Http and HttpAcct
- new switch [Gatekeeper::Main] MaxWorkerThreads= (default: 3000)
- document the [Proxy] switches RTPInactivityCheck, RTPInactivityTimeout and RTPInactivityCheckSession
- apply ReadTimeout= and ConnectTimeout= to PostgreSQL and Firebird queries and connects
- drop calls when a configured Auth or Acct rules isn't available, eg. not compiled in
- performance improvement in UrlEscapeParams() whith long alias lists
- BUGFIX(GkClient.*) protect m_natClient with a mutex in GkClient, fix crash
- BUGFIX(RasTbl.*,SoftPBX.cxx,ProxyChannel.cxx) fix crash in SendProceeding while routing unregistered call
- BUGFIX(MakeCall.*,SoftPBX.cxx) fix crash when the registration of the MakeCall endpoint fails
- BUGFIX(GkClient.cxx) protect the list of alternate gatekeepers of the parent with a mutex
- BUGFIX(*) make sure user names for [GkStatus::Auth] must use the correct capitalization as entered in addpasswd
[SimplePasswordAuth] IDs follow CompareAliasCase=
- BUGFIX(Routing.cxx) ENUM policy used the first alias instead of the converted one to check the gateway destination
- BUGFIX(ProxyChannel.cxx,GkClient.cxx) let EnableGnuGkNATTraversal=0 ignore all leftovers from old GnuGk NAT traversal
- BUGFIX(ProxyChannel.cxx) Keep the TCP keep-alive timer of a TLSCallSignalSocket stopped until its TLS handshake
is done and stop it before SSL_free()
- BUGFIX(GkStatus.cxx) don't accept the names of [GkStatus::Auth] switches (eg. RSAKey) as status port user names
- BUGFIX(RasTbl.cxx) add missing lock for PrintEndpointQoS (status port command)
- BUGFIX(sqlauth.cxx,radauth.cxx) fix crash when SQLAuth or RadAuth add more than 128 aliases
- BUGFIX(ProxyChannel.cxx) fix crash when H.460.17 connection ends while it is being rerouted
- BUGFIX(gksql_mysql.cxx) set the character set of the MySQL session after connecting (SET NAMES)
- BUGFIX(lua.cxx) limit the size of the message text LuaAuth passes to the scripts,
reject RRQ, ARQ and Setup messages with a longer text (256 KB)
- BUGFIX(RasSrv.cxx) use TLS to pick up H.460.18 calls from a traversal zone neighbor with UseTLS=1
or H.460.22 in the SCI, honor UseTLS=1 for calls from the parent
- BUGFIX(gksql_firebird.cxx) fix leak in Firebird driver
- BUGFIX(RasTbl.*,ProxyChannel.cxx) better clean up and CDR for calls terminated by RTPInactivityCheck
- BUGFIX(Routing.*,Neighbor.cxx) limit time and number of DNS lookups the dns, srv, rds and enum policies do
- BUGFIX(ProxyChannel.*) fix H.460.17 socket leak
- BUGFIX(Neighbor.cxx) fix hop count to CiscoGk neighbors
- BUGFIX(amqpacct.cxx) don't block GnuGk when the AMQP server stops responding
- BUGFIX(ProxyChannel.cxx) if a Setup doesn't have callIdentifier, we assign one so we never have loops
- BUGFIX(RasTbl.*) conserve memory by storing the encoded RRQ instead of the decoded RRQ in the endpoint record
- BUGFIX(RasSrv.cxx) make sure all H.460.18 features get disabled when an endpoint is configured as [EP::alias] DisableH46018=1
- BUGFIX(ProxyChannel.cxx) fix crash on failover
- BUGFIX(RasTbl.cxx) fix crash in gateway prefix search
- BUGFIX(RasSrv.cxx) fix crash in ParseRTCP()
- BUGFIX(RasSrv.cxx,RasTbl.cxx,Toolkit.cxx) fix crash when an URQ removes all aliases
- BUGFIX(Toolkit.*) fix crash in the GWRewriteE164
- BUGFIX(GkClient.cxx) don't send an empty gatekeeperIdentifier in ARQ, DRQ and URQ to the parent
- BUGFIX(ProxyChannel.*) fix crash in H.245 tunneling translation, when the call is hung up while queued H.245 messages are sent
- BUGFIX(RasTbl.cxx) fix crash in H.460.24
- BUGFIX(ProxyChannel.cxx) fix crash sending startH245 Facility with H.245 multiplexing when the remote party has already hung up
- BUGFIX(ProxyChannel.cxx) fix crash in OnFacility() when using H.460.18
- BUGFIX(ProxyChannel.cxx) EnableT120=0 also removes T.120 from tunneled H.245 and fastStart, also reject encrypted T.120
- BUGFIX(ProxyChannel.cxx) fix rewriting OLCs when proxying T.120
- BUGFIX(ProxyChannel.cxx) never open a H.245 or T.120 connection to our own status port
- BUGFIX(RasSrv.cxx) only accept the forwarded RAS flag from alternate gatekeepers (SendTo= / SkipForwards=)
- BUGFIX(RasSrv.cxx) only answer a forwarded RRJ with a full RRQ if the reject reason is fullRegistrationRequired (avoid RRQ/RRJ loop)
- BUGFIX(Neighbor.cxx) only accept LCF/LRJ/RIP from the neighbor's IP unless AcceptNonNeighborLCF=1 is set
- BUGFIX(*) fix H.235 authenticator crash with concurrent RRQs
- BUGFIX(RasTbl.cxx) fix use-after-free of H.235 authenticator object when an endpoint re-registers while other RAS messages are being processed
- BUGFIX(ProxyChannel.cxx) fix crash when H.460.17 endpoint calls itself
- BUGFIX(ProxyChannel.cxx) fix use-after-free in H.245 channel
- BUGFIX(Toolkit.cxx) fix infinite loop in RewriteSourceAddress
- BUGFIX(gksql_mysql.cxx) check the result of mysql_real_escape_string() and
prefer mysql_real_escape_string_quote() so NO_BACKSLASH_ESCAPES sessions are escaped
- BUGFIX(MakeCall.*) veto H.450.2 transfers of the pseudo endpoint and refuse incoming Setups
- BUGFIX(ProxyChannel.cxx,RasSrv.cxx) fix encoding some RAS messages > 1024 bytes
- BUGFIX(Neighbor.*) validate which SCI from a neighbor we accept
- BUGFIX(GkStatus.cxx) fix counting of status port clients
- BUGFIX(ProxyChannel.cxx) fix crash on Avaya Setup
- BUGFIX(ProxyChannel.cxx) stop H.460.19 keep-alive timers when a logical channel stops early
- BUGFIX(ProxyChannel.cxx) reject Setup calling a different destination than the admitted ARQ
- BUGFIX(sqlauth.cxx) reject calls with an invalid credittime
- BUGFIX(MakeCall.*) fix crash in MakeCall
- BUGFIX(RasTbl.*) make sure signalling connection gets terminatd when endpoint only sends DRQ during a call
- BUGFIX(RasSrv.cxx) check tokens in URQ when configured
- BUGFIX(GkStatus.cxx) fix UnregisterEP status port command