As per the link below, ImageMagick supports a huge number of file formats.
http://www.imagemagick.org/script/formats.php
This could be a potential attack vector when servers allow visitors to upload any image file format. Is there a way to limit processing to certain formats only?
Example:
http://www.imagemagick.org/script/formats.php
This could be a potential attack vector when servers allow visitors to upload any image file format. Is there a way to limit processing to certain formats only?
Example:
MagickReadSettings settings = new MagickReadSettings();
settings.AllowedFormats = "jpg,tiff,gif";
Thank you for your help.