The sites/default/files directory contains a .htaccess file that contains security measures. However, this file can be overridden in subdirectories, introducing security vulnerabilities without notification by Drupal of the potential issue. Core already scans for .htaccess files at one layer but not at the next layer(s) down. Why have the status page throw a flag when the htaccess files at the various file roots are wrong but ignore if they are reversed the next layer down?
Make the system stronger at preventing attacks by adding a warning about .htaccess files in subdirectories or having non-standard content in the public://.htaccess.
First step is to determine whether an improved scan and alert is something that should be included in core or in the Security Review module.
Applies to D8 and D7.
Reported by acrosman.
Comments
Comment #2
gregglesComment #3
acrosmanI'd like to see this added to core for two main reasons:
Comment #16
quietone commentedThis was a bugsmash triage target yesterday. catch, mstrelan and myself think this is a task. Changing to a task. catch also stated
However, there has been no discussion in support of this in the 6 years the issue has been opened. Maybe it is won't fix. I'll leave it open to allow for more opinions.