First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 93079
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stefan Cornelius (RETIRED) <dercorny@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
PoC.dz PoC exploit application/octet-stream Stefan Cornelius (RETIRED) 2005-05-18 08:48 0000 81 bytes Details
dzip-2.9-scrub-names.patch dzip-2.9-scrub-names.patch patch SpanKY 2005-05-19 18:38 0000 1.92 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 93079 depends on: Show dependency tree
Bug 93079 blocks:

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2005-05-18 08:44 0000
dzip is vulnerable to a directory traversal attack when unpacking specially
crafted .dz files.

------- Comment #1 From Stefan Cornelius (RETIRED) 2005-05-18 08:48:23 0000 -------
Created an attachment (id=59225) [edit]
PoC exploit

1. Get the PoC.dz file
2. Extract, like here:
bash-2.05b$ ./dzip -x PoC.dz
PoC.dz created using v2.9
extracting ./../../exploited_file
3. 2 directories up, you can find a file called exploit_file with a "w0000t"
string in it

------- Comment #2 From Thierry Carrez (RETIRED) 2005-05-18 09:13:06 0000 -------
Stefan, could you make sure upstream is alive and aware of this ?

------- Comment #3 From Mr. Bones. 2005-05-18 09:18:22 0000 -------
so.... you can overwrite your own files with a special .dz file?

------- Comment #4 From Stefan Cornelius (RETIRED) 2005-05-18 09:23:32 0000 -------
Contacted one of the upstream guys.

Mr.Bones.: no, overwriting most likely won't work
"./../../exploited_file exists; will not overwrite"

------- Comment #5 From Mr. Bones. 2005-05-18 09:28:15 0000 -------
So what's the exploit?

------- Comment #6 From Stefan Cornelius (RETIRED) 2005-05-18 09:29:43 0000 -------
dzip offers an option to force the overwriting of files, so if an attacker
tricks a user to use this option, files will be overwritten.

------- Comment #7 From Tavis Ormandy (RETIRED) 2005-05-18 09:47:00 0000 -------
Mr Bones: directory traversal is the exploit, ie you send someone a file that 
creates ../../../../../../../../home/foo/.profile, if you google for "tar 
directory traversal" or "zip directory traversal" and so on you can see some 
examples in other archiving utilities.

------- Comment #8 From Mr. Bones. 2005-05-18 10:27:25 0000 -------
I'm not impressed.  rm has some neat options that if you can trick a user into
using can cause massive data lose as well.

------- Comment #9 From Thierry Carrez (RETIRED) 2005-05-18 11:46:44 0000 -------
I tend to agree that if it doesn't overwrite files unless a specific option is
provided it could be considered WONTFIX/DUMB_USER_REQUIRED_TO_EXPLOIT. That
said, we issued GLSAs for worse than that.

------- Comment #10 From Stefan Cornelius (RETIRED) 2005-05-19 08:18:35 0000 -------
<DerCorny> are you going to patch it?
<@Radix37> probably eventually... i already have a lot of new things in an
unfinished new version

------- Comment #11 From SpanKY 2005-05-19 18:38:52 0000 -------
Created an attachment (id=59339) [edit]
dzip-2.9-scrub-names.patch

seems to work for me ... please review

------- Comment #12 From Stefan Cornelius (RETIRED) 2005-05-19 19:58:15 0000 -------
Patch seems fine so far.

------- Comment #13 From Thierry Carrez (RETIRED) 2005-05-20 10:49:27 0000 -------
Auditors, please have a look at the patch...

------- Comment #14 From Thierry Carrez (RETIRED) 2005-05-29 12:50:51 0000 -------
SpanKY: Tavis had a look and likes it. Please push it in the ebuild.

------- Comment #15 From SpanKY 2005-05-29 15:47:34 0000 -------
done, and stabilized for x86

------- Comment #16 From Thierry Carrez (RETIRED) 2005-05-30 00:52:30 0000 -------
Ready for GLSA

------- Comment #17 From Thierry Carrez (RETIRED) 2005-06-06 11:07:50 0000 -------
GLSA 200506-03

First Last Prev Next    No search results available      Search page      Enter new bug