Currently if you have your files directory at /sites/default/files and also a malicious directory that is web-writable at /files/ then the second directory is not identified as a problem. Ideally the module should identify the second directory as a potential problem.

Comments

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1.42 KB

and patch.

If this works for you then I can re-roll #1645750: identify private files as a non-dangerous writable dir to apply after this and use the extra './' .

crimsondryad’s picture

We are running multisite installs and we also use a custom directory for files ( ie, not /sites/default/files ) in the Drupal webroot ( ie /media-assets ). In this case, it seems like not only should the patch check /sites/default/files, but also whatever the Drupal files path is defined as in Configuration > File System

coltrane’s picture

Status: Needs review » Fixed

@crimsondryad it does use the variable that contains the path set at Admin > Configuration > File System.

Patch works well, thanks greggles! http://drupalcode.org/project/security_review.git/commit/aa1422d

coltrane’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)

Re-opening to port to D6.

coltrane’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.