rejetto forum
February 11, 2012, 01:32:20 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: [SOLVED] BIG SECURITY HOLE (?!) - HFS allows to remotely browse your hard disk!  (Read 16024 times)
0 Members and 1 Guest are viewing this topic.
MarkV
Insane poster
*****
Offline Offline

Germany Germany

Posts: 722



View Profile
« Reply #15 on: January 16, 2009, 03:55:29 PM »

The error occours everywhere. '...' means 'go up 2 directories', maybe rejetto did cover only '..' ?
So if you share a directory directly below HFS, the bug allows you to go to the parent directory of HFS (Program files?) and from there to all directories and files of this directory, including HFS itself. This is serious.

If the directory shared is only 1 or 2 levels deep, no bug. Starts to appear from 3. level and below
Logged

Welcome to Twinkle Park! Grin
Metaltailz
Regular poster
**
Offline Offline

Posts: 21


View Profile Email
« Reply #16 on: January 16, 2009, 04:20:32 PM »

Tested in Windows XP pro, confirmed negative.
Next monday I will test it on a Windows NT system. (Don't have access to it on the weekend)
Logged

Current Project: Template based on Windows Home Server
Status: Delayed
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1469



View Profile WWW
« Reply #17 on: January 16, 2009, 04:35:49 PM »

Somebody can make the same test under Windows 9x by using \.... (with 4 points instead of 3) and report result, please Wink

« Last Edit: January 16, 2009, 05:06:12 PM by mars » Logged
Guest
Guest


Email
« Reply #18 on: January 16, 2009, 05:20:58 PM »

Remote test from work - /.../ gives problem.
1, 2, or 4 do not.

r][m
Logged
Mars
Operator
Insane poster
*****
Offline Offline

France France

Posts: 1469



View Profile WWW
« Reply #19 on: January 16, 2009, 06:00:44 PM »

Thanks R][M 

Here we are, I recompiled the sources of rejetto (safely) with a small modification for the bug of the 9x, please test this version and make a report

somewhere in main .pas
Quote
        // we don't list these entries
        if (sr.name = '.') or (sr.name = '..') or (sr.name = '...')      //mod by mars bug 9x
.....
    // no directory crossing
    if ansiContainsStr(s, '\..\') or ansiEndsStr('\..', s) then exit;
    if ansiContainsStr(s, '\...\') or ansiEndsStr('\...', s) then exit;  //add by mars bug 9x
 

The build 219 arrived, I thus remove the zip attached to this post.


Small message for rejetto, the file zip will be deleted as soon as you will have corrected the problem in the next build.
« Last Edit: January 17, 2009, 07:52:03 AM by mars » Logged
r][m
Insane poster
*****
Offline Offline

United States United States

Posts: 339


View Profile
« Reply #20 on: January 17, 2009, 12:08:06 AM »

Mars
Your fix worked on win98se.
/../ returns to root, but 1, 3, & 4 return my HFS  404 - Not Found page.

Many thanks!
Logged
rejetto forum
« Reply #20 on: January 17, 2009, 12:08:06 AM »

Do you like this software? Consider even $2
 Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #21 on: January 17, 2009, 07:31:19 AM »

the problem is exactly that: win9X supports 3 and 4 dots.
http://www.iss.net/security_center/advice/Intrusions/2000617/default.htm
I knew this, but i thought it was translated by the shell, not by the kernel itself. Thanks Microsoft.

i don't know about more points, but i made a quick test and creating a file with name "....." (5) is not allowed, so there's no point in allowing any name containing only dots.
i will soon publish an official fix.

sorry PC for the early suspects
« Last Edit: January 17, 2009, 07:34:04 AM by rejetto » Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11759


View Profile
« Reply #22 on: January 17, 2009, 07:46:15 AM »

fixed in 2.3 build #219.
soon i will publish a fixed version of 2.2
Logged
MarkV
Insane poster
*****
Offline Offline

Germany Germany

Posts: 722



View Profile
« Reply #23 on: January 17, 2009, 09:41:41 AM »

There's nothing like a good community. This bug is history now...  Grin
Logged

Welcome to Twinkle Park! Grin
PC
Guest


Email
« Reply #24 on: January 18, 2009, 08:34:08 AM »

Great thanx for interest from all of you...  Grin
Sorry but i didn't have time to look at forum last week (exams & etc...)

I use HFS for some years & i didn't have big problems Tongue
Everything started, when i shared a folder to a friend and he was doing something... and typed "..." at wrong window Tongue
I was a bit shocked, when he asked me if I share all my Desktop... (I use Win Me sometimes to test & compile programs).

Hmm... the cause was crazy Tongue
Thanks for fixing!  Smiley Smiley Smiley
Logged
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page February 06, 2012, 04:44:33 PM
anything