[UNIX] log4sh Insecure Temporary Files Creation Vulnerability

From: SecuriTeam (support_at_securiteam.com)
Date: 07/06/05

  • Next message: SecuriTeam: "[UNIX] Nokia Affix btftp Remote Buffer Overflow Exploit"
    To: list@securiteam.com
    Date: 6 Jul 2005 14:27:45 +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

    - - - - - - - - -

      log4sh Insecure Temporary Files Creation Vulnerability
    ------------------------------------------------------------------------

    SUMMARY

    " <http://forestent.com/products/log4sh/> Log4sh runs along the same lines
    as the other excellent logging services from the Apache Software
    Foundation. It adds to that list the ability to integrate powerful
    logging capabilities into a shell script."

    log4sh creates temporally files in an insecure way allowing local
    attackers to gain elevated privileges.

    DETAILS

    Vulnerable Systems:
     * log4sh versions 1.2.5 and prior

    The vulnerability is caused due to temporary files being created
    insecurely. This can be exploited via a symlink attack, and in turn create
    and/or overwrite arbitrary files with the privileges of the user running
    the affected script.

    Vulnerable code:
    356 log4sh_readProperties()
    357 {
    358 _file=$1
    359
    360 _tmpFile="/tmp/log4sh.$$"
    361 grep "^log4sh\." $_file >$_tmpFile

    CVE Information:
     <http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-1915>
    CAN-2005-1915

    Disclosure Timeline:
    26.05.05 - Discovered
    09.06.05 - Vendor notified
    27.06.05 - No response, Vendor Sec report (vendor-sec@lst.de)
    04.07.05 - Disclosure

    ADDITIONAL INFORMATION

    The original article can be found at:
    <http://www.zataz.net/adviso/log4sh-06092005.txt>
    http://www.zataz.net/adviso/log4sh-06092005.txt
    Gentoo Bugs Reports: <http://bugs.gentoo.org/show_bug.cgi?id=94069 >
    http://bugs.gentoo.org/show_bug.cgi?id=94069

    ========================================

    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.


  • Next message: SecuriTeam: "[UNIX] Nokia Affix btftp Remote Buffer Overflow Exploit"

    Relevant Pages

    • [UNIX] Trend Micro VirusWall Buffer Overflow in VSAPI Library
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... buffer overflow vulnerability in VSAPI library allows arbitrary code ... is called "vscan" which is set suid root by default. ... permissions and thus granted all local users the privilege to execute the ...
      (Securiteam)
    • [UNIX] SCO Multiple Local Buffer Overflow
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Local exploitation of a buffer overflow vulnerability in the ppp binary, ... allows attackers to gain root privileges. ...
      (Securiteam)
    • [NT] Microsoft Word 6.0/95 Document Converter Buffer Overflow (MS04-041)
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... WordPad is "a word processing application that uses the MFC rich edit ... Remote exploitation of a buffer overflow vulnerability in Microsoft ... Microsoft Word format files into the Rich Text Format natively handled by ...
      (Securiteam)
    • [UNIX] Tikiwiki Command Injection and Arbitrary File Exposure Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Two security vulnerabilities have been recently discovered in Tikiwiki, ... Remote exploitation of an input validation vulnerability in Tikiwiki ... allows attackers to gain access to arbitrary files on the vulnerable ...
      (Securiteam)
    • [NT] Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, Collaboration Suite SMTP Format
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Ipswitch Multiple Vulnerabilities (IMail IMAP LIST Command DoS, ... Collaboration Suite SMTP Format String) ... Remote exploitation of a denial of service vulnerability in Ipswitch ...
      (Securiteam)