Skip to main contentSkip to main content
Room Banner
Back to all walkthroughs
Room Icon

File Inclusion, Path Traversal

Premium room

Exploit File Inclusion and Path Traversal vulnerabilities.

medium

60 min

15,506

User profile photo.
User profile photo.

To access material, start machines and answer questions login.

Introduction

File Inclusion and Path Traversal are vulnerabilities that arise when an application allows external input to change the path for accessing files. For example, imagine a library where the catalogue system is manipulated to access restricted books not meant for public viewing. Similarly, in web applications, the vulnerabilities primarily arise from improper handling of file paths and URLs. These vulnerabilities allow attackers to include files not intended to be part of the web application, leading to unauthorized access or execution of code.

Objectives

  1. Understand what File Inclusion and Path Traversal attacks are and their impact.
  2. Identify File Inclusion and Path Traversal vulnerabilities in web applications.
  3. Exploit these vulnerabilities in a controlled environment.
  4. Understand and apply measures to mitigate and prevent these vulnerabilities.

Prerequisites

  1. Basic understanding of web application architecture and server-side scripting.
  2. Familiarity with common programming languages used in web development, like .
  3. Basic knowledge of or .
  4. Basic knowledge of File Inclusion vulnerabilities.
Answer the questions below
Deploy the target VM attached to this task by pressing the green Start Machine button. After obtaining the machine's generated IP address, you can either use the AttackBox or your own VM connected to TryHackMe's VPN.

After 3 minutes, visit http://MACHINE_IP to access the machine.

Ready to learn Cyber Security?

The File Inclusion, Path Traversal room is only available for premium users. Signup now to access more than 500 free rooms and learn cyber security through a fun, interactive learning environment.

Already have an account? Log in

We use cookies to ensure you get the best user experience. For more information see our cookie policy.