Re: insecure script

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

 



On Tuesday 23 March 2004 7:58 pm, Jorge Garcia wrote:

> hi, im starting to write a paper about iptables security, and im trying to
> focus in the scripts. anyone can give some examples of insecure scripts or
> some tips to find my own insecurities in many scripts on the net. how
> hackers can take advantages in insecurities in the scriipts??

Here's a few ideas:

1. Don't use a default ACCEPT policy on INPUT or FORWARD chains.

2. Don't try to "block the bad stuff and allow the rest" - always "allow what 
you know you want, and block the rest"

3. Use stateful matching - don't just allow packets in to high port numbers on 
the basis that "they must be replies"

4. Don't assume that all packets from source port 53 are DNS.

5. Be careful about allowing all connections from internal clients to the 
Internet - somebudy might bring a compomised laptop into your network, or 
somebody inside the organisation might not be trustworthy.   Check for 
suspicious outgoing traffic as well as incoming.

Regards,

Antony.

-- 
If you can't find an Open Source solution for it, then it isn't a real 
problem.

                                                     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