improper use of netfilter MIRROR target can cause DoS

From: Fabian Melzow (biop0bat_private)
Date: Tue Aug 21 2001 - 15:02:08 PDT

  • Next message: Administrator: "Bug in MAS90 Accounting Platform remote access?"

    An improper use of the experimental netfilter MIRROR target,
    can be used to launch a DoS attack against two host, which
    mirror the same protocol on min. one port.
    
    An attacker can spoof packetīs, with this mirrored ports as source and
    destination and an high TTL, 255 for example.
    
    These packetīs are then mirrored on each side, until the TTL reached zero.
    In a LAN without a router there packetīs will never expire. 
    
    We tried this attack over the Internet with one packet, where a TTL of 255
    was set, between Germany and Austria, with the result, that these packet was
    30 times wrapped around.
    
    Evil minds can use this attack to crash these hosts or eat up all the bandwidth,
    just by sending spoofed packets.
    
    Itīs also documented in the Linux kernel help, but you wonīt really think,
    that the TTL is not decremented, if you read there, that the source and
    destination address of the packets is reversed.
    
    
    Here are some possible workarounds:
    
    - Put a TTL decrement rule, for example  
    
       iptables -p all -j TTL --ttl-dec 1
    
      or better, a rule with a higher decrement before the MIRROR rule.
    
    - In addition set a strong limit on the packetīs which are mirrored.
    
    - Apply Michaelīs little netfilter patch to ipt_MIRROR.c,
      which decrements the TTL by one. This patch can also be
      downloaded from
      http://www.unet.univie.ac.at/~a9900470/ipt_MIRROR-ttl.patch
      
    - Don't use the MIRROR target. 
    
    
    
    Fabian Melzow           Michael Bauer
    biop0bat_private           mihiat_private
    
    
    
    

    End of MIME message



    This archive was generated by hypermail 2b30 : Tue Aug 21 2001 - 16:44:59 PDT