-
Notifications
You must be signed in to change notification settings - Fork 163
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
[4.0] Block access to uploaded error-\d.html files #115
Comments
+1... will get around to this. |
Um, I can't seem to be able to do this without blocking ErrorDocument in the root .htaccess from working. If we make these files non-web accessible, we can't use apache to serve errors directly anymore. |
I found another issue in the template evaluation at silverstripe/silverstripe-framework#6061 |
Best fix here is probably to save these somewhere other than the assets/ folder, e.g. somewhere outside of the web root. |
@sminnee I could fix this by removing ErrorDocument, and documenting how to add it back again. However, it would break the ability for apache to handle errors natively (which, in practice, I never really see done. Error handling is done by PHP). Would this be an acceptable fix? |
👍 |
See #113
This opens a risk of users uploading
error-*.html
files and having them presented by the site as legitimate pages which could be used for nefarious purposes.This needs preventing.
The text was updated successfully, but these errors were encountered: