WordPress.org

Ready to get started?Download WordPress

Forums

Exploit Scanner
[Bug+fix] Unreadable files (2 posts)

  1. jrf
    Member
    Posted 1 year ago #

    Hiya,

    Very useful tool. I found a small bug, please find the fix for it below. Would be great if you could incorporate it into the codebase.

    Find line 796:

    $contents = file( $this->path . $file );
    foreach ( $contents as $n => $line ) {

    Replace with:

    $contents = is_readable( $this->path . $file ) ? @file( $this->path . $file ) : false;
    if( $contents !== false ) {
    	foreach ( $contents as $n => $line ) {

    Obviously the newly added if() will still need to be closed round line 829 and you may want to adjust the indentation of the foreach content ;-)

    Hope this helps!

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/exploit-scanner/

  2. jrf
    Member
    Posted 1 year ago #

    Hmm... the recent new version (1.3.3) hasn't yet incorporated this fix....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic