In Expression Engine before 6.0.3, addonIcon in Addons/file/mod.file.php relies on the untrusted input value of input->get('file') instead of the fixed file names of icon.png and icon.svg.
https://github.com/ExpressionEngine/ExpressionEngine/releases/tag/6.0.3