http://drupal.org/project/boost cache folder has to be writable by the server... it doesn't represent a security risk.

CommentFileSizeAuthor
#5 921972-d6.patch497 bytescoltrane
#5 921972-d7.patch532 bytescoltrane

Comments

coltrane’s picture

Ok. Security Review could provide a whitelist but it basically informs you of anything that's writeable. It's not perfect so the check can be ignored. A whitelist makes sense to me until it becomes quite large.

greggles’s picture

Rather than maintaining a whitelist (or in addition?) we could also look for an htaccess file in the root of the directory with "SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006"

Boost creates/uses that just like core does for the sites/default/files directory.

babbage’s picture

greggles' suggestion sounds perfectly sensible... but then I thought: if a Drupal-savvy exploit was creating files where it shouldn't, wouldn't it be a trivial issue to create such an .htaccess file in the directory it was exploiting? So doesn't seem ideal.

greggles’s picture

The point of creating these files is to execute them. So, if an htaccess is there with that entry then we're all set anyway.

The only exploit I can imagine with an htaccess with that entry would be uploading a ton of "bad" files for distribution, which they could do in the files directory anyway.

coltrane’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new532 bytes
new497 bytes

How about I drupal_alter() the ignore list? Then Security Review doesn't have to add exceptions.

the .htaccess check should still happen.

coltrane’s picture

Status: Fixed » Closed (fixed)

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