Plugin Directory

Changeset 3807487


Ignore:
Timestamp:
11/17/2026 01:28:27 PM (less than one hour ago)
Author:
sentinelo
Message:

Release 1.6.6: wp-config blank-page false positive, more brute-force plugins recognised

Location:
sentinelo
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sentinelo/tags/1.6.6/includes/class-sentinelo-constants.php

    r3805393 r3807487  
    99// Version
    1010if (!defined('SENTINELO_VERSION')) {
    11     define('SENTINELO_VERSION', '1.6.5');
     11    define('SENTINELO_VERSION', '1.6.6');
    1212}
    1313
  • sentinelo/tags/1.6.6/readme.txt

    r3805393 r3807487  
    55Tested up to: 7.1
    66Requires PHP: 8.2
    7 Stable tag: 1.6.5
     7Stable tag: 1.6.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    120120== Changelog ==
    121121
     122= 1.6.6 =
     123* Fix: the wp-config.php check no longer reports a blank page as a leak. A healthy server executes the file and returns an empty page; only a response that contains the file's source (an opening PHP tag, or a DB_NAME / DB_USER / DB_PASSWORD / DB_HOST definition) is now reported.
     124* Fix: brute-force protection is now recognised for MalCare, Solid Security, Jetpack Protect (and Jetpack's Protect module), WP Cerber, Defender (free and Pro) and NinjaFirewall.
     125
    122126= 1.6.5 =
    123127* Fix: core integrity check no longer reports a false failure on sites installed from the English package and later switched to another language. A core file that does not match the site language's official checksums is now compared with the official en_US checksums of the same version; an exact match is an official file. A genuinely altered file matches neither and is still reported.
  • sentinelo/tags/1.6.6/sentinelo.php

    r3805393 r3807487  
    77 * Plugin URI:  https://sentinelo.fr/maintenance-wordpress
    88 * Description: Agent de maintenance silencieux — connecte votre site WordPress à la plateforme Sentinelo.
    9  * Version:     1.6.5
     9 * Version:     1.6.6
    1010 * Author:      Sentinelo
    1111 * Author URI:  https://sentinelo.fr
  • sentinelo/tags/1.6.6/src/Adapter/Wp/WpPlatformProbe.php

    r3769032 r3807487  
    2222        'ithemes-security-pro/ithemes-security-pro.php',
    2323        'all-in-one-wp-security-and-firewall/wp-security.php',
     24        'malcare-security/malcare.php',
     25        'better-wp-security/better-wp-security.php',       // Solid Security (gratuit)
     26        'jetpack-protect/jetpack-protect.php',
     27        'wp-cerber/wp-cerber.php',
     28        'defender-security/wp-defender.php',              // Defender (gratuit)
     29        'wp-defender/wp-defender.php',                    // Defender Pro
     30        'ninjafirewall/ninjafirewall.php',
    2431    ];
    2532
    … …  
    114121            }
    115122        }
     123        // Jetpack complet : la protection contre la force brute y est un module.
     124        if (class_exists('Jetpack') && method_exists('Jetpack', 'is_module_active')
     125            && \Jetpack::is_module_active('protect')) {
     126            return true;
     127        }
    116128        return false;
    117129    }
  • sentinelo/tags/1.6.6/src/Scanner/Checks/WpConfigCheck.php

    r3769032 r3807487  
    5454        }
    5555
    56         // Check if wp-config.php is accessible via HTTP
     56        // wp-config.php servi EN CLAIR par HTTP. Un 200 seul ne prouve rien : PHP
     57        // exécute le fichier, qui n'affiche rien, et rend une page blanche — l'état
     58        // normal d'un serveur sain. Seul le source dans la réponse est une fuite.
    5759        $testUrl = site_url() . '/wp-config.php';
    58         $response = wp_remote_get($testUrl, ['timeout' => 5]);
     60        $response = wp_remote_get($testUrl, ['timeout' => 5, 'limit_response_size' => 65536]);
    5961        $httpCode = is_wp_error($response) ? 0 : wp_remote_retrieve_response_code($response);
    60         if ($httpCode === 200) {
    61             $issues[] = ['issue' => 'wp-config.php accessible publiquement via HTTP'];
     62        if ($httpCode === 200 && self::bodyExposesSource(wp_remote_retrieve_body($response))) {
     63            $issues[] = ['issue' => 'wp-config.php servi en clair via HTTP (identifiants de base lisibles)'];
    6264        }
    6365
    … …  
    8890        }
    8991    }
     92
     93    /**
     94     * Vrai si la réponse porte le SOURCE du fichier : une définition de constante de
     95     * base, ou un corps qui commence par la balise PHP. Une page blanche, ou une page
     96     * HTML qui citerait le mot par hasard, n'en est pas une.
     97     */
     98    public static function bodyExposesSource(string $body): bool
     99    {
     100        if (str_starts_with(ltrim($body), '<?php')) {
     101            return true;
     102        }
     103
     104        return (bool) preg_match('/define\s*\(\s*[\'"]DB_(NAME|USER|PASSWORD|HOST)[\'"]/', $body);
     105    }
    90106}
  • sentinelo/tags/1.6.6/vendor/composer/installed.php

    r3800466 r3807487  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'a6798d57fe7b55d46071a200ae7740806ea0674b',
     6        'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => 'a6798d57fe7b55d46071a200ae7740806ea0674b',
     25            'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
  • sentinelo/trunk/includes/class-sentinelo-constants.php

    r3805393 r3807487  
    99// Version
    1010if (!defined('SENTINELO_VERSION')) {
    11     define('SENTINELO_VERSION', '1.6.5');
     11    define('SENTINELO_VERSION', '1.6.6');
    1212}
    1313
  • sentinelo/trunk/readme.txt

    r3805393 r3807487  
    55Tested up to: 7.1
    66Requires PHP: 8.2
    7 Stable tag: 1.6.5
     7Stable tag: 1.6.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    120120== Changelog ==
    121121
     122= 1.6.6 =
     123* Fix: the wp-config.php check no longer reports a blank page as a leak. A healthy server executes the file and returns an empty page; only a response that contains the file's source (an opening PHP tag, or a DB_NAME / DB_USER / DB_PASSWORD / DB_HOST definition) is now reported.
     124* Fix: brute-force protection is now recognised for MalCare, Solid Security, Jetpack Protect (and Jetpack's Protect module), WP Cerber, Defender (free and Pro) and NinjaFirewall.
     125
    122126= 1.6.5 =
    123127* Fix: core integrity check no longer reports a false failure on sites installed from the English package and later switched to another language. A core file that does not match the site language's official checksums is now compared with the official en_US checksums of the same version; an exact match is an official file. A genuinely altered file matches neither and is still reported.
  • sentinelo/trunk/sentinelo.php

    r3805393 r3807487  
    77 * Plugin URI:  https://sentinelo.fr/maintenance-wordpress
    88 * Description: Agent de maintenance silencieux — connecte votre site WordPress à la plateforme Sentinelo.
    9  * Version:     1.6.5
     9 * Version:     1.6.6
    1010 * Author:      Sentinelo
    1111 * Author URI:  https://sentinelo.fr
  • sentinelo/trunk/src/Adapter/Wp/WpPlatformProbe.php

    r3769032 r3807487  
    2222        'ithemes-security-pro/ithemes-security-pro.php',
    2323        'all-in-one-wp-security-and-firewall/wp-security.php',
     24        'malcare-security/malcare.php',
     25        'better-wp-security/better-wp-security.php',       // Solid Security (gratuit)
     26        'jetpack-protect/jetpack-protect.php',
     27        'wp-cerber/wp-cerber.php',
     28        'defender-security/wp-defender.php',              // Defender (gratuit)
     29        'wp-defender/wp-defender.php',                    // Defender Pro
     30        'ninjafirewall/ninjafirewall.php',
    2431    ];
    2532
    … …  
    114121            }
    115122        }
     123        // Jetpack complet : la protection contre la force brute y est un module.
     124        if (class_exists('Jetpack') && method_exists('Jetpack', 'is_module_active')
     125            && \Jetpack::is_module_active('protect')) {
     126            return true;
     127        }
    116128        return false;
    117129    }
  • sentinelo/trunk/src/Scanner/Checks/WpConfigCheck.php

    r3769032 r3807487  
    5454        }
    5555
    56         // Check if wp-config.php is accessible via HTTP
     56        // wp-config.php servi EN CLAIR par HTTP. Un 200 seul ne prouve rien : PHP
     57        // exécute le fichier, qui n'affiche rien, et rend une page blanche — l'état
     58        // normal d'un serveur sain. Seul le source dans la réponse est une fuite.
    5759        $testUrl = site_url() . '/wp-config.php';
    58         $response = wp_remote_get($testUrl, ['timeout' => 5]);
     60        $response = wp_remote_get($testUrl, ['timeout' => 5, 'limit_response_size' => 65536]);
    5961        $httpCode = is_wp_error($response) ? 0 : wp_remote_retrieve_response_code($response);
    60         if ($httpCode === 200) {
    61             $issues[] = ['issue' => 'wp-config.php accessible publiquement via HTTP'];
     62        if ($httpCode === 200 && self::bodyExposesSource(wp_remote_retrieve_body($response))) {
     63            $issues[] = ['issue' => 'wp-config.php servi en clair via HTTP (identifiants de base lisibles)'];
    6264        }
    6365
    … …  
    8890        }
    8991    }
     92
     93    /**
     94     * Vrai si la réponse porte le SOURCE du fichier : une définition de constante de
     95     * base, ou un corps qui commence par la balise PHP. Une page blanche, ou une page
     96     * HTML qui citerait le mot par hasard, n'en est pas une.
     97     */
     98    public static function bodyExposesSource(string $body): bool
     99    {
     100        if (str_starts_with(ltrim($body), '<?php')) {
     101            return true;
     102        }
     103
     104        return (bool) preg_match('/define\s*\(\s*[\'"]DB_(NAME|USER|PASSWORD|HOST)[\'"]/', $body);
     105    }
    90106}
  • sentinelo/trunk/vendor/composer/installed.php

    r3800466 r3807487  
    44        'pretty_version' => 'dev-main',
    55        'version' => 'dev-main',
    6         'reference' => 'a6798d57fe7b55d46071a200ae7740806ea0674b',
     6        'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f',
    77        'type' => 'wordpress-plugin',
    88        'install_path' => __DIR__ . '/../../',
    … …  
    2323            'pretty_version' => 'dev-main',
    2424            'version' => 'dev-main',
    25             'reference' => 'a6798d57fe7b55d46071a200ae7740806ea0674b',
     25            'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f',
    2626            'type' => 'wordpress-plugin',
    2727            'install_path' => __DIR__ . '/../../',
Note: See TracChangeset for help on using the changeset viewer.