Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 95378
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jean-François Brunette (RETIRED) <formula7@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 95378 depends on: Show dependency tree
Bug 95378 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-06-07 12:32 0000
The vulnerability is caused due to temporary file being created insecurely.
This can be exploited via symlink attacks to create and overwrite arbitrary files
with the privileges of the user running the affected script.

The exploitation require that the root try to update the software. 

##########
Versions:
##########

LutelWall <= 0.97

------- Comment #1 From Jean-François Brunette (RETIRED) 2005-06-07 12:50:59 0000 -------
Vulnerable code :
-----------------

# Prefix of temporary firewall files
tmp='/tmp/lutelwall'

new_version_check () { # Check for new version of script

 if [ "`wget -V 2>&1 >/dev/null`" ]; then
  message 3 "Warrning: Wget is required to check for updates."
 else
  new_ver=`wget -C off -O - -q -t 1 -T 3 -w 3 -U "\`uname -a 2>&1\`"
http://firewall.lutel.pl/ver`
  if [ `echo $current_version | gawk '{ gsub("\\\.","") ; print 1$0 }'` -lt
`echo $new_ver | gawk '{ gsub("\\\.","") ; print 1$0 }'` ]; then
   echo -e "\nThere is newer version of LutelWall (${new_ver})"
   echo -n " Changes since previous version:"
   echo `wget -C off -O $tmp-newfeat -q -t 1 -T 3 -w 3
http://firewall.lutel.pl/FEATURES-${new_ver}`
   cat $tmp-newfeat
   echo "Do you want to update [y/N]? "
   read -s -t 5 -n 1 ln
   if [ "$ln" = 'y' -o "$ln" = 'Y' ]; then
    wget -O $tmp-script -q -T 3 http://firewall.lutel.pl/lutelwall
    cat $tmp-script > $0
    rm -rf $tmp-script
    echo "Your firewall is up to date, exiting after update!"
    exit
   else
    message 5 "Update aborted"
   fi
  else
    message 5 "LutelWall is up-to-date"
  fi;
 fi;

}

------- Comment #2 From Thierry Carrez (RETIRED) 2005-06-10 00:38:48 0000 -------
*** Bug 95596 has been marked as a duplicate of this bug. ***

------- Comment #3 From Thierry Carrez (RETIRED) 2005-06-10 00:41:17 0000 -------
Vanquirius: thx for the bump. 
Keywords are all set, this is ready for GLSA vote

------- Comment #4 From Thierry Carrez (RETIRED) 2005-06-10 04:32:38 0000 -------
I vote YES, I guess the update script is run by root.

------- Comment #5 From Matthias Geerdsen 2005-06-10 05:14:46 0000 -------
agreed, there should be a GLSA

------- Comment #6 From Thierry Carrez (RETIRED) 2005-06-11 12:04:58 0000 -------
GLSA 200506-10

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug