Hello,
I just began using Projeqtor and I do not well understand this security advise:
Security advise :
- Setup attachments directory and documents directory out of web access (outside document_root of web server)
This will prevent hachers from uploading php file and executing it on your server ...
Does it mean that I must place some folders or files out of the file httpdocs on my web server ? In this case, what are these folders/files ?
Could someone help me? I am a bit lost.
Thank you.
Hello Babynus,
Thank you for your answer.
Excuse my naivety, I just want to be certain that I understand these security issues. For the moment on my server, all files are in a folder named Projeqtor placed in httpdocs. All works well, but if I well understood, this is not among best practices and could also be dangerous...
In the folder named "files" I can see another folder named "attach". Is it this folder that I have to put outside the folder httpdocs (I mean on my server at the same level of httpdocs)?
The security advise mentions also another directory "documents", but I cannot see it in my files. Could you tell me where I can find it and whether I can put it also at the same level than httpdocs?
Thank you for your answers.
Let me explain security leak if you keep your files in htdocs folder :
Hacker can go and navigate to http://yourserver/projeqtor/files/attach/tryandguessfilename : if hacker tries many values for "tryandguessfilename", he will possibly retrieve an attached file from your server. If this file is confidential, you may be in great trouble.
This is a real issue as hacker do not have to be connected to try all the urls, and as ProjeQtOr is open source, the hacker can examine source code to guess which names are given (formatting rule).
If hacker (or some user with bad behavior) connects to your ProjeQtOr instance, he will try and upload some .php file, and then call it from direct url to do whatever he wants on your server (for instance delete all files, or retrieve server password file).
Fortunately, ProjeQtOr renames php files to avoid this leak, but not all executable files may be protected (recently, a leaked has been fixed for files named .php4 and .php5 that can be interpreted as php files)
If files are out of htdocs folder, they cannot be reached from direct url.
So now to your questions :
Is it this folder that I have to put outside the folder httpdocs (I mean on my server at the same level of httpdocs)
Yes, but not only.
You should put out of web reach :
files/attach (where attached files are stores)
/files/config (you must more your parameter.php file out of hacker reach, because it contains your infortation to connect to database)
Notice that you'll then have to change /tool/parametersLocation.php file
/files/cron (technical flder for automatic executions)
/files/documents (where document files are stored)
/files/logs (where log files are stored)
A hacker would love to read you log files as they may contain very interesting information on your server
In fact you should only leave :
/files/reports (where images for reports are stores, and report html pages must have access to them)
thumbs (where thumb images are stored)
This folder will be more used in V5 than it is in V4
The security advise mentions also another directory "documents", but I cannot see it in my files
This folder will be created it you store Documnts.
Or maybe you moved it somewhere else on first config.
Check location as described in Global Parameter screen.
I hope that was clear, and maybe these security hints may help others.
Hello Babynus,
Just a last question about my ticket. I have made what you told above, all worked well and I was able to connect but I had first an error message which told me that the logs file was invalid and that I have to check the file parameter. As the path was correct, I have changed the loglevel (I put 1 instead of 2). Now the error message disappeared, but I want to be sure that this change will not have some bad consequences I am not aware.
Thank you for your answer.
En poursuivant votre navigation, vous acceptez le dépôt de cookies tiers destinés au bon fonctionnement et à la sécurisation du site (gestion de session, reCaptcha) et à une analyse statistique anonymisée des accès sur notre site (Google Analytics). Si vous vous inscrivez, les informations que vous fournirez ne seront jamais divulguées à un tiers sous quelque forme que ce soit. En savoir plus
Paramétrages de cookies
×
Cookies fonctionnels
Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.
Session
Veuillez vous connecter pour voir vos activités!
Autres cookies
Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.