X
X
XenTerSeO2015-10-18 20:16:23
Malware
XenTerSeO, 2015-10-18 20:16:23

How dangerous is it to allow users to upload any files to the server?

There is a site on ubuntu. It is possible for all registered users to upload any type of files. The site is located on the same server where the files are stored.
How dangerous can it be and how can you protect yourself from malicious files?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivanq, 2015-10-18
@XenTerSeO

Very dangerous - a hacker will conquer the server 100%. Let's say you have a PHP website. The user can upload a script to the server and then execute it.
The simplest code will delete the entire site. Do not run yourself!
@unlink($_SERVER["DOCUMENT_ROOT"]);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question