SecurityTracker.com
Keep Track of the Latest Vulnerabilities
with SecurityTracker!
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 
Sign Up
Sign Up for Your FREE Weekly SecurityTracker E-mail Alert Summary
Instant Alerts
Buy our Premium Vulnerability Notification Service to receive customized, instant alerts
Affiliates
Put SecurityTracker Vulnerability Alerts on Your Web Site -- It's Free!
Partners
Become a Partner and License Our Database or Notification Service
Report a Bug
Report a vulnerability that you have found to SecurityTracker
bugs
@
securitytracker.com






Category:   Application (Firewall)  >   IP Filter Vendors:   Reed, Darren
(FreeBSD Issues Fix) Re: IP Filter Firewall Software May Let Unauthorized Packets Through the Firewall
SecurityTracker Alert ID:  1001327
SecurityTracker URL:  http://securitytracker.com/id/1001327
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  Apr 17 2001
Impact:   Host/resource access via network
Fix Available:  Yes  
Version(s): up to and including 3.3.21 and 3.4.16
Description:   It is reported that a serious vulnerability exists in the IP Filter firewall software. When the firewall is using "fragment caching", a remote user can send nearly any packet through the firewall.

According to the vendor, when the firewall is matching a packet fragment, only srcip, dstip and IP ID# are checked and the fragment cache is checked *before* any firewall rules are checked. If all fragments are blocked with a firewall rule, fragment cache entries can still be created by packets that match current firewall state information.

Impact:   A remote user can send unauthorized packets through the firewall (if the firewall uses fragment caching).
Solution:   FreeBSD has issued a fix. See the source message for details.
Vendor URL:  coombs.anu.edu.au/ipfilter/ip-filter.html (Links to External Site)
Cause:   State error
Underlying OS:   UNIX (FreeBSD)

Message History:   This archive entry is a follow-up to the message listed below.
Apr 6 2001 IP Filter Firewall Software May Let Unauthorized Packets Through the Firewall



 Source Message Contents

Date:  Mon, 16 Apr 2001 12:37:22 -0700 (PDT)
Subject:  FreeBSD Security Advisory FreeBSD-SA-01:32.ipfilter


-----BEGIN PGP SIGNED MESSAGE-----

=============================================================================
FreeBSD-SA-01:32                                           Security Advisory
                                                                FreeBSD, Inc.

Topic:          IPFilter may incorrectly pass packets

Category:       core
Module:         IPFilter
Announced:      2001-04-16
Credits:        Thomas Lopatic <thomas@lopatic.de>
Affects:        FreeBSD 3.x (all releases), FreeBSD 4.x (all releases),
                FreeBSD 3.5-STABLE, and 4.2-STABLE prior to the
                correction date.
Corrected:      2001-04-07 (FreeBSD 4.2-STABLE)
Vendor status:  Corrected
FreeBSD only:   NO

I.   Background

IPFilter is a multi-platform packet filtering package.

II.  Problem Description

When matching a packet fragment, insufficient checks were performed
to ensure the fragment is valid.  In addition, the fragment cache is
checked before any rules are checked.  Even if all fragments are
blocked with a rule, fragment cache entries can be created by
packets that match currently held state information.  Because of
these discrepancies, certain packets may bypass filtering rules.

All versions of FreeBSD prior to the correction date, including
FreeBSD 3.5.1 and 4.2, contain this problem.  The base system that
will ship with FreeBSD 4.3 does not contain this problem since it
was corrected during the beta cycle before the release.

III. Impact

Malicious remote users may be able to bypass filtering rules, allowing
them to potentially circumvent the firewall.

IPFilter is not enabled by default.  If you have not enabled IPFilter,
your system is not vulnerable to this problem.

IV.  Workaround

Since fragment cache matching occurs before filtering rules checking,
it is not possible to work around this problem using IPFilter rules.

V.   Solution

[FreeBSD 3.x]

Due to the age of the IPFilter package shipped with FreeBSD 3.x, it
is recommended that FreeBSD 3.x systems update to IPFilter 3.4.17
using the package available from the authors website:
http://coombs.anu.edu.au/~avalon/ip-filter.html

[FreeBSD 4.x]

One of the following:

1) Upgrade to FreeBSD 4.2-STABLE after the correction date.

2) Download the patch and detached PGP signature from the following
location:

The following patch applies to FreeBSD 4.1-RELEASE through 4.2-STABLE.

# fetch ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-01:33/ipfilter.patch
# fetch ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-01:33/ipfilter.patch.asc

Verify the detached signature using your PGP utility.

Issue the following commands as root:

# cd /usr/src
# patch -p < /path/to/patch

If the system is using ipfilter as a kernel module, the module may be
rebuilt and installed and ipfilter rules reloaded with the following
commands:

# cd /usr/src/sys/modules/ipfilter
# make all install
# kldunload ipl && kldload ipf && ipf -Fa -f /etc/ipf.rules

Otherwise, if ipfilter is compiled into the kernel, a new kernel will
need to be compiled and installed and the system will have to be
rebooted for the changes to take effect.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iQCVAwUBOttI71UuHi5z0oilAQHKwwP8CfuhsJA8z78zOJCLSGWPAJSgsi9aFvP7
oVd4eKkVHgHI5hC5QTRgOGg84KncXUu7DJjlOlZ+6nVxcxdp4DED/yRTWjqc14og
guP3SBAcJwH5y44ZW/VV+LlbNJue77Igkq1u3dran6TPBMdiUeRIRsj0acn6k1nc
ATwy7N0Ade8=
=Wujh
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message

 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

Copyright 2013, SecurityGlobal.net LLC