6791 : Squid NTLM Authentication Helper Overflow
Printer | http://osvdb.org/6791 | Email This | Edit Vulnerability

Views This Week

8

Views All Time

541

Info

Last Modified

about 1 year ago

Percent Complete

100%

Disclosure

Jun 08, 2004

Discovery

Jun 09, 2004

Dates

Exploit

Jun 09, 2004

Solution

Unknown

Keywords

lmhash,base64

Description

A remote overflow exists in the Squid Internet Object Cache server. Squid fails to correctly test the length of the user-supplied LanMan Hash value in the ntlm_check_auth() function resulting in a stack-based buffer overflow. With a specially crafted request, an attacker can execute arbitrary code on the system with the privileges the Squid process is running under. This flaw can only be exploited if Squid was compiled with the NTLM authentication helper enabled.

Classification

Location: Remote/Network Access Required
Attack Type: Input Manipulation
Impact: Loss of Integrity
Exploit: Exploit Available
Disclosure: OSVDB Verified

Technical

The problem exists in the ntlm_check_auth() function, located in the helpers/ntlm_auth/SMB/libntlmssp.c file. The "pass" buffer is located on the stack with a static size of 25 bytes. User-controlled data is copied to the "pass" buffer without any bounds checking via memcpy, leading to a standard stack-based buffer overflow and remote code execution.

Solution

A patch has been released for this vulnerability available from the Squid website. Additionally, Squid can be recompiled to disable NTLM authentication.

Products

University of California San Diego
Watch-list
Squid Internet Object Cache
Watch-list
2.5-STABLE5
3.0-PRE3-230040720

References

Tools & Filters

Nessus

12294 12504 12616 13717 13718 13832 14158 14524

Snort

12362

Credit

  • Anonymous - SEC Consult

Blogs

None found at this time

Comments

No Comments.

DONATE NOW!

User Status

Quick Searches

Advertisements

The database information may change without any notice. Use of the information constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the copyright holder or distributor (OSVDB or OSF) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

© Copyright 2008 Open Source Vulnerability Database (OSVDB), All Rights Reserved.
Privacy Statement - Terms of Use