Forum Index

It appears you have not yet registered with our community which limits what you can do & see. It's Free To register, please click here.





Linux All distros and thier applications

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2004, 07:09 AM
Mobo's Avatar
Mobo Mobo is offline
Thinking outside the box
 
Join Date: Sep 2004
Location: Cape Breton
Posts: 4,575
Send a message via ICQ to Mobo Send a message via AIM to Mobo Send a message via MSN to Mobo Send a message via Yahoo to Mobo Send a message via Skype™ to Mobo
Linux Zip Long Path Buffer Overflow Vulnerability

Overview:
=========
Zip console application by Info-Zip (http://www.info-zip.org) is an open-source software and part of many Linux distributions. A buffer overflow condition can be triggered and exploited during recursive compression operation.

Affected products:
==================

HexView tested the issue using Zip 2.3 which comes as "zip" package with Debian Linux. Possibly all earlier Info-Zip versions are vulnerable. Info-Zip applications for other operating systems are also vulnerable, but depending on operating system and file system restrictions, the vulnerability may or may not be triggered or exploited.

Cause and Effect:
=================

When zip performs recursive folder compression, it does not check for the length of resulting path. If the path is too long, a buffer overflow occurs leading to stack corruption and segmentation fault. It is possible to exploit this vulnerability by embedding a shellcode in directory or file name. While the issue is not of primary concern for regular users, it can be critical for environments where zip archives are re-compressed automatically using Info-Zip application.

Demonstration:
==============

The issue can be reproduced by following these steps:
1. Create an 8-level directory structure, where each directory name is 256 characters long (we used 256 'a' characters).
2. run "zip -r file.zip *". The application will crash with "segmentation fault"
3. run "gdb -core core `which zip`" (assuming core drop is enabled)
4. type "where" and hit Enter. Here is what you'll see:

Program terminated with signal 11, Segmentation fault.
[garbage truncated]
#0 0x0805108e in error ()
#1 0x61616161 in ?? ()
#2 0x61616161 in ?? ()
#3 0x61616161 in ?? ()
Reply With Quote
Posted


Reply

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ca Multiple Products Buffer Overflow Mobo Security Alerts and vulnerabilities 0 05-24-2005 02:43 PM
WinAMP--Buffer Overflow Vulnerability Mobo Security Alerts and vulnerabilities 0 01-28-2005 07:13 PM
Mozilla "MSG_UnEscapeSearchUrl()" Buffer Overflow Mobo Security Alerts and vulnerabilities 0 12-30-2004 10:16 PM
WinRAR Delete File Buffer Overflow Vulnerability Mobo Security Alerts and vulnerabilities 0 12-22-2004 09:04 AM
Internet Explorer HTML Elements Buffer Overflow Mobo Security Alerts and vulnerabilities 0 12-06-2004 10:32 AM



All times are GMT -5. The time now is 05:32 PM.


Firefox 2