Shield Security for WordPress - Version 12.0.8

Version Description

Download this release

Release Info

Developer paultgoodchild
Plugin Icon 128x128 Shield Security for WordPress
Version 12.0.8
Comparing to
See all releases

Code changes from version 12.0.7 to 12.0.8

cl.json CHANGED
@@ -128,6 +128,12 @@
128
  "title": "Prevent PHP exception being thrown in certain cases.",
129
  "description": [],
130
  "patch": "12.0.4"
 
 
 
 
 
 
131
  }
132
  ]
133
  },
128
  "title": "Prevent PHP exception being thrown in certain cases.",
129
  "description": [],
130
  "patch": "12.0.4"
131
+ },
132
+ {
133
+ "type": "fixed",
134
+ "title": "Ensure Shield runs only on supported MySQL servers.",
135
+ "description": [],
136
+ "patch": "12.0.8"
137
  }
138
  ]
139
  },
icwp-wpsf.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
- * Version: 12.0.7
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
3
  * Plugin Name: Shield Security
4
  * Plugin URI: https://shsec.io/2f
5
  * Description: Powerful, Easy-To-Use #1 Rated WordPress Security System
6
+ * Version: 12.0.8
7
  * Text Domain: wp-simple-firewall
8
  * Domain Path: /languages
9
  * Author: Shield Security
plugin-spec.php CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "12.0.7",
4
  "release_timestamp": 1632393194,
5
- "build": "202109.2303",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "12.0.8",
4
  "release_timestamp": 1632393194,
