Re: String

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 30 June 2004 8:45 pm, David Cary Hart wrote:

> The string module seems like a great idea to filter some of the httpd
> attacks.

It may seem like a great idea, but it has limitations which (IMHO) mean it's 
just not worth using (for this sort of task).

The two major limitations are:

1. It will only match on a string which is completely contained within one 
packet - therefore a string "GET /index.html" which has the "GET " at the end 
of one packet, and the "/index.html" at the start of the next will not be 
matched.

2. The string match works on literal text characters, and therefore will not 
match anything at all for a gzip-compressed HTTP stream (quite commonly 
encountered with modern servers).

> In the alternative is there something else that might do similar filtering?

Yes, Squid, Dan's Guardian - something which truly understands HTTP, rather 
than just TCP/IP.

Regards,

Antony.

-- 
The difference between theory and practice is that in theory there is no 
difference, whereas in practice there is.

                                                     Please reply to the list;
                                                           please don't CC me.



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux