cosmocode / dokuwiki-plugin-farmer

Completely manages a DokuWiki farm setup
https://www.dokuwiki.org/plugin:farmer
GNU General Public License v2.0
11 stars 6 forks source link

Animal directories are not protected #74

Open bamyasi opened 2 years ago

bamyasi commented 2 years ago

When new animal is created via plugin's Add new Animal tab, no .htaccess files are copied/created to protect its 'data' and 'conf' directories from improper access. Hence, typing a fully qualified URL, e.g. http://localhost/farm/animal/data/, will produce index of all files in the animal's data directory. Same for the conf directory. This could potentially compromise site security.

splitbrain commented 2 years ago

Animals should be created outside the web servers document root. Adding a .htaccess for good measure might be a good idea anyway. PR welcome