I want to allow registered users of a website (PHP) to upload files (documents), which are going to be publicly available for download.
In this context, is the fact that I keep the file’s original name a vulnerability ?
If it is one, I would like to know why, and how to get rid of it.
I want to allow registered users of a website ( PHP ) to upload
Share
That depends where you store the filename. If you store the name in a database, in strictly typed variable, then HTML encode before you display it on a web page, there won’t be any issues.