Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animal directories are not protected #74

Open
bamyasi opened this issue Mar 8, 2022 · 1 comment
Open

Animal directories are not protected #74

bamyasi opened this issue Mar 8, 2022 · 1 comment

Comments

@bamyasi
Copy link

bamyasi commented Mar 8, 2022

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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants