|
|||||||||||
|
[ANN]: N.A.D.S. Normalized Attack Detection System
From: Gianni Tedesco <gianni(at)scaramanga.co.uk>
Date: Fri Jul 11 2003 - 11:52:34 EDT
Announcing nads-0.1, this is a little bit of concept code which I hope to grow over the next few months which normalizes HTTP URLs. It is implemented as a library (DSO) written in C and should be fairly portable (even for non-gcc compilers). It is free software released under the terms of the GNU GPL. You can download it at: http://www.scaramanga.co.uk/nads/nads-0.1.tar.gz
It currently normalizes the following evasion techniques:
o Strips out query string
Some of these things are specific to webservers, so there is an API to select which webserver to emulate. It's pretty flexible. Here is an example. The URL starts like this (unicode exploit caught in the wild):
/msadc/..%255c../..%255c../..%255c/..%c1%1c../..%c1%1c../..%c1%1c../winnt/system32/cmd.exe
Then it gets hex decoded:
/msadc/..%5c../..%5c../..%5c/..Á^\../..Á^\../..Á^\../winnt/system32/cmd.exe
Then it gets hex decoded again (the emulation type is set to IIS).
/msadc/..\../..\../..\/..Á^\../..Á^\../..Á^\../winnt/system32/cmd.exe
Then overlong UTF-8 encodings are removed:
/msadc/..\../..\../..\/..\../..\../..\../winnt/system32/cmd.exe
Then the path components are normalized:
/msadc/../../../../../../../../../../../winnt/system32/cmd.exe
Then the code throws up an error, due to accessing files outside the webroot. The plans are to also add a squid ACL helper with fast signature matching support to provide a free web application layer firewall / IPS. Enjoy! :) --
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:01:16 EDT |
||||||||||
|
|||||||||||