Questions tagged [directory-traversal]

Directory traversal is a form of HTTP exploit in which a hacker uses the software on a Web server to access data in a directory other than the server's root directory. If the attempt is successful, the hacker can view restricted files or even execute commands on the server. Directory traversal attacks are commonly performed using Web browsers. Any server in which input data from Web browsers is not validated is vulnerable to this type of attack.

Directory traversal is a form of HTTP exploit in which a hacker uses the software on a Web server to access data in a directory other than the server's root directory. If the attempt is successful, the hacker can view restricted files or even execute commands on the server. Directory traversal attacks are commonly performed using Web browsers. Any server in which input data from Web browsers is not validated is vulnerable to this type of attack.

Although some educated guesswork is involved in finding paths to restricted files on a Web server, a skilled hacker can easily carry out this type of attack on an inadequately protected server by searching through the directory tree. The risk of such attacks can be minimized by careful Web server programming, the installation of software updates and patches, filtering of input from browsers, and the use of vulnerability scanners.

Directory traversal is also known as directory climbing or backtracking.

81 questions
0
votes
1 answer

PHP: Search Directory Tree for File and Return File Path

Consider this workflow: User makes a request to website.com/lolmyblogpost My .htacces is all like... RewriteCond %{REQUEST_URI} !=/index.php RewriteRule .* /index.php Where in index.php im going to search a file tree of templates for…
Dan Kanze
  • 18,097
  • 28
  • 77
  • 133
0
votes
2 answers

Entering subdirectories (with spaces) and merge the files to another directory

I want to do something special in bash. I have found partial solutions with for loops and find, but I prefer to make a script to make a more complex job. I have a complex directory structure as follows: fiction/ book1/ chapter1/ page1.txt …
Voprosnik
  • 195
  • 9
-1
votes
1 answer

Utility to compare two directories and give report & detect/delete duplicates

Utility to compare two directories & give total number of files it should show the duplicates and an option to delete those duplicates. I want to write a Java Utility that compare two directory and gives a report of the following the total number…
-1
votes
2 answers

Simple PHP Vulnerability Test

Basically, I want to create a site to show people how to prevent PHP vulnerabilities by simulating them. However, I can not get them to work myself. I want to see if a variable equals a valid page (I only have two for testing) and, if it does, load…
Vreality
  • 305
  • 5
  • 16
-3
votes
1 answer

How to prevent directory traversal attack in Apache2 Ubuntu 14?

As a system admin role I have to make secure website build in PHP. Vulnerabilities scanner gives directory traversal attack warning. I google it many websites but didn't found proper solution. I already disable indexing and also put directory deny…
Abid
  • 1
  • 1
  • 3
-4
votes
1 answer

How to view php file in plaintext?

I have downloaded php file of a website through path traversal technique, but when I opened the file with notepad and notepad++ I only get encrypted text. Is there any working way to view that file in plain text and understand what is there in that…
1 2 3 4 5
6