Skip to content

.htaccess in files dir is not set correctly #10

@Haribo112

Description

@Haribo112

The script assigns write permissions to the group for all files under web/sites/default/files, including the .htaccess file. Drupal Security Review subsequently complains that Drupal is able to execute PHP files in the files directory, because the .htaccess file itself is writable and can thus be altered to allow said PHP file execution.

Settings the permissions of the .htaccess file to rw_r____ (640) seems to fix the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions