Closed (fixed)
Project:
Security Review
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2010 at 18:36 UTC
Updated:
31 Jul 2013 at 21:41 UTC
Jump to comment: Most recent file
Comments
Comment #1
coltraneOk. 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.
Comment #2
gregglesRather 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.
Comment #3
babbage commentedgreggles' 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.
Comment #4
gregglesThe 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.
Comment #5
coltraneHow about I drupal_alter() the ignore list? Then Security Review doesn't have to add exceptions.
the .htaccess check should still happen.
Comment #6
coltraneCommitted #5 http://drupalcode.org/project/security_review.git/commit/fb2d246 and http://drupalcode.org/project/security_review.git/commit/12b6b76