Quantcast
Channel: BOT24
Viewing all articles
Browse latest Browse all 8064

File Upload Exploitation

$
0
0

File upload vulnerabilities consists a major threat for web applications.A penetration tester can use a file upload form in order to upload different types of files that will allow him to obtain information about the web server or even a shell.Of course shell is always a goal but a good penetration tester must not stop there.Further activities can be performed after the shell.The focus of these activities must be on the database.In this article we will see how we can obtain a shell from the exploitation of file upload on a Linux web server and how we can dump the database that is running on the system.
Backtrack includes a variety of web shells for different technologies like PHP,ASP etc.In our example we will use the damn vulnerable web application which is written in PHP in order to attack the web server through the file upload.The web shell that we will use in our case it will be the php-reverse-shell.
uploading the web shell
uploading the web shell

Now we have to set our machine to listen on the same port as our web shell.We can do this with netcat and the command nc -lvp 4444.The next step is to go back to the web application and to try to access the URL that the PHP reverse shell exists.We will notice that it will return a shell to our console
Read more......http://pentestlab.wordpress.com/2012/12/23/file-upload-exploitation/?goback=%2Egmp_970937%2Egde_970937_member_198615424

Viewing all articles
Browse latest Browse all 8064

Trending Articles