5
+ "build": "202109.2304",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
plugin.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
  "properties": {
3
- "version": "12.0.7",
4
  "release_timestamp": 1632393194,
5
- "build": "202109.2303",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "12.0.8",
4
  "release_timestamp": 1632393194,
5
+ "build": "202109.2304",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
readme.txt CHANGED
@@ -8,7 +8,7 @@ Requires at least: 3.7
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 5.8
11
- Stable tag: 12.0.7
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
8
  Requires PHP: 7.0
9
  Recommended PHP: 7.4
10
  Tested up to: 5.8
11
+ Stable tag: 12.0.8
12
 
13
  No-Nonsense Security Hardening that protects WordPress against hackers, malicious bots, and spammers (no captchas!). Now with exclusive ShieldNET Technology.
14
 
src/lib/src/Controller/Controller.php CHANGED
@@ -237,7 +237,7 @@ class Controller extends DynPropertiesClass {
237
  }
238
 
239
  private function isMysqlVersionSupported( string $versionToSupport ) :bool {
240
- $mysqlInfo = (string)Services::WpDb()->loadWpdb()->db_server_info();
241
  return empty( $versionToSupport )
242
  || empty( $mysqlInfo )
243
  || ( stripos( $mysqlInfo, 'MariaDB' ) !== false )
237
  }
238
 
239
  private function isMysqlVersionSupported( string $versionToSupport ) :bool {
240
+ $mysqlInfo = Services::WpDb()->getMysqlServerInfo();
241
  return empty( $versionToSupport )
242
  || empty( $mysqlInfo )
243
  || ( stripos( $mysqlInfo, 'MariaDB' ) !== false )
src/lib/vendor/composer/autoload_classmap.php CHANGED
@@ -329,6 +329,7 @@ return array(
329
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Record' => $baseDir . '/src/Modules/Data/DB/ReqLogs/Ops/Record.php',
330
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Select' => $baseDir . '/src/Modules/Data/DB/ReqLogs/Ops/Select.php',
331
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\RequestRecords' => $baseDir . '/src/Modules/Data/DB/ReqLogs/RequestRecords.php',
 
332
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\ModCon' => $baseDir . '/src/Modules/Data/ModCon.php',
333
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\ModCon' => $baseDir . '/src/Modules/Email/ModCon.php',
334
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\Options' => $baseDir . '/src/Modules/Email/Options.php',
@@ -369,7 +370,6 @@ return array(
369
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Processor' => $baseDir . '/src/Modules/Firewall/Processor.php',
370
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Strings' => $baseDir . '/src/Modules/Firewall/Strings.php',
371
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\UI' => $baseDir . '/src/Modules/Firewall/UI.php',
372
- 'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\GeoIp\\Lookup' => $baseDir . '/src/Modules/GeoIp/Lookup.php',
373
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\AjaxHandler' => $baseDir . '/src/Modules/HackGuard/AjaxHandler.php',
374
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Debug' => $baseDir . '/src/Modules/HackGuard/Debug.php',
375
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Insights\\OverviewCards' => $baseDir . '/src/Modules/HackGuard/Insights/OverviewCards.php',
329
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Record' => $baseDir . '/src/Modules/Data/DB/ReqLogs/Ops/Record.php',
330
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Select' => $baseDir . '/src/Modules/Data/DB/ReqLogs/Ops/Select.php',
331
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\RequestRecords' => $baseDir . '/src/Modules/Data/DB/ReqLogs/RequestRecords.php',
332
+ 'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\Lib\\GeoIP\\Lookup' => $baseDir . '/src/Modules/Data/Lib/GeoIP/Lookup.php',
333
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\ModCon' => $baseDir . '/src/Modules/Data/ModCon.php',
334
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\ModCon' => $baseDir . '/src/Modules/Email/ModCon.php',
335
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\Options' => $baseDir . '/src/Modules/Email/Options.php',
370
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Processor' => $baseDir . '/src/Modules/Firewall/Processor.php',
371
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Strings' => $baseDir . '/src/Modules/Firewall/Strings.php',
372
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\UI' => $baseDir . '/src/Modules/Firewall/UI.php',
 
373
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\AjaxHandler' => $baseDir . '/src/Modules/HackGuard/AjaxHandler.php',
374
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Debug' => $baseDir . '/src/Modules/HackGuard/Debug.php',
375
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Insights\\OverviewCards' => $baseDir . '/src/Modules/HackGuard/Insights/OverviewCards.php',
src/lib/vendor/composer/autoload_static.php CHANGED
@@ -515,6 +515,7 @@ class ComposerStaticInit4fc2c6daaffaf40b64b79b6d26830171
515
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Record' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/Ops/Record.php',
516
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Select' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/Ops/Select.php',
517
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\RequestRecords' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/RequestRecords.php',
 
518
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\ModCon' => __DIR__ . '/../..' . '/src/Modules/Data/ModCon.php',
519
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\ModCon' => __DIR__ . '/../..' . '/src/Modules/Email/ModCon.php',
520
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\Options' => __DIR__ . '/../..' . '/src/Modules/Email/Options.php',
@@ -555,7 +556,6 @@ class ComposerStaticInit4fc2c6daaffaf40b64b79b6d26830171
555
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Processor' => __DIR__ . '/../..' . '/src/Modules/Firewall/Processor.php',
556
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Strings' => __DIR__ . '/../..' . '/src/Modules/Firewall/Strings.php',
557
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\UI' => __DIR__ . '/../..' . '/src/Modules/Firewall/UI.php',
558
- 'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\GeoIp\\Lookup' => __DIR__ . '/../..' . '/src/Modules/GeoIp/Lookup.php',
559
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\AjaxHandler' => __DIR__ . '/../..' . '/src/Modules/HackGuard/AjaxHandler.php',
560
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Debug' => __DIR__ . '/../..' . '/src/Modules/HackGuard/Debug.php',
561
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Insights\\OverviewCards' => __DIR__ . '/../..' . '/src/Modules/HackGuard/Insights/OverviewCards.php',
515
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Record' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/Ops/Record.php',
516
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\Ops\\Select' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/Ops/Select.php',
517
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\DB\\ReqLogs\\RequestRecords' => __DIR__ . '/../..' . '/src/Modules/Data/DB/ReqLogs/RequestRecords.php',
518
+ 'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\Lib\\GeoIP\\Lookup' => __DIR__ . '/../..' . '/src/Modules/Data/Lib/GeoIP/Lookup.php',
519
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Data\\ModCon' => __DIR__ . '/../..' . '/src/Modules/Data/ModCon.php',
520
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\ModCon' => __DIR__ . '/../..' . '/src/Modules/Email/ModCon.php',
521
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Email\\Options' => __DIR__ . '/../..' . '/src/Modules/Email/Options.php',
556
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Processor' => __DIR__ . '/../..' . '/src/Modules/Firewall/Processor.php',
557
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\Strings' => __DIR__ . '/../..' . '/src/Modules/Firewall/Strings.php',
558
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\Firewall\\UI' => __DIR__ . '/../..' . '/src/Modules/Firewall/UI.php',
 
559
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\AjaxHandler' => __DIR__ . '/../..' . '/src/Modules/HackGuard/AjaxHandler.php',
560
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Debug' => __DIR__ . '/../..' . '/src/Modules/HackGuard/Debug.php',
561
  'FernleafSystems\\Wordpress\\Plugin\\Shield\\Modules\\HackGuard\\Insights\\OverviewCards' => __DIR__ . '/../..' . '/src/Modules/HackGuard/Insights/OverviewCards.php',
src/lib/vendor/fernleafsystems/wordpress-services/src/Core/Db.php CHANGED
@@ -123,6 +123,13 @@ class Db {
123
  return $this->loadWpdb()->users;
124
  }
125
 
 
 
 
 
 
 
 
126
  /**
127
  * @param string $sSql
128
  * @return null|mixed
123
  return $this->loadWpdb()->users;
124
  }
125
 
126
+ public function getMysqlServerInfo() :string {
127
+ $db = $this->loadWpdb();
128
+ $info = method_exists( $db, 'db_server_info' ) ?
129
+ $db->db_server_info() : mysqli_get_server_info( $db->dbh );
130
+ return (string)$info;
131
+ }
132
+
133
  /**
134
  * @param string $sSql
135
  * @return null|mixed