Results 1 to 5 of 5

Thread: Directory Transversal

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    10

    Directory Transversal

    Hey,

    What would be a good way to protect a custom server against directory traversal attacks besides filtering [..], [%] characters?

    Cheers,

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Directory Transversal

    From where? The console of that computer? Within the LAN? A connection to a web server on that computer from the WAN?
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    10

    Re: Directory Transversal

    Thanks for your reply.

    I mean inside the software; I am developing a small custom file server that has to be protected against forced directory transversal attacks.

  4. #4
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Directory Transversal

    If you don't give me enough information, I can't help you. Software accessed how? From the console of that computer? From within the LAN? From a connection to a web server on that computer from the WAN? Whether it's "inside the software" or not is meaningless. Do you mean not allow users accessing a web server from seeing the directories? If it's a file server, you want your users to access the files - that's the function of a file server.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2006
    Posts
    10

    Re: Directory Transversal

    I am writing a simple file server.

    I just want to know what kind of characters I need to filter out to prevent directory traversal attacks.

    For example, /opt/../ would be such an example. [..] would need to get filtered out.

    What other characters are unsafe?

    Cheers,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width