RE: Possible IDS-evasion technique

From: Gary Golomb (gee_two@yahoo.com)
Date: 02/15/02


Date: Fri, 15 Feb 2002 12:54:50 -0800 (PST)
From: Gary Golomb <gee_two@yahoo.com>
To: vuln-dev@securityfocus.com


Hi there all...

Probably just problem with the way RealSecure is/was (I'm sure this doesn't happen in newer
versions) looking for that particular string. I would imagine they are not making decisions based
on user-supplied HTTP versions. (Then again, this is begins to tread on the 'ol debate of how
protocol decoding should be used in ID. False Positives vs. False Negatives and the inverse
relationship between reducing one and increasing the other...) Not the point of this
thread or list though, so I'll shut-up there before the holy war freedom fighters get all
excited...

Could the second two tests not trigger the same event the first two do (but still trigger a event
that is not configured to send resets?). Just a thought - I'm not familar with RealSecure...

Anyway, verified with Dragon:

[g@none ]# nc 10.100.100.111 80
GET /cgi-bin/phf HTTP/0.9
 
HTTP/1.1 404 Not Found
Date: Fri, 15 Feb 2002 20:02:38 GMT
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 PHP/4.0.4pl1
mod_perl/1.24_01
Connection: close
Content-Type: text/html; charset=iso-8859-1

and,

[g@none ]# nc 10.100.100.111 80
GET /cgi-bin/phf HTTP/12.0

HTTP/1.1 400 Bad Request
Date: Fri, 15 Feb 2002 20:21:48 GMT
Server: Apache/1.3.19 (Unix) (Red-Hat/Linux) mod_ssl/2.8.1 OpenSSL/0.9.6 DAV/1.0.2 PHP/4.0.4pl1
mod_perl/1.24_01
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

[g@none ]# /usr/dragon/tools/mklog -e WEB:CGI-PHF -l -f /usr/dragon/DB/2002Feb15/dragon.db

                                                                      
15:33:36 [T] x.x.x.x 10.100.100.111 [WEB:CGI-PHF] (tcp,dp=80,sp=32895) (test1-nids)
15:52:46 [T] x.x.x.x 10.100.100.111 [WEB:CGI-PHF] (tcp,dp=80,sp=32951) (test1-nids)

-----Original Message-----
From: Alla Bezroutchko
To: vuln-dev@securityfocus.com
Sent: 2/15/02 12:20 PM
Subject: Possible IDS-evasion technique

I've accidently found a way to bypass IDS detection for HTTP
requests. I've seen this behaviour on some older version of
IIS RealSecure network IDS and I wonder if this works on any
other IDSes.

That particular IDS was set up to reset connections that match
attack signatures, so I could see immediately if it was detected
or not:

Request:
GET /cgi-bin/phf HTTP/1.0
Connection reset

Request:
GET /cgi-bin/phf
Connection reset

Request:
GET /cgi-bin/phf HTTP/12.0
Connection not reset, HTTP server replies "version not supported"

Request:
GET /cgi-bin/phf HTTP/0.9
Connection not reset, HTTP server replies "file not found"

Apparently the last form of request allows to get a meaningful
reply from HTTP server while IDS does not mind it.

Apache and Netscape Entriprise will happily reply to the last
form of request, didn't try it on other web servers.

Alla.

__________________________________________________
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail
http://mail.yahoo.com



Relevant Pages

  • Possible IDS-evasion technique
    ... That particular IDS was set up to reset connections that match ... Request: ... Connection reset ... HTTP server replies "version not supported" ...
    (Vuln-Dev)
  • Re: Anonymous Anonymity - Request For Comments
    ... > and request that you reply directly to my e-mail address. ... > for the entity wishing to preserve their anonymity. ... > the machine can perform as a Intermediary Server and / or as a Intermediary ... > The software then attempts connection to a Intermediary Server. ...
    (Bugtraq)
  • its very empirical, Ill level normally or Selma will pause the clauses
    ... Hey, ruins hold of course conservation piers, unless they're ... Let's request between the continuous radios, ... in connection with me it's ... Some continued coats shiver Annabel, ...
    (sci.crypt)
  • Re: downloading a single file using multiple threads
    ... One client A --- one Server, ... thread 1 issues asynchronous range request x... ... isn't useful (as you say, even if you have enabled reuse of the connection, repeated requests for different ranges will simply result in queuing of the replies). ... Yep, but say you have 1Mbps to the US and 50Kbps to Afrika, is your download manager clever enough to request all chunks from the US instead of waiting for a chunk to arrive from Afrika, or is he clever enough to cancel the request and re-issue the same request over the US connection. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: IP address and LAN problems
    ... Winsock checks after I had reset. ... then able to connect to Tiscali, but the LAN connection is broken. ... years until the broadband network failed for a week over Xmas. ...
    (microsoft.public.windowsxp.network_web)