Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] GIPTables Firewall Race Condition |
|---|---|
| Date: | 6 Jun 2005 11:47:32 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - GIPTables Firewall Race Condition ------------------------------------------------------------------------ SUMMARY " <http://www.giptables.org/> GIPTables Firewall is a free set of shell scripts that helps you generate iptables rules for Linux 2.4.x and newer kernels. It is very easy to configure and at present, designed to run on hosts with one or two network cards. It doesn't require you to install any additional components to make it work with your GNU/Linux system. All you need to set-up a very secure firewall for your GNU/Linux machines is iptables and GIPTables Firewall." GIPTables Firewall does not use a random naming convention for its temporary file creation, this allows attackers to cause a race condition vulnerability. DETAILS Vulnerable Systems: * GIPTables Firewall version 1.1 and prior The vulnerability is caused due to temporary file being created insecurely. This can be exploited via symbolic link to create and overwrite arbitrary files with the privileges of the user running the affected script. It is also possible to cause a denial of service by manipulating the IP addresses present inside the temporary file The exploitation require that the root configure or reconfigure his firewall rules. Code Snips: # Network Ghouls [ "$NETWORK_GHOULS" == "yes" ] && \ [ "$DEBUG" = "on" ] && echo -e "\n# Network Ghouls" if [ "$NETWORK_GHOULS" == "yes" ] && [ -f "$GIPTABLES_BLOCKED_FILE" ]; then deny_file="$GIPTABLES_BLOCKED_FILE" temp_file="/tmp/temp.ip.addresses" cat $deny_file | sed -n -e "s/^[ ]*\([0-9.]*\).*$/\1/p" | awk ' $1 ' > $temp_file while read ip_addr do drop_ipaddr interface0_in source $ip_addr && \ drop_ipaddr interface0_out destination $ip_addr [ -n "$INTERFACE1" ] && \ drop_ipaddr interface1_in source $ip_addr && \ drop_ipaddr interface1_out destination $ip_addr [ -n "$INTERFACE1" ] && \ drop_ipaddr network1_in source $ip_addr && \ drop_ipaddr network1_out destination $ip_addr done < $temp_file rm -f $temp_file > /dev/null 2>&1 unset temp_file unset deny_file fi ADDITIONAL INFORMATION The information has been provided by <mailto:exploits@zataz.net> ZATAZ Audits. The original article can be found at: <http://www.zataz.net/adviso/giptables-05222005.txt> http://www.zataz.net/adviso/giptables-05222005.txt ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [TOOL] Multithreaded Broadcast Scanner for Windows, SecuriTeam |
|---|---|
| Next by Date: | [UNIX] FUSE Information Disclosure, SecuriTeam |
| Previous by Thread: | [TOOL] Multithreaded Broadcast Scanner for Windows, SecuriTeam |
| Next by Thread: | [UNIX] FUSE Information Disclosure, SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |