Book Image

Hands-On Web Penetration Testing with Metasploit

By : Harpreet Singh, Himanshu Sharma
Book Image

Hands-On Web Penetration Testing with Metasploit

By: Harpreet Singh, Himanshu Sharma

Overview of this book

Metasploit has been a crucial security tool for many years. However, there are only a few modules that Metasploit has made available to the public for pentesting web applications. In this book, you'll explore another aspect of the framework – web applications – which is not commonly used. You'll also discover how Metasploit, when used with its inbuilt GUI, simplifies web application penetration testing. The book starts by focusing on the Metasploit setup, along with covering the life cycle of the penetration testing process. Then, you will explore Metasploit terminology and the web GUI, which is available in the Metasploit Community Edition. Next, the book will take you through pentesting popular content management systems such as Drupal, WordPress, and Joomla, which will also include studying the latest CVEs and understanding the root cause of vulnerability in detail. Later, you'll gain insights into the vulnerability assessment and exploitation of technological platforms such as JBoss, Jenkins, and Tomcat. Finally, you'll learn how to fuzz web applications to find logical security vulnerabilities using third-party tools. By the end of this book, you'll have a solid understanding of how to exploit and validate vulnerabilities by working with various tools and techniques.
Table of Contents (23 chapters)
1
Introduction
5
The Pentesting Life Cycle with Metasploit
10
Pentesting Content Management Systems (CMSes)
14
Performing Pentesting on Technological Platforms
18
Logical Bug Hunting

Chapter 10

  1. Different Drupal versions have different architectures and different features. If an exploit is based on Drupal's core components, it can be used for older versions as well. Other module- and plugin-based exploits may not work in the case of different Drupal versions.

  2. It is a good practice to install Drupal locally to test an exploit. If we are successful in exploiting Drupal locally, then we can use the same exploit on a remote Drupal site.

  3. Sometimes, there's a Web Application Firewall (WAF) placed in front of the web application, meaning that an exploit doesn't run successfully. In that case, we can either obfuscate or encode the payload used in the exploit and bypass WAF protection.

  4. If we have access to the Drupal administrator account, we can enable the PHP filters' module and configure the permissions for it. Once the permissions are...