HomeCybersecurityPath Traversal Defense Lab

Path Traversal Defense Lab

Interactive 3D path-traversal simulator: send a crafted '../' request against a file server, watch a naive path-concatenation bug let it escape the sandbox, then flip on canonicalization + prefix-check and watch the same request get blocked.

Cybersecurity3DModerate60 FPS
secure-coding ↗ Open standalone

This simulator turns a classic secure-coding bug — path (directory) traversal — into a walkable 3D building. Each floor is one directory level; the green floor is the application's sandbox root. Send a request path containing ../ segments and a walker climbs or descends floor by floor exactly the way the server's path-resolution logic would. In "naive concatenation" mode the walker is free to wander below the root into the red danger zone and the request still comes back 200 OK — a real information-disclosure bug. Flip to "canonicalize + prefix-check" and the identical request is stopped the instant it would cross the root boundary, with a 403 response. Live readouts track the resolved depth, how many .. segments were used, and a running count of breaches vs. blocked attempts.

⚙ Under the hood

Send a crafted '../' request against a simulated file server and watch a naive path-concatenation bug let it escape the sandbox in 3D, then flip on canonicalization plus a prefix-check and watch the identical request get blocked.

cybersecuritysecure-codingpath-traversalinput-validationweb-security

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)