Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Exploits-HackingTools
[Top] [All Lists]

[UNIX] Squid Web Proxy Cache Remote DoS

Subject: [UNIX] Squid Web Proxy Cache Remote DoS
Date: 13 Oct 2004 15:23:17 +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.
http://www.securiteam.com/mailinglist.html 

- - - - - - - - -



  Squid Web Proxy Cache Remote DoS
------------------------------------------------------------------------


SUMMARY

 <http://www.squid-cache.org/> Squid Web Proxy Cache is a full-featured 
web proxy cache designed to run on Unix systems. It supports proxying 
HTTP, FTP, SSL, DNS, and has support for SNMP.

Remote exploitation of a design error in the SNMP module of Squid Web 
Proxy Cache may lead to a denial of service.

DETAILS

Vulnerable Systems:
 * Squid Web Proxy Cache version 2.5-STABLE5
 * Squid Web Proxy Cache version 3.0-PRE3-20040702

Immune Systems:
 * Squid-2.5.STABLE7 and newer

CVE Information:
 <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0918> 
CAN-2004-0918

The problem exists due to an ASN1 parsing error where certain header 
length combinations can slip through the validations performed by the ASN1 
parser, eventually causing the server to restart and close all current 
connections. The server takes several seconds to restart.

The offending code is in the asn_parse_header() routine of snmplib/asn1.c, 
which under some cases will allow negative length fields to pass 
validation. This leads to a failed xmalloc(), and the server then assumes 
there is heap corruption or some other exceptional condition, and 
restarts.

An attacker can exploit the above-described vulnerability to crash a Squid 
server. If the attack is repeated, it can render the server useless. Only 
a single UDP packet is required to trigger this vulnerability, so the 
source address can be spoofed.

To find if a Squid binary is compiled with SNMP support one can run:
    grep snmp_port /usr/local/squid/sbin/squid

Workaround
 * Disable SNMP support or filter the port that has SNMP processing 
activated (3401 by default) to allow only SNMP data from trusted hosts.
 * To disable SNMP support on a squid binary that has SNMP support 
compiled in, use the entry snmp_port 0 in the squid.conf configuration 
file.
 * To allow only the local interface to process SNMP, use the entry 
"snmp_incoming_address 127.0.0.1" in the squid.conf configuration file.

Vendor Status:
The vendor has supplied a patch for Squid which fix the problem.

Patch relative to Squid-2.5.STABLE6 can be obtained from  
<http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE6-SNMP_core_dump.patch>
 
http://www.squid-cache.org/Versions/v2/2.5/bugs/squid-2.5.STABLE6-SNMP_core_dump.patch

Otherwise, the newer STABLE7 release is immune to this problem and users 
are highly advised to switch to the newer version.

Disclosure Timeline:
09/15/2004 Initial vendor notification
09/15/2004 iDEFENSE clients notified
09/15/2004 Initial vendor response
10/05/2004 Coordinated public disclosure


ADDITIONAL INFORMATION

The information has been provided by  
<mailto:idlabs-advisories@idefense.com> iDEFENSE Security Labs.
The original article can be found at:  
<http://www.idefense.com/application/poi/display?id=152&type=vulnerabilities> 
http://www.idefense.com/application/poi/display?id=152&type=vulnerabilities



======================================== 


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: 
list-unsubscribe@securiteam.com 
In order to subscribe to the mailing list, simply forward this email to: 
list-subscribe@securiteam.com 


==================== 
==================== 

DISCLAIMER: 
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. 




<Prev in Thread] Current Thread [Next in Thread>
  • [UNIX] Squid Web Proxy Cache Remote DoS, SecuriTeam <=