News for hackers. Stuff that matters.
Re:New slow-motion DoS attack: just a few PCs, little fear o... by x86dev on Saturday January 07, 2012 @08:04AM (#3436917)
This isn't really new as others have said. Maybe someone publicly released a tool to do this finally.

but basically how this works:

You have a malicious client figure out a transaction(s) that are easy for the client to request, but difficult for the server to fulfill (ideally).

The client initiates the TCP connection.

Three way handshake happens.

Client sends in the whole request.

Client immediately sends in a tcp window update with a very small or zero window size.

The server processes the entire request and goes to send it.

The server's TCP stack says "Oops, I need to send to that client but he has a small or zero window size. I can only send packets of X size, or I can't send at all. This data is going to sit in my TCP Send Buffer until I can send it".

Two things happen here. The TCP send buffer is full (taking up memory) and 2, if the amount of data needed to be sent > TCP Send Buffer size, you now have a Server thread blocked trying to send the data.

The client delays for some amount of time and then sends another TCP window update "Hey, I can take X bytes of data now".

The server sends X bytes of data.

The client can now play a game of sending random small window sizes and or zero windows to essentially slow the connection to a crawl and consume resources on the server side.

Edit: Formatting

Re:New slow-motion DoS attack: just a few PCs, little fear o... by wiradikusuma on Saturday January 07, 2012 @08:29AM (#3436955)
Is there any tool to simulate this attack (and other common attacks), so I can hit my own server and tweak it until it's bullet proof?
Re:New slow-motion DoS attack: just a few PCs, little fear o... by zokier on Saturday January 07, 2012 @08:49AM (#3436982)
TFA mentions slowhttptest: http://code.google.com/p/slowhttptest/
Re:New slow-motion DoS attack: just a few PCs, little fear o... by bch on Saturday January 07, 2012 @05:39AM (#3436762)
This sounds coceptually identical to any number of tarpits, like "labrea", for example. That was produced by Tom Piston et. al in 2001. This isn't really new.

[edit: links -- http://labrea.sourceforge.net/labrea-info.html, http://en.wikipedia.org/wiki/Tarpit_%28networking%29]

Re:New slow-motion DoS attack: just a few PCs, little fear o... by fijal on Saturday January 07, 2012 @04:55AM (#3436701)
Sounds like just a lot of people on GPRS accessing a website :)
Re:New slow-motion DoS attack: just a few PCs, little fear o... by derleth on Saturday January 07, 2012 @07:00AM (#3436846)
Precisely. If you get too aggressive with combating this, you're locking out everyone whose machine or connection isn't up to some arbitrary technical standard. You might decide that dial-up no longer matters to you, but what about mobile?
Re:New slow-motion DoS attack: just a few PCs, little fear o... by wisty on Saturday January 07, 2012 @11:37AM (#3437321)
You can combat this a little with good architecture, by making sure the attacks won't stack.

One part of the attack is finding a difficult-to-serve request. The other part is being very slow at receiving the response, keeping the request alive. The impact is multiplied if you keep dozens exceptionally high-memory processess alive while the clients slowly the response that those processors generated.

If you have the right architecture, it won't matter if the difficult-to-serve request takes a long time to send - you backend processes it, sends the response to your web server, and frees the resources (not holding resources until the client is happy).

Re:New slow-motion DoS attack: just a few PCs, little fear o... by joshu on Sunday January 08, 2012 @04:14AM (#3439223)
It's a good idea to make sure this happens anyway.
Re:New slow-motion DoS attack: just a few PCs, little fear o... by fijal on Saturday January 07, 2012 @08:00AM (#3436909)
my connection is sometimes below any arbitrary technical standard and I still want to get my bytes through if possible.
Re:New slow-motion DoS attack: just a few PCs, little fear o... by sarnowski on Saturday January 07, 2012 @10:36AM (#3437198)
This remembers me of the really cool spamd application from OpenBSD just the other way around: "When a sending host talks to spamd, the reply will be stuttered. That is, the response will be sent back a character at a time, slowly."

http://www.openbsd.org/cgi-bin/man.cgi?query=spamd&aprop...

Re:New slow-motion DoS attack: just a few PCs, little fear o... by ww520 on Saturday January 07, 2012 @01:00PM (#3437564)
Combined with a per ip connection limit, async-IO style server like Node.js would alleviate the problem somehow by using smaller amount of memory per connection.