Open
Description
Describe the bug
Profile pictures uploaded through the website are not checked for either file size or aspect ratio, causing potential server storage issues and layout issues. So far I have tested with images of as large as 30MB which is quite unreasonable for a single image.
To Reproduce
Steps to reproduce the behavior:
- Go to the settings page of any profile you have access to
- Attempt to upload a profile picture of massive dimensions or a strange aspect ratio
- Save the profile picture
- You will get some kind of unexpected behavior; if the page loads after the image is uploaded to the server, you'll see the site cropping the profile picture in some areas and displaying it completely in others.
Expected behavior
The site should have the ability to respond with an error informing the user that their image does not meet certain requirements, like a file size limit or acceptable aspect ratio like 1:1 (or ideally a cropping dialogue would be offered).
Environment Details
- OS: Fedora Workstation 36
- Browser and Version: Firefox (RPM) 106.0.3