# Path Traversal & File Inclusion

> Master path traversal and file inclusion. Learn to exploit unsafe file paths, bypass filters, and prove safe file-read impact.

Canonical: https://codelivly.com/rooms/path-traversal-file-inclusion
Last updated: 2026-11-29

| | |
|---|---|
| Level | Intermediate |
| Category | Web Security |
| Lessons | 6 |
| Estimated time | 3 h |
| XP | 1150 |

This module explores Path Traversal and File Inclusion vulnerabilities, where applications unsafely use user-controlled input to access files or include server-side resources. You will learn how directory traversal sequences, encoding tricks, filesystem normalization, and insecure include logic can expose sensitive files or lead to code execution in misconfigured environments. The module culminates in a guided lab where you will prove safe file-read impact using authorized lab-only files and professional reporting techniques.

## Lessons

1. What is Path Traversal & Why It Matters (30 min)
2. Traversal Sequences and Encoding Tricks (30 min)
3. Local File Inclusion and Wrapper Abuse (30 min)
4. From File Read to Code Execution (30 min)
5. Defender's View: Canonical Paths and Allowlists (30 min)
6. Guided Lab: Read a Lab Config File via Traversal (30 min)

## Related

- [Learning path: Server-Side Injection Beyond SQLi Basics](https://codelivly.com/learning-paths/server-side-injection-beyond-sqli-basics)
- [All rooms](https://codelivly.com/rooms)
