Re: Proposed RST patch

From: Don Lewis (truckman_at_FreeBSD.org)
Date: 04/24/04

  • Next message: Mike Silbersack: "Re: Proposed RST patch"
    Date: Fri, 23 Apr 2004 22:00:05 -0700 (PDT)
    To: silby@silby.com
    
    

    On 23 Apr, Mike Silbersack wrote:
    >
    > Here's my proposed patch to change RST handling so that ESTABLISHED
    > connections are subject to strict RST checking, but connections in other
    > states are only subject to the "within the window" check. Part 2 of the
    > patch is simply a patch to netstat so that it displays the statistic.
    >
    > As expected, it's very straightforward, the only real question is what to
    > call the statistic... "Ignored RSTs in the window" isn't the best
    > description.
    >
    > FWIW, I've been testing with the exploit code
    > (reset-tcp-rfc31337-compliant.c from osvdb-4030-exploit.zip), and this
    > change does indeed defeat the attack. It took me a while to get the code
    > working, they really munged up the libnet calls, but I guess that was the
    > intent.

    > + if (tp->last_ack_sent != th->th_seq) {

    I'd reverse the operand order here to match the operand order of the
    enclosing "if" block. Other than that tiny nit, this looks fine.

    What is our status with regards to the spoofed SYN version of the
    attack?

    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"


  • Next message: Mike Silbersack: "Re: Proposed RST patch"

    Relevant Pages

    • Proposed RST patch
      ... Here's my proposed patch to change RST handling so that ESTABLISHED ... connections are subject to strict RST checking, ...
      (FreeBSD-Security)
    • Re: [Fwd: Re: 3 connections as one]
      ... Another option has been added to natd, a number wich can be set from 0 to ... 100 to determine the use of the second alias address. ... So when a connection has to be established for the first time, the patch use ... So natd is generating new connections in two diferent IPs (for two diferent ...
      (freebsd-hackers)
    • Re: [patch] voluntary-preempt-2.6.9-rc2-mm3-S5
      ... >>dropping new connections and doesn't have any adverse affects that ... S4 patch and it had the same change in it, but did not exhibit the same ... looking for obvious changes that might affect dropping tcp connections ...
      (Linux-Kernel)
    • [Full-Disclosure] The remote Openssh User-Level-Denial-Of-Service
      ... A flawless into connections management and keys handshake was discovered into ... OpenSSH 3.8p1 ... user can open MAX connections to the server's daemon, ... Apply the patch or wait for an official patch from openssh. ...
      (Full-Disclosure)
    • Multipath routing changes? "[kernel] Badness in dst_release at include/net/dst.h:154"
      ... This is regarding an external patch to enable routing over multiple network ... Internet connections. ...
      (Linux-Kernel)