Piwigo sometimes receives a *.jpg file while it is in reality a *.heic file. The user might have thought renaming the file has also converted it's encoding (which is wrong). Sometimes an attacker also renames a file to bypass a first check and then induce specific operation server-side.
Let's add a stronger MIME type check.
Piwigo sometimes receives a *.jpg file while it is in reality a *.heic file. The user might have thought renaming the file has also converted it's encoding (which is wrong). Sometimes an attacker also renames a file to bypass a first check and then induce specific operation server-side.
Let's add a stronger MIME type check.
<!-- github-sync-id:4303341299 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Piwigo sometimes receives a *.jpg file while it is in reality a *.heic file. The user might have thought renaming the file has also converted it's encoding (which is wrong). Sometimes an attacker also renames a file to bypass a first check and then induce specific operation server-side.
Let's add a stronger MIME type check.