Closed (fixed)
Project:
Security Review
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jun 2012 at 21:56 UTC
Updated:
14 Aug 2013 at 19:38 UTC
Jump to comment: Most recent file
Comments
Comment #1
gregglesand patch.
Comment #2
coltraneNeeds work per #1645752: make files security check more paranoid
Comment #3
gregglesI probably won't have time for this in the near future.
Comment #4
simone960 commentedI encountered that too. I have created a private file and set permission to "777" at the root directory.
Security module identified this as problem. But if I don't set "private" as "777", configuration at File system page will have problem to save. Security review module take it as problem.
Comment #5
coltraneUpdated comment for check and found that the private files check only ran if private files was set as default. That check should run whenever the private files directory is set. Sneaking that into this patch.
Comment #6
coltranehad to remove the private files test now that it's being checked correctly.
Comment #7
coltraneAnd those last two were the wrong patches. Here we go!
Comment #8
coltraneCommitted http://drupalcode.org/project/security_review.git/commit/1e83b2a
Comment #9
raulmuroc commentedDid somebody test this? To me it continuos to set 'private_files' as dangerous to be writable.
With the patch applied to an older version of the module or with the module holding commit.
Comment #10
coltraneI tested but it sounds like additional testing is necessary! Where is your private files directory? Can you confirm it's listed in this check when running 7.x-1.x-dev branch on your site?
Comment #11
raulmuroc commentedI now downloaded latest 7.x-1.x-dev version through git and did security review.
I get:
So yes, it needs to be reviewed ;)
Comment #12
coltraneNot to belabor the point, but can you confirm that 'private_files' is what you have entered as the path to you private files on admin/config/media/file-system ?
Comment #13
coltrane@RaulMuroc also what type of web server are you running this check on? I haven't yet been able to replicate this error so any information you can provide will be helpful, thank you.
Comment #14
raulmuroc commentedIn admin/config/media/file-system:
Private file system path
private_files
So this is correct :S
Web server:
Linux vls104.dinaserver.com 3.0.4-dh-xen-32 i686
apache2
Hope it helps.
Comment #15
coltraneAh, I can replicate! I forget right now why a leading character is chopped off the private files string but it was causing it to not match when the private files directory was in the web root. This should fix it!
Comment #16
coltraneCommitted http://drupalcode.org/project/security_review.git/commit/9c0fddd
Comment #17
raulmuroc commentedNice work :-)!