🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.security.misc
Article #1140

Re: Distinguishing Attempted Denial of Service Attack (DoS) or non-DoS Network Problems - With Apache/Webserver? (plus Non resol...

#1140
From: Marc Slemko
Date: Thu, 12 Nov 1998 00:00
51 lines
3197 bytes
In <l.cranswick.209.01C47D5D@dl.ac.uk> l.cranswick@dl.ac.uk (Lachlan Cranswick) writes:



>(There was a previous security article about non-resolving IP addresses.
>This may or may not be related?).

>Are there tools or methods available for Web-serving/Apache/UNIX that 
>can help distinguishing between network misconfigs/slowness/nuances 
>vs attempted Denial of Services Attacks on the Web-server port?

>I have some very wierd behaviour on the Apache 1.3.3 webserver
>for SGI O2 running IRIX 6.3 - with DNS resolution enabled inside
>the webserver.

>An occassional occurance for me is to see the Apache 1.3.3 
>server-status screen gives "Client" names of ????    
>"Vhost" of ????? and "Request" of "reading...  with very "bursty" 
>start/stop speeds.  (1/2th to 1/20th of normal average throughput
>from web-server to a local client PC when this is happening).  
>Nothing obvious in the default apache logs.

How many of them?  What percent of total connections were the "????"
ones? What is happening in that case is a client is connecting and
not making a request, but still tying up a child process.  A type of
DoS attack is possible by simply opening more and more connections 
until there are no more child processes.

A netstat -n | grep ESTABLISHED  should show the current connections,
look for one remote IP with a lot of them.

Symptoms of this include a lot of the ???? entries in the scoreboard,
plus very long times until a response is started, but once a response
is started it should be at around normal speed.

Future versions of Apache should have a directive to let you tune
the maximum number of connections that any single remote IP can have
open at a single time.

Note that this could also be caused by a broken client.  A random
NT box tried to make 10000 simultaneous connections to one of our
web sites a while ago.  The admin says he couldn't see anything odd
on the box.

[...]

>TCPDUMP of 151.104.78.243 hitting the http port:
>************************************************************
>16:43:20.314048 sv1.http > 151.104.78.243.4873: FP 5841:6006(165) ack 160 win 61320 (DF)

Don't see anything too unusual there offhand.
Technical Details
Message-ID: <72doll$k2s$1@supernews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <l.cranswick.209.01C47D5D@dl.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10952f,56bc51684084cbe5
X-Google-Attributes: gid10952f,public
X-Google-Thread: ff723,56bc51684084cbe5
X-Google-Attributes: gidff723,public
X-Google-Thread: 1133d0,56bc51684084cbe5
X-Google-Attributes: gid1133d0,public
X-Google-Thread: f8b34,56bc51684084cbe5
X-Google-Attributes: gidf8b34,public
From: Marc Slemko <marcs@znep.com>
Subject: Re: Distinguishing Attempted Denial of Service Attack (DoS) or non-DoS Network Problems - With Apache/Webserver? (plus Non resolving IP Addresses)
Date: 1998/11/12
Message-ID: <72doll$k2s$1@supernews.com>
X-Deja-AN: 410970710
References: <l.cranswick.209.01C47D5D@dl.ac.uk>
X-Complaints-To: newsabuse@supernews.com
X-Trace: 910845429 Y5K4EAU9W5402C6A1C usenet80.supernews.com
Organization: Posted via Supernews, http://www.supernews.com - Discussions start here!
Newsgroups: comp.security.misc,cern.security.unix,comp.security.unix,comp.infosystems.www.servers.unix