Bug 76827 - [Maintainer/security] www/squid: fix buffer overflow in WCCP
Summary: [Maintainer/security] www/squid: fix buffer overflow in WCCP
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey Matveychuk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 20:10 UTC by Thomas-Martin Seck
Modified: 2005-01-29 21:50 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (1.26 KB, patch)
2005-01-29 20:10 UTC, Thomas-Martin Seck
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas-Martin Seck 2005-01-29 20:10:19 UTC
Integrate a vendor patch against a buffer overflow in the WCCP handling,
see <http://www.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE7-wccp_buffer_overflow>
and <http://www.squid-cache.org/Advisories/SQUID-2005_3.txt>.

Security Team CC'ed, proposed VuXML data, entry date left to be filled in:

  <vuln vid="23fb5a04-722b-11d9-9e1e-c296ac722cb3">
    <topic>squid -- buffer overflow in WCCP recvfrom() call</topic>
    <affects>
      <package>
	<name>squid</name>
	<range><lt>2.5.7_10</lt></range>
      </package>
    </affects>
    <description>
      <body xmlns="http://www.w3.org/1999/xhtml">
	<p>According to the Squid Proxy Cache Security Update Advisory SQUID-2005:3,</p>
	<blockquote cite="http://www.squid-cache.org/Advisories/SQUID-2005_3.txt">
	  <p>The WCCP recvfrom() call accepts more data than will fit in
	    the allocated buffer.  An attacker may send a larger-than-normal
	    WCCP message to Squid and overflow this buffer.</p>
	  <p>Severity:</p>
	  <p>The bug is important because it allows remote attackers to crash
	    Squid, causing a disription in service.  However, the bug is
	    exploitable only if you have configured Squid to send WCCP messages
	    to, and expect WCCP replies from, a router.</p>
	  <p>Sites that do not use WCCP are not vulnerable.</p>
	</blockquote>
	<p>Note that while the default configuration of the FreeBSD squid port
	  enables WCCP support in general, the default configuration
	  supplied does not actually configure squid to send and receive WCCP
	  messages.</p>
      </body>
    </description>
    <references>
        <url>http://www.squid-cache.org/Advisories/SQUID-2005_3.txt</url>
	<url>http://www.squid-cache.org/Versions/v2/2.5/bugs/#squid-2.5.STABLE7-wccp_buffer_overflow</url>
	<url>http://www.squid-cache.org/bugs/show_bug.cgi?id=1217</url>
    </references>
    <dates>
      <discovery>2005-01-28</discovery>
      <entry></entry>
    </dates>
  </vuln>

Fix: Apply this patch:
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2005-01-29 21:40:10 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sem

Lock
Comment 2 Sergey Matveychuk freebsd_committer freebsd_triage 2005-01-29 21:49:49 UTC
State Changed
From-To: open->closed

Nice work. 
Commited, thanks!