Changeset 3807487
- Timestamp:
- 11/17/2026 01:28:27 PM (less than one hour ago)
- Location:
- sentinelo
- Files:
-
- 12 edited
- 1 copied
-
tags/1.6.6 (copied) (copied from sentinelo/trunk )
-
tags/1.6.6/includes/class-sentinelo-constants.php (modified) (1 diff)
-
tags/1.6.6/readme.txt (modified) (2 diffs)
-
tags/1.6.6/sentinelo.php (modified) (1 diff)
-
tags/1.6.6/src/Adapter/Wp/WpPlatformProbe.php (modified) (2 diffs)
-
tags/1.6.6/src/Scanner/Checks/WpConfigCheck.php (modified) (2 diffs)
-
tags/1.6.6/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/class-sentinelo-constants.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sentinelo.php (modified) (1 diff)
-
trunk/src/Adapter/Wp/WpPlatformProbe.php (modified) (2 diffs)
-
trunk/src/Scanner/Checks/WpConfigCheck.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sentinelo/tags/1.6.6/includes/class-sentinelo-constants.php
r3805393 r3807487 9 9 // Version 10 10 if (!defined('SENTINELO_VERSION')) { 11 define('SENTINELO_VERSION', '1.6. 5');11 define('SENTINELO_VERSION', '1.6.6'); 12 12 } 13 13 -
sentinelo/tags/1.6.6/readme.txt
r3805393 r3807487 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.2 7 Stable tag: 1.6. 57 Stable tag: 1.6.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 120 120 == Changelog == 121 121 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 122 126 = 1.6.5 = 123 127 * 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 7 7 * Plugin URI: https://sentinelo.fr/maintenance-wordpress 8 8 * Description: Agent de maintenance silencieux — connecte votre site WordPress à la plateforme Sentinelo. 9 * Version: 1.6. 59 * Version: 1.6.6 10 10 * Author: Sentinelo 11 11 * Author URI: https://sentinelo.fr -
sentinelo/tags/1.6.6/src/Adapter/Wp/WpPlatformProbe.php
r3769032 r3807487 22 22 'ithemes-security-pro/ithemes-security-pro.php', 23 23 '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', 24 31 ]; 25 32 … … 114 121 } 115 122 } 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 } 116 128 return false; 117 129 } -
sentinelo/tags/1.6.6/src/Scanner/Checks/WpConfigCheck.php
r3769032 r3807487 54 54 } 55 55 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. 57 59 $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]); 59 61 $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)']; 62 64 } 63 65 … … 88 90 } 89 91 } 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 } 90 106 } -
sentinelo/tags/1.6.6/vendor/composer/installed.php
r3800466 r3807487 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' a6798d57fe7b55d46071a200ae7740806ea0674b',6 'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' a6798d57fe7b55d46071a200ae7740806ea0674b',25 'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
sentinelo/trunk/includes/class-sentinelo-constants.php
r3805393 r3807487 9 9 // Version 10 10 if (!defined('SENTINELO_VERSION')) { 11 define('SENTINELO_VERSION', '1.6. 5');11 define('SENTINELO_VERSION', '1.6.6'); 12 12 } 13 13 -
sentinelo/trunk/readme.txt
r3805393 r3807487 5 5 Tested up to: 7.1 6 6 Requires PHP: 8.2 7 Stable tag: 1.6. 57 Stable tag: 1.6.6 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 120 120 == Changelog == 121 121 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 122 126 = 1.6.5 = 123 127 * 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 7 7 * Plugin URI: https://sentinelo.fr/maintenance-wordpress 8 8 * Description: Agent de maintenance silencieux — connecte votre site WordPress à la plateforme Sentinelo. 9 * Version: 1.6. 59 * Version: 1.6.6 10 10 * Author: Sentinelo 11 11 * Author URI: https://sentinelo.fr -
sentinelo/trunk/src/Adapter/Wp/WpPlatformProbe.php
r3769032 r3807487 22 22 'ithemes-security-pro/ithemes-security-pro.php', 23 23 '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', 24 31 ]; 25 32 … … 114 121 } 115 122 } 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 } 116 128 return false; 117 129 } -
sentinelo/trunk/src/Scanner/Checks/WpConfigCheck.php
r3769032 r3807487 54 54 } 55 55 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. 57 59 $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]); 59 61 $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)']; 62 64 } 63 65 … … 88 90 } 89 91 } 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 } 90 106 } -
sentinelo/trunk/vendor/composer/installed.php
r3800466 r3807487 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' a6798d57fe7b55d46071a200ae7740806ea0674b',6 'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' a6798d57fe7b55d46071a200ae7740806ea0674b',25 'reference' => 'dfe82c036b04a49b35eeb6f3eacf08397252577f', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../',
Note:
See TracChangeset
for help on using the changeset viewer.