There seem to be certain situations (suphp) where it's not yet clear if this module is doing an accurate job of detecting editable files. We should attempt to write a file and edit a different file (probably one included with this module such as a TEST.txt) to see if the operation succeeds. Nothing beats performing the exploit as a way to test if the configuration is vulnerable to it...

Comments

greggles’s picture

Status: Active » Needs review
StatusFileSize
new5.82 KB

And here's an attempt.

greggles’s picture

StatusFileSize
new3.97 KB

Now with the IGNOREME.txt file.

This also applies to 7.x and should apply to 6.x.

BrockBoland’s picture

Status: Needs review » Reviewed & tested by the community

Works great.

Patch applies cleanly on 6, but on 7 it choked on that last chunk - removing the space after 'html' => $html,. Since that was just a whitespace cleanup, I don't think it's a problem.

coltrane’s picture

Status: Reviewed & tested by the community » Needs work

The file_write_test files should be cleared routinely. The check itself could remove previous files or cron could. Of course, once the check is secured files won't be removed.

coltrane’s picture

Status: Needs work » Fixed

Spoke with greggles little more and accept that some files will stay around until the user fixes the problem.

Committed http://drupalcode.org/project/security_review.git/commit/1c9914a and http://drupalcode.org/project/security_review.git/commit/9577d58

greggles’s picture

Thanks, Ben!

Status: Fixed » Closed (fixed)

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

coltrane’s picture

Status: Closed (fixed) » Needs work

warning: fopen(./sites/all/modules/contrib/security_review/IGNOREME.txt): failed to open stream: Permission denied in /Users/bjeavons/dev/modules/security_review-6.x-1.x/security_review.checks.inc on line 34.

Just need to suppress warnings on that fopen I think.

coltrane’s picture

Status: Needs work » Needs review
StatusFileSize
new878 bytes
new1.01 KB
greggles’s picture

Status: Needs review » Reviewed & tested by the community

Seems good to me, I didn't test.

coltrane’s picture

Status: Reviewed & tested by the community » Fixed

Fixed and committed to both branches

Status: Fixed » Closed (fixed)

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