Sucuri Security – Auditing, Malware Scanner and Security Hardening - Version 1.8.32

Version Description

  • Fixed "Empty wp-config file after automatic secret key updates"
Download this release

Release Info

Developer unifiedexp
Plugin Icon 128x128 Sucuri Security – Auditing, Malware Scanner and Security Hardening
Version 1.8.32
Comparing to
See all releases

Code changes from version 1.8.31 to 1.8.32

lang/sucuri-scanner.pot CHANGED
@@ -2,7 +2,7 @@
2
  # This file is distributed under the same license as the Sucuri Security - Auditing, Malware Scanner and Hardening plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Sucuri Security - Auditing, Malware Scanner and Hardening 1.8.31\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sucuri-wordpress-plugin\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -10,7 +10,7 @@ msgstr ""
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "POT-Creation-Date: 2022-06-08T17:04:41+00:00\n"
13
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: sucuri-scanner\n"
16
 
2
  # This file is distributed under the same license as the Sucuri Security - Auditing, Malware Scanner and Hardening plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Sucuri Security - Auditing, Malware Scanner and Hardening 1.8.32\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sucuri-wordpress-plugin\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "POT-Creation-Date: 2022-06-08T17:04:41+00:00\n"
13
+ "PO-Revision-Date: 2022-07-01T10:00:00+00:00\n"
14
  "X-Generator: WP-CLI 2.5.0\n"
15
  "X-Domain: sucuri-scanner\n"
16
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate Link: https://sucuri.net/
4
  Tags: malware, security, firewall, scan, spam, virus, sucuri, protection, blocklist, detection, hardening, file integrity
5
  Requires at least: 3.6
6
  Tested up to: 6.0
7
- Stable tag: 1.8.31
8
 
9
  The Sucuri WordPress Security plugin is a security toolset for security integrity monitoring, malware detection and security hardening.
10
 
@@ -195,6 +195,9 @@ This version adds an option to refresh the malware scan results on demand, as we
195
  Daniel is no longer maintaining the Sucuri plugin at GoDaddy. We have transferred it to a dedicated team to maintain and improve it.
196
 
197
  == Changelog ==
 
 
 
198
  = 1.8.31 =
199
  * Fixed "Path cannot be empty" error
200
 
4
  Tags: malware, security, firewall, scan, spam, virus, sucuri, protection, blocklist, detection, hardening, file integrity
5
  Requires at least: 3.6
6
  Tested up to: 6.0
7
+ Stable tag: 1.8.32
8
 
9
  The Sucuri WordPress Security plugin is a security toolset for security integrity monitoring, malware detection and security hardening.
10
 
195
  Daniel is no longer maintaining the Sucuri plugin at GoDaddy. We have transferred it to a dedicated team to maintain and improve it.
196
 
197
  == Changelog ==
198
+ = 1.8.32 =
199
+ * Fixed "Empty wp-config file after automatic secret key updates"
200
+
201
  = 1.8.31 =
202
  * Fixed "Path cannot be empty" error
203
 
src/cron.lib.php CHANGED
@@ -46,7 +46,7 @@ class SucuriScanCrons extends SucuriScan
46
  {
47
  $wpconfig_process = SucuriScanEvent::setNewConfigKeys();
48
  if (!$wpconfig_process) {
49
- SucuriScanEvent::reportNoticeEvent(__('Automatic update of security keys failed. WordPress configuration file was not found.', 'sucuri-scanner'));
50
  } elseif ($wpconfig_process['updated']) {
51
  SucuriScanEvent::reportNoticeEvent(__('Automatic update of security keys succeeded.', 'sucuri-scanner'));
52
  } else {
46
  {
47
  $wpconfig_process = SucuriScanEvent::setNewConfigKeys();
48
  if (!$wpconfig_process) {
49
+ SucuriScanEvent::reportNoticeEvent(__('Automatic update of security keys failed. WordPress configuration file was not found or new keys could not be created.', 'sucuri-scanner'));
50
  } elseif ($wpconfig_process['updated']) {
51
  SucuriScanEvent::reportNoticeEvent(__('Automatic update of security keys succeeded.', 'sucuri-scanner'));
52
  } else {
src/event.lib.php CHANGED
@@ -853,6 +853,10 @@ class SucuriScanEvent extends SucuriScan
853
  $content = SucuriScanFileInfo::fileContent($config_path);
854
  $config_lines = explode("\n", $content); /* maintain new lines */
855
  $new_keys = SucuriScanAPI::getNewSecretKeys();
 
 
 
 
856
  $new_keys_string = '';
857
  $old_keys_string = '';
858
  $old_keys = array();
853
  $content = SucuriScanFileInfo::fileContent($config_path);
854
  $config_lines = explode("\n", $content); /* maintain new lines */
855
  $new_keys = SucuriScanAPI::getNewSecretKeys();
856
+ if (!$new_keys) {
857
+ return false;
858
+ }
859
+
860
  $new_keys_string = '';
861
  $old_keys_string = '';
862
  $old_keys = array();
src/settings-posthack.php CHANGED
@@ -60,7 +60,7 @@ class SucuriScanSettingsPosthack extends SucuriScanSettings
60
  $wpconfig_process = SucuriScanEvent::setNewConfigKeys();
61
 
62
  if (!$wpconfig_process) {
63
- SucuriScanInterface::error(__('WordPress configuration file was not found.', 'sucuri-scanner'));
64
  } elseif ($wpconfig_process['updated']) {
65
  SucuriScanEvent::reportNoticeEvent(__('Generate new security keys (success)', 'sucuri-scanner'));
66
  SucuriScanInterface::info(__('Secret keys updated successfully (summary of the operation bellow).', 'sucuri-scanner'));
60
  $wpconfig_process = SucuriScanEvent::setNewConfigKeys();
61
 
62
  if (!$wpconfig_process) {
63
+ SucuriScanInterface::error(__('WordPress configuration file was not found or new keys could not be created.', 'sucuri-scanner'));
64
  } elseif ($wpconfig_process['updated']) {
65
  SucuriScanEvent::reportNoticeEvent(__('Generate new security keys (success)', 'sucuri-scanner'));
66
  SucuriScanInterface::info(__('Secret keys updated successfully (summary of the operation bellow).', 'sucuri-scanner'));
sucuri.php CHANGED
@@ -8,7 +8,7 @@
8
  * Author: Sucuri Inc.
9
  * Text Domain: sucuri-scanner
10
  * Domain Path: /lang
11
- * Version: 1.8.31
12
  *
13
  * PHP version 7
14
  *
@@ -85,7 +85,7 @@ define('SUCURISCAN', 'sucuriscan');
85
  /**
86
  * Current version of the plugin's code.
87
  */
88
- define('SUCURISCAN_VERSION', '1.8.31');
89
 
90
  /**
91
  * Defines the human readable name of the plugin.
8
  * Author: Sucuri Inc.
9
  * Text Domain: sucuri-scanner
10
  * Domain Path: /lang
11
+ * Version: 1.8.32
12
  *
13
  * PHP version 7
14
  *
85
  /**
86
  * Current version of the plugin's code.
87
  */
88
+ define('SUCURISCAN_VERSION', '1.8.32');
89
 
90
  /**
91
  * Defines the human readable name of the plugin.