[UNIX] Squid Web Proxy Cache NTLM Authentication Helper Buffer Overflow Vulnerability
From: SecuriTeam (support_at_securiteam.com)
To: firstname.lastname@example.org Date: 10 Jun 2004 11:14:21 +0200
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.
- - - - - - - - -
Squid Web Proxy Cache NTLM Authentication Helper Buffer Overflow
<http://www.squid-cache.org> Squid is "a fully-featured Web Proxy Cache
designed to run on UNIX systems and supports proxying and caching of HTTP,
FTP, and other URLs, as well as SSL support, cache hierarchies,
transparent caching, access control lists and many other features". Remote
exploitation of a buffer overflow vulnerability in Squid Web Proxy Cache
could allow a remote attacker to execute arbitrary code.
* Squid-Proxy 2.5.*-STABLE and 3.*-PRE when Squid-Proxy is compiled with
the NTLM helper enabled.
Squid Web Proxy Cache supports Basic, Digest and NTLM authentication. The
vulnerability specifically exists within the NTLM authentication helper
routine, ntlm_check_auth(), located in helpers/ntlm_auth/SMB/libntlmssp.c:
char *ntlm_check_auth(ntlm_authenticate * auth, int auth_length)
char pass /*, encrypted_pass */;
char *domain = credentials;
memcpy(pass, tmp.str, tmp.l);
The function contains a buffer overflow vulnerability due to a lack of
bounds checking on the values copied to the 'pass' variable. Both the
'tmp.str' and 'tmp.l' variables used in the memcpy() call contain
A remote attacker can compromise a target system if Squid Proxy is
configured to use the NTLM authentication helper. The attacker can send an
overly long password to overflow the buffer and execute arbitrary code.
Recompile Squid-Proxy with NTLM handlers disabled.
A patch for this issue is available at:
04/27/04 Exploit acquired by iDEFENSE
05/19/04 iDEFENSE Clients notified
05/20/04 Initial vendor notification
05/20/04 Initial vendor response
06/08/04 Public Disclosure
The information has been provided by
The original article can be found at:
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: email@example.com
In order to subscribe to the mailing list, simply forward this email to: firstname.lastname@example.org
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.