Učitavanje datoteka je česta značajka, ali znatan sigurnosni rizik — zlonamjerne datoteke mogu dovesti do izvršavanja koda, distribucije zlonamjernog softvera ili kompromitacije sustava. Osiguranje učitavanja zahtijeva validaciju vrsta datoteka, veličina i sadržaja, sigurno pohranjivanje datoteka i pažljivo njihovo dostavljanje.
Rizici učitavanja datoteka
Allowing users to upload files is dangerous if not secured:
✗ MALICIOUS executable/script files → could run on the server (e.g. uploading a web
shell / script that gets executed → server compromise)
✗ MALWARE distribution (files served to other users)
✗ Oversized files → denial of service (disk/memory exhaustion)
✗ Path traversal in filenames (../../) → overwrite system files
✗ Files with misleading types/content (a .jpg that's actually a script)
