RE: FileZilla weakly-encrypted password vulnerability: advisory + PoC

From: Mark Senior (Mark.Senior_at_gov.ab.ca)
Date: 09/07/05

  • Next message: crusoe_at_alexandria.cc: "anti Windows XP SP2 firewall trick"
    Date: Wed, 7 Sep 2005 12:30:24 -0600
    To: <medhead@flagmandesign.com>, <bugtraq@securityfocus.com>
    
    

    I understand that you're not necessarily endorsing the developer's
    stance, so please take no offence.

    The below posting is evidence that the FileZilla developers are infected
    with a DOS mentality - the assumption that every computer will be used
    by only one person.

    The developer is being disingenuous when he lists:

    > 3. Encrypt settings using a master password, don't save the
    > master password at all, request it from the user on startup.
    > Not implemented in FileZilla, partially because of
    > 4. Use the tools the operating system provides to protect
    > data, that is access rights and file encryption. Though
    > obviously the user has to setup this for himself.

    In fact, the user doesn't have to set up 4. for himself - the OS has
    already set up ACLs for his home directory on his behalf. The user may
    even have set up encryption for his home directory too. Having done
    this, a user should be able to assume that he has done his bit, and his
    programs won't go littering his passwords all over the filesystem and
    the registry.

    The correct place for a file that contains a user's passwords in
    plaintext (obfuscated or not) is under the user's home directory, which
    is already protected by filesystem ACLs. Writing a user-specific XML
    file in a globally accessible directory is actually actively avoiding
    the tools the operating system provides. Putting the file under
    %PROGRAMFILES%\FileZilla\ (and correspondingly requiring that every user
    have write access to that folder - effectively requiring that the
    program be run as a local admin) is just dumb.

    As for point 3. it's not a bad idea either, and could perhaps be
    usefully be done in addition to 4. (a la PasswordSafe)

    Regards
    Mark

    > -----Original Message-----
    > From: medhead@flagmandesign.com [mailto:medhead@flagmandesign.com]
    > Sent: September 4, 2005 00:59
    > To: bugtraq@securityfocus.com
    > Subject: Re: FileZilla weakly-encrypted password
    > vulnerability: advisory + PoC
    >
    > QUOTED FROM FILEZILLA FORUM POST: I AM IN NO WAY CONNECTED
    > WITH FILEZILLA DEVELOPMENT, NOR DO I SPEAK ON BEHALF OF
    > FILEZILLA. WHAT IS WRITTEN BELOW HAS BEEN COPIED FROM THE
    > FILEZILLA FORUM POST.
    >
    > http://filezilla.sourceforge.net/forum/viewtopic.php?t=1328
    >
    > Preface: There is no know security vulnerability in
    > FileZilla, the reported vulnerability is a hoax.
    >
    > Recently someone reported an alleged security vulnerabilty in
    > FileZilla. But very quickly it became visible that the
    > problem is not a vulnerability at all, but infact a
    > fundamental issue of every single program that can store
    > passwords transparently.
    > Despite my reply the vulnerabilty got releases to several
    > security sites. Someone even posted some sort of exploit:
    > Sourcecode that decrypts the stored passwords of FileZilla.
    > But how could this be an exploit? In order to connect to a
    > server with the encrypted passwords, FileZilla itself has to
    > decrypt it. And since FileZilla is open source (basically
    > every single program is, just look at the machine code),
    > everyone can decrypt the passwords with little effort.
    >
    > The used encryption method to store the passwords is a very
    > simple algorithm. It hasn't been designed to be
    > cryptographically strong, it shouls just obscure passwords.
    > In fact it is impossible to transparently store passwords
    > securly, see below for reasons.
    >
    > So since the vulnerabilty report got released despite my
    > explanations, I can only assume that the author has either
    > very little experience or, what I don't hope, this is an
    > attempt to discredit FileZilla.
    >
    > --------
    >
    > FILEZILLA DEVELOPER REPLIES TO ORIGINAL EMAIL
    >
    > --------
    >
    > Hi,
    >
    > thanks for your concern about FileZilla. I would like to
    > clarify that this is not a security vulnerabilty. The
    > password encryption has never been designed to be secure,
    > it's just meant to obfuscate the password.
    >
    > In order to use the stored passwords, FileZilla itself has to
    > be able to decrypt the passwords, for this it needs the
    > encryption key to be stored along with the encrypted
    > passwords. In this case the key is stored inside the executable.
    > This is no different than with any other program that can
    > store passwords transparently: It's never secure and can
    > always be cracked with very little effort. This is especially
    > true for open source software where everyone can inspect the
    > encryption code.
    >
    > But there are a few ways to store passwords in a secure. I'll
    > add a few comments on all of them
    >
    > 1. Don't save passwords at all. Implemented in FileZilla,
    > chose "Secure mode" during setup.
    > 2. Don't store the password itself, store hashes. This won't
    > work for FTP as FTP needs to send original passwords and
    > hashes aren't reversible.
    > 3. Encrypt settings using a master password, don't save the
    > master password at all, request it from the user on startup.
    > Not implemented in FileZilla, partially because of 4. Use the
    > tools the operating system provides to protect data, that is
    > access rights and file encryption. Though obviously the user
    > has to setup this for himself.
    >
    > Thus said, for FileZilla 3 I even plan to omit password
    > obfuscation by default. Transparent password storage is
    > equally secure when passwords are stored in plaintext.
    >
    > Regards,
    > Tim Kosse
    >

    This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.

    This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


  • Next message: crusoe_at_alexandria.cc: "anti Windows XP SP2 firewall trick"

    Relevant Pages

    • Re: FileZilla weakly-encrypted password vulnerability: advisory + PoC
      ... QUOTED FROM FILEZILLA FORUM POST: I AM IN NO WAY CONNECTED WITH FILEZILLA DEVELOPMENT, NOR DO I SPEAK ON BEHALF OF FILEZILLA. ... But very quickly it became visible that the problem is not a vulnerability at all, but infact a fundamental issue of every single program that can store passwords transparently. ... The used encryption method to store the passwords is a very simple algorithm. ...
      (Bugtraq)
    • RE: FileZilla weakly-encrypted password vulnerability: advisory + PoC
      ... How hard would it be to use a passphrase to encrypt the passwords? ... Subject: FileZilla weakly-encrypted password vulnerability: advisory ... "strongly" you garble the password for storage, if the source code is ...
      (Bugtraq)
    • Re: FileZilla weakly-encrypted password vulnerability: advisory + PoC
      ... > so easy if FileZilla wasn't an open source application. ... I always do this with my FileZilla installations - don't ... I keep precious passwords somewhere else much safer. ... "strongly" you garble the password for storage, if the source code is ...
      (Bugtraq)
    • AW: Securing an encryption key within software.
      ... I suggest you use a one-way hash function to store your passwords, or use asymetric (public / private key) cryptographic algorithms to encrypt the passwords with the public key, and throw away the private key. ... Securing an encryption key within software. ...
      (Security-Basics)
    • Re: Store passwords using reversible encryption
      ... but would add that reversible encryption is better than no encryption at all. ... where are you storing these passwords? ... > from your store, then it can be decrypted from your store. ...
      (microsoft.public.security)

  • Quantcast