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

Block common log file names in .htaccess #153

Merged
merged 1 commit into from
Mar 16, 2017

Conversation

Zauberfisch
Copy link
Contributor

I've seen it happen quiet frequently that error logs are located in the web root or Debug::log() statements where forgotten and deployed to live.
I think disallowing the most common file names here would limit the potential of accidentally exposing sensitive information drastically (especially because the Debug::log() file name or location can not be configured).

@dhensby
Copy link
Contributor

dhensby commented Feb 19, 2017

Couldn't we just block *.log files?

@Zauberfisch
Copy link
Contributor Author

@dhensby hmm, not to sure about global .log as you would potentially also block a file uploaded to assets/public-downloadable.log, perhaps we could do /*.log.
But I made it this specific here to ensure we are not breaking other peoples use-cases.

@dhensby dhensby merged commit 0e7f29b into silverstripe:master Mar 16, 2017
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

Successfully merging this pull request may close these issues.

2 participants