Shield Security for WordPress - Version 12.0.4

Version Description

Download this release

Release Info

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

Code changes from version 12.0.3 to 12.0.4

cl.json CHANGED
@@ -112,6 +112,12 @@
112
  "U2F is a strong 2FA mechanism and so it doesn't really need to be used in conjunction with other factors.",
113
  "When the Chained/MFA option is enabled, when U2F is supplied, this can be done alone without the need for other factors."
114
  ]
 
 
 
 
 
 
115
  }
116
  ]
117
  },
112
  "U2F is a strong 2FA mechanism and so it doesn't really need to be used in conjunction with other factors.",
113
  "When the Chained/MFA option is enabled, when U2F is supplied, this can be done alone without the need for other factors."
114
  ]
115
+ },
116
+ {
117
+ "type": "fixed",
118
+ "title": "Prevent PHP exception being thrown in certain cases.",
119
+ "description": [],
120
+ "patch": "12.0.4"
121
  }
122
  ]
123
  },
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.3
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.4
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.3",
4
- "release_timestamp": 1632305800,
5
- "build": "202109.2202",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "12.0.4",
4
+ "release_timestamp": 1632324000,
5
+ "build": "202109.2203",
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.3",
4
- "release_timestamp": 1632305800,
5
- "build": "202109.2202",
6
  "slug_parent": "icwp",
7
  "slug_plugin": "wpsf",
8
  "human_name": "Shield Security",
1
  {
2
  "properties": {
3
+ "version": "12.0.4",
4
+ "release_timestamp": 1632324000,
5
+ "build": "202109.2203",
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.3
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.4
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/Modules/Data/DB/IPs/Ops/Insert.php CHANGED
@@ -3,7 +3,21 @@
3
  namespace FernleafSystems\Wordpress\Plugin\Shield\Modules\Data\DB\IPs\Ops;
4
 
5
  use FernleafSystems\Wordpress\Plugin\Core\Databases\Base;
 
6
 
7
  class Insert extends Base\Insert {
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  }
3
  namespace FernleafSystems\Wordpress\Plugin\Shield\Modules\Data\DB\IPs\Ops;
4
 
5
  use FernleafSystems\Wordpress\Plugin\Core\Databases\Base;
6
+ use FernleafSystems\Wordpress\Services\Services;
7
 
8
  class Insert extends Base\Insert {
9
 
10
+ /**
11
+ * @param Record $record
12
+ * @return bool
13
+ */
14
+ public function insert( $record ) :bool {
15
+ return (bool)Services::WpDb()->doSql( sprintf(
16
+ "INSERT INTO `%s` (`%s`,`created_at`) VALUES (INET6_ATON('%s'), %s)",
17
+ $this->getDbH()->getTableSchema()->table,
18
+ 'ip',
19
+ $record->ip,
20
+ Services::Request()->ts()
21
+ ) );
22
+ }
23
  }
src/lib/src/Modules/IPs/Lib/Bots/BotEventListener.php CHANGED
@@ -3,6 +3,7 @@
3
  namespace FernleafSystems\Wordpress\Plugin\Shield\Modules\IPs\Lib\Bots;
4
 
5
  use FernleafSystems\Wordpress\Plugin\Shield\Modules\Base\Common\ExecOnceModConsumer;
 
6
  use FernleafSystems\Wordpress\Services\Services;
7
 
8
  class BotEventListener extends ExecOnceModConsumer {
@@ -19,14 +20,20 @@ class BotEventListener extends ExecOnceModConsumer {
19
  ->updateSignalField( $column );
20
  }
21
  catch ( \LogicException $e ) {
22
- error_log( 'Error updating bot signal: '.$e->getMessage() );
 
 
 
23
  }
24
  }
25
  }
26
  }
27
 
28
  protected function canRun() :bool {
29
- return !$this->getMod()->isTrustedVerifiedBot();
 
 
 
30
  }
31
 
32
  protected function run() {
3
  namespace FernleafSystems\Wordpress\Plugin\Shield\Modules\IPs\Lib\Bots;
4
 
5
  use FernleafSystems\Wordpress\Plugin\Shield\Modules\Base\Common\ExecOnceModConsumer;
6
+ use FernleafSystems\Wordpress\Plugin\Shield\Modules\IPs\ModCon;
7
  use FernleafSystems\Wordpress\Services\Services;
8
 
9
  class BotEventListener extends ExecOnceModConsumer {
20
  ->updateSignalField( $column );
21
  }
22
  catch ( \LogicException $e ) {
23
+ error_log( 'Error updating bot signal with column problem: '.$e->getMessage() );
24
+ }
25
+ catch ( \Exception $e ) {
26
+ // error_log( 'Error updating bot signal: '.$e->getMessage() );
27
  }
28
  }
29
  }
30
  }
31
 
32
  protected function canRun() :bool {
33
+ /** @var ModCon $mod */
34
+ $mod = $this->getMod();
35
+ return !$mod->isTrustedVerifiedBot()
36
+ && $mod->getDbH_BotSignal()->isReady();
37
  }
38
 
39
  protected function run() {