Squid 5.1 arrives after three years of development and these are its novelties

After three years of development, the new stable version of the Squid proxy server, 5.1, has been released and is ready for use in production systems (versions 5.0.x were beta).

After the 5.x branch reaches a stable state, from now on only fixes for vulnerabilities and stability issues will be implemented , along with minor optimizations. New feature development will take place in the new experimental 6.0 branch. Users of the previous stable 4.x branch are encouraged to plan a migration to the 5.x branch.

Squid 5.1 Main New Features

In this new version, compatibility with the Berkeley DB format has been deprecated due to licensing issues . The Berkeley DB 5.x branch has not been maintained for several years and still has unpatched vulnerabilities, and upgrading to newer versions does not allow changing the AGPLv3 license, whose requirements also apply to applications that use Berkeley DB as a library. Squid is released under the GPLv2 license, and AGPL is incompatible with GPLv2.

Instead of Berkeley DB, the project migrated to use TrivialDB DBMS, which, unlike Berkeley DB, is optimized for simultaneous parallel access to the database. Berkeley DB support is maintained for now, but it is now recommended to use the storage type "libtdb" instead of "libdb" in the "ext_session_acl" and "ext_time_quota_acl" handlers.

In addition, support was added for the HTTP CDN-Loop header, defined in RFC 8586, which allows detecting loops when using content delivery networks (the header provides protection against situations in which a request, during the redirection between CDNs for some reason , returns to the original CDN, forming an infinite loop).

Furthermore, the SSL-Bump mechanism, which allows intercepting the content of encrypted HTTPS sessions, has added support for redirecting forged HTTPS requests through other proxy servers specified in cache_peer using a regular tunnel based on the HTTP CONNECT method (transmission over HTTPS is not supported, as Squid cannot yet transmit TLS within TLS).

SSL-Bump, upon receiving the first intercepted HTTPS request, establishes a TLS connection with the target server and obtains its certificate. Squid then uses the hostname of the real certificate received from the server to create a fake certificate, which it uses to impersonate the requested server when interacting with the client , while continuing to use the established TLS connection with the target server to receive data.

It is also worth noting that the implementation of the ICAP (Internet Content Adaptation Protocol), which is used for integration with external content verification systems, has added support for the data attachment mechanism that allows additional metadata headers to be attached to the response, placed after the message body.

Instead of taking into account the "dns_v4_first»To determine the order of use of the IPv4 or IPv6 address family, now the order of the response in DNS is taken into account- If the AAAA response from DNS appears first while waiting for an IP address to resolve, the resulting IPv6 address will be used. Therefore, the preferred address family setting is now done in the firewall, DNS, or at startup with the "–disable-ipv6" option.
The proposed change will speed up the time to configure TCP connections and reduce the performance impact of delays in DNS resolution.

When redirecting requests, the "Happy Eyeballs" algorithm is used, which immediately uses the received IP address, without waiting for all potentially available destination IPv4 and IPv6 addresses to be resolved.

For use in the "external_acl" directive, the "ext_kerberos_sid_group_acl" driver has been added for authentication with verification groups in Active Directory using Kerberos. The ldapsearch utility provided by the OpenLDAP package is used to query the group name.

Added mark_client_connection and mark_client_pack directives to bind Netfilter (CONNMARK) tags to individual packets or client TCP connections

Finally, it is mentioned that, following the steps of the published versions of Squid 5.2 and Squid 4.17, the following vulnerabilities were corrected:

  • CVE-2021-28116 - Information leak when processing specially crafted WCCPv2 messages. The vulnerability allows an attacker to corrupt the list of known WCCP routers and redirect traffic from the proxy client to its host. The problem manifests itself only in configurations with WCCPv2 support enabled and when it is possible to spoof the router's IP address.
  • CVE-2021-41611: error validating TLS certificates that allow access using untrusted certificates.

Finally, if you want to know more about it, you can check the details at the following link.


Add as preferred source in Google