Your message dated Sun, 08 Jul 2007 12:42:33 +0200
with message-id <[EMAIL PROTECTED]>
and subject line New version in unstable
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: fireflier-server
Version: 1.1.6-3
Severity: grave
Usertags: sourcescan

*** Please type your report below this line ***

  Security issue: CVE-2007-2837.

  The server, fireflierd, runs with root privileges and the code
 contains this gem which I think speaks for itself:

string getRule(unsigned int chainid, int rulenum)
{
   ...

   cmd="rm -f /tmp/fireflier.rules && touch /tmp/fireflier.rules && 
        chmod 0700 /tmp/fireflier.rules && ";
   cmd+=IPTABLES_SAVE;
   cmd+=" > /tmp/fireflier.rules";
   if(DEBUG)
     cout<<"cmd: "<<cmd<<endl;

   system(cmd.c_str());

   ...
}


  This contains several race conditions, and can be trivially exploited to
 remove any file on the server as root.

  For example run this as a user inside GNU screen:
   [EMAIL PROTECTED]:~$ while true; do ln -s  /etc/passwd  
/tmp/fireflier.rules; done

  Wait for a root user to fetch/update/delete a rule using one of the available
 clients, and the /etc/passwd file will be removed.

Steve
--
#  Kink-Friendly Dating
http://ctrl-alt-date.com/


--- End Message ---
--- Begin Message ---
I uploaded fireflier-1.1.7 to unstable, which fixes this bug by applying
the changes from Steve Kemp to fireflier-1.1.6.
In fireflier-1.1.7 no other changes were done.

thanks,
Martin

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to