Re: path traversal exploits

2007-07-01 Thread Nick Guenther
and stuff won't actually be scanned. At the moment, I've got a working port of 2.65 patched to extract with full paths. The last problem to solve is preventing path traversal exploits. I suspect that just searching for double dot .. in the to be created path string is not enough but since I've never

Re: path traversal exploits

2007-07-01 Thread Alexander Hall
it will overwrite files and stuff won't actually be scanned. At the moment, I've got a working port of 2.65 patched to extract with full paths. The last problem to solve is preventing path traversal exploits. I suspect that just searching for double dot .. in the to be created path string

Re: path traversal exploits

2007-07-01 Thread Alexander Hall
Alexander Hall wrote: Well, a slash in the beginning of path names made me overwrite my entire /etc dir with another machines configuration... However, that was with tar and not unarj... Correcting myself after some testing. It was using pax. :-) /Alexander

Re: path traversal exploits

2007-07-01 Thread Ingo Schwarze
it will overwrite files and stuff won't actually be scanned. At the moment, I've got a working port of 2.65 patched to extract with full paths. The last problem to solve is preventing path traversal exploits. I suspect that just searching for double dot .. in the to be created path string is not enough

Re: path traversal exploits

2007-07-01 Thread Alexander Hall
Perhaps someone more experienced can comment on this one. I'm not exactly sure, but i suspect you found nothing for the following simple reason: if all you want to do is checking for simple path traversal under Unix, m/^\// and m/\.\./ are all you need. Except that it would make valid names

path traversal exploits

2007-06-29 Thread J.C. Roberts
, I've got a working port of 2.65 patched to extract with full paths. The last problem to solve is preventing path traversal exploits. I suspect that just searching for double dot .. in the to be created path string is not enough but since I've never done this sort of thing, I'm not sure where