Chapter 7. Web Application Exploitation

In this chapter, we will cover the following recipes:

  • Using Burp for active/passive scanning
  • Using sqlmap to find SQL Injection on the login page
  • Using sqlmap to find SQL Injection on URL parameters
  • Using commix for automated OS command injection
  • Using weevely for file upload vulnerability
  • Exploiting Shellshock using Burp
  • Using Metasploit to exploit Heartbleed
  • Using the FIMAP tool for file inclusion attacks (RFI/LFI)

Introduction

Web application penetration testing is the phase where we exploit the vulnerabilities that we have discovered during vulnerability assessment.

The success of penetration testing depends on how much information and vulnerabilities have been discovered so far. It may not be necessary that all the vulnerabilities that we have discovered can be exploited.

Web application exploitation is not dependent on what tools you use. It is an exercise of finding security issues in web applications. A web application is nothing but a software that runs on the web instead of locally on your operating system. It is meant to perform specific tasks and for specific users. The best way to exploit a web application is to understand what the application is about and what tasks it accomplishes and focus more on the logical working flow of the application. Web applications can be of different types and architectures; take, for example, dynamic web pages using PHP/Java/.NET and MySQL/MSSQL/Postgress or single page application using Web APIs. It would be far more comprehensive to test web applications when you understand the architecture of web applications, their underlying technology, and their purpose.

However, in this chapter, we have several tools available in Kali Linux that can be used for the exploitation of vulnerabilities found in web applications.

Note

Do not run the tools demonstrated in this chapter against public websites that are not your own and are not on your own servers. In this case, we have set up three vulnerable web applications running in the Docker to demonstrate the tools/techniques in this chapter. Be careful!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.104.149