Plugin Directory

Changeset 2705835


Ignore:
Timestamp:
04/06/2022 03:24:24 PM (4 years ago)
Author:
cleverplugins
Message:

5.140

  • Improved MainWP integration.
  • Improved auto-updates integration.
  • Fix: Logging database tables sometimes not created before plugin tried to log something.
Location:
security-ninja
Files:
394 added
10 edited

Legend:

Unmodified
Added
Removed
  • security-ninja/trunk/readme.txt

    r2700782 r2705835  
    55License URI: http://www.gnu.org/licenses/gpl-2.0.html
    66Requires at least: 4.7
    7 Tested up to: 5.9.2
    8 Stable tag: 5.139
     7Tested up to: 5.9.3
     8Stable tag: 5.140
    99Requires PHP: 5.6
    1010
     
    1616
    1717**NEW: Vulnerability scanner - Warns you if you have plugins with known vulnerabilities installed.**
     18
     19
    1820
    1921[youtube https://www.youtube.com/watch?v=d4cqQIkkMXM]
     
    119121* <a href="https://www.ravisinghblog.in/wp-security-ninja-review/">Ravi Singh</a>
    120122
     123
     124**Pro**
     125
     126**Try out the Pro version on your own FREE test site: Click here => [https://app.instawp.io/launch?t=security-ninja-5139](https://app.instawp.io/launch?t=security-ninja-5139)**
     127
    121128**License info**
    122129
     
    187194
    188195== Changelog ==
     196
     197= 5.140 =
     198* Improved MainWP integration.
     199* Improved auto-updates integration.
     200* Fix: Logging database tables sometimes not created before plugin tried to log something.
    189201
    190202= 5.139 =
  • security-ninja/trunk/security-ninja.php

    r2700782 r2705835  
    66Description: Check your site for <strong>security vulnerabilities</strong> and get precise suggestions for corrective actions on passwords, user accounts, file permissions, database security, version hiding, plugins, themes, security headers and other security aspects.
    77Author: WP Security Ninja
    8 Version: 5.139
     8Version: 5.140
    99Author URI: https://wpsecurityninja.com/
    10 Text Domain: security-ninja
     10Text Domain:ƒ security-ninja
    1111Domain Path: /languages
    1212
     
    6666    // vl for visitor log - sneaky, eh? :-)
    6767    define( 'WF_SN_FREEMIUS_STATE', 'wfsn_freemius_state' );
    68     //@todo - wizard has run or not - options?
    6968   
    7069    if ( !function_exists( 'secnin_fs' ) ) {
     
    261260         * @author  Lars Koudal
    262261         * @since   v5.139
    263          * @version v1.0.0  Thursday, March 24th, 2022.
     262         * @version v1.0.0  Thursday, March 24th, 2022.
     263         * @version v1.0.1  Saturday, April 2nd, 2022.
    264264         * @access  public static
    265265         * @param   mixed   $info       – Information to return.
     
    273273                    case 'get_test_results':
    274274                        $tests = self::return_test_scores();
    275                         // @todo - include last test time? put inside function itself.
     275                        if ( isset( $tests['output'] ) ) {
     276                            unset( $tests['output'] );
     277                        }
     278                        $vulns = array();
     279                        if ( class_exists( 'Wf_Sn_Vu' ) ) {
     280                            $vulns = Wf_Sn_Vu::return_vuln_count();
     281                        }
     282                        $tests['vulns'] = $vulns;
    276283                        return $tests;
    277284                    case 'run_all_tests':
     
    827834        {
    828835            $is_sn_admin_page = self::is_plugin_page();
    829             // @todo - test section for check automatic updates enabled
    830836            // Checks if auto updates has been enabled
    831837           
     
    20742080                // Outer
    20752081                echo  '<div class="wf-sn-overlay-outer">' ;
    2076                 // Content @todo
    20772082                echo  '<div class="wf-sn-overlay-content">' ;
    20782083                echo  '<div id="sn-site-scan" style="display: none;">' ;
  • security-ninja/trunk/vendor/composer/installed.json

    r2693077 r2705835  
    216216    {
    217217        "name": "phpseclib/phpseclib",
    218         "version": "2.0.36",
    219         "version_normalized": "2.0.36.0",
     218        "version": "2.0.37",
     219        "version_normalized": "2.0.37.0",
    220220        "source": {
    221221            "type": "git",
    222222            "url": "https://github.com/phpseclib/phpseclib.git",
    223             "reference": "a97547126396548c224703a267a30af1592be146"
    224         },
    225         "dist": {
    226             "type": "zip",
    227             "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/a97547126396548c224703a267a30af1592be146",
    228             "reference": "a97547126396548c224703a267a30af1592be146",
     223            "reference": "c812fbb4d6b4d7f30235ab7298a12f09ba13b37c"
     224        },
     225        "dist": {
     226            "type": "zip",
     227            "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/c812fbb4d6b4d7f30235ab7298a12f09ba13b37c",
     228            "reference": "c812fbb4d6b4d7f30235ab7298a12f09ba13b37c",
    229229            "shasum": ""
    230230        },
     
    243243            "ext-openssl": "Install the OpenSSL extension in order to speed up a wide variety of cryptographic operations."
    244244        },
    245         "time": "2022-01-30T08:48:36+00:00",
     245        "time": "2022-04-04T04:57:45+00:00",
    246246        "type": "library",
    247247        "installation-source": "dist",
  • security-ninja/trunk/vendor/phpseclib/phpseclib/BACKERS.md

    r2683258 r2705835  
    66
    77- Allan Simon
     8- [ChargeOver](https://chargeover.com/)
    89- Raghu Veer Dendukuri
    910- Zane Hooper
  • security-ninja/trunk/vendor/phpseclib/phpseclib/README.md

    r2683258 r2705835  
    6969## Special Thanks
    7070
    71 Special Thanks to our Patreon sponsors!:
     71Special Thanks to our $50+ sponsors!:
    7272
    7373- Allan Simon
     74- [ChargeOver](https://chargeover.com/)
    7475
    7576## Contributing
  • security-ninja/trunk/vendor/phpseclib/phpseclib/phpseclib/Crypt/Base.php

    r2683258 r2705835  
    157157     * @access private
    158158     */
    159     var $iv;
     159    var $iv = '';
    160160
    161161    /**
     
    780780                    return $ciphertext;
    781781                case self::MODE_OFB8:
     782                    // OpenSSL has built in support for cfb8 but not ofb8
    782783                    $ciphertext = '';
    783784                    $len = strlen($plaintext);
     
    796797                case self::MODE_OFB:
    797798                    return $this->_openssl_ofb_process($plaintext, $this->encryptIV, $this->enbuffer);
    798                 case self::MODE_OFB8:
    799                     // OpenSSL has built in support for cfb8 but not ofb8
    800799            }
    801800        }
     
    919918                        if (strlen($block) > strlen($buffer['ciphertext'])) {
    920919                            $buffer['ciphertext'].= $this->_encryptBlock($xor);
    921                         }
    922                         $this->_increment_str($xor);
     920                            $this->_increment_str($xor);
     921                        }
    923922                        $key = $this->_string_shift($buffer['ciphertext'], $block_size);
    924923                        $ciphertext.= $block ^ $key;
     
    20802079    function _increment_str(&$var)
    20812080    {
     2081        if (function_exists('sodium_increment')) {
     2082            $var = strrev($var);
     2083            sodium_increment($var);
     2084            $var = strrev($var);
     2085            return;
     2086        }
     2087
    20822088        for ($i = 4; $i <= strlen($var); $i+= 4) {
    20832089            $temp = substr($var, -$i, 4);
  • security-ninja/trunk/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA.php

    r2683258 r2705835  
    14061406
    14071407                return isset($this->components['modulus']) && isset($this->components['publicExponent']) ? $this->components : false;
    1408             // from PuTTY's SSHPUBK.C
     1408            // see PuTTY's SSHPUBK.C and https://tartarus.org/~simon/putty-snapshots/htmldoc/AppendixC.html
    14091409            case self::PRIVATE_FORMAT_PUTTY:
    14101410                $components = array();
    14111411                $key = preg_split('#\r\n|\r|\n#', $key);
    1412                 $type = trim(preg_replace('#PuTTY-User-Key-File-2: (.+)#', '$1', $key[0]));
     1412                if ($this->_string_shift($key[0], strlen('PuTTY-User-Key-File-')) != 'PuTTY-User-Key-File-') {
     1413                    return false;
     1414                }
     1415                $version = (int) $this->_string_shift($key[0], 3); // should be either "2: " or "3: 0" prior to int casting
     1416                if ($version != 2 && $version != 3) {
     1417                    return false;
     1418                }
     1419                $type = rtrim($key[0]);
    14131420                if ($type != 'ssh-rsa') {
    14141421                    return false;
     
    14251432                $components['modulus'] = new BigInteger($this->_string_shift($public, $length), -256);
    14261433
    1427                 $privateLength = trim(preg_replace('#Private-Lines: (\d+)#', '$1', $key[$publicLength + 4]));
    1428                 $private = base64_decode(implode('', array_map('trim', array_slice($key, $publicLength + 5, $privateLength))));
    1429 
     1434                $offset = $publicLength + 4;
    14301435                switch ($encryption) {
    14311436                    case 'aes256-cbc':
    1432                         $symkey = '';
    1433                         $sequence = 0;
    1434                         while (strlen($symkey) < 32) {
    1435                             $temp = pack('Na*', $sequence++, $this->password);
    1436                             $symkey.= pack('H*', sha1($temp));
     1437                        $crypto = new AES();
     1438                        switch ($version) {
     1439                            case 3:
     1440                                if (!function_exists('sodium_crypto_pwhash')) {
     1441                                    return false;
     1442                                }
     1443                                $flavour = trim(preg_replace('#Key-Derivation: (.*)#', '$1', $key[$offset++]));
     1444                                switch ($flavour) {
     1445                                    case 'Argon2i':
     1446                                        $flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13;
     1447                                        break;
     1448                                    case 'Argon2id':
     1449                                        $flavour = SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13;
     1450                                        break;
     1451                                    default:
     1452                                        return false;
     1453                                }
     1454                                $memory = trim(preg_replace('#Argon2-Memory: (\d+)#', '$1', $key[$offset++]));
     1455                                $passes = trim(preg_replace('#Argon2-Passes: (\d+)#', '$1', $key[$offset++]));
     1456                                $parallelism = trim(preg_replace('#Argon2-Parallelism: (\d+)#', '$1', $key[$offset++]));
     1457                                $salt = pack('H*', trim(preg_replace('#Argon2-Salt: ([0-9a-f]+)#', '$1', $key[$offset++])));
     1458
     1459                                $length = 80; // keylen + ivlen + mac_keylen
     1460                                $temp = sodium_crypto_pwhash($length, $this->password, $salt, $passes, $memory << 10, $flavour);
     1461
     1462                                $symkey = substr($temp, 0, 32);
     1463                                $symiv = substr($temp, 32, 16);
     1464                                break;
     1465                            case 2:
     1466                                $symkey = '';
     1467                                $sequence = 0;
     1468                                while (strlen($symkey) < 32) {
     1469                                    $temp = pack('Na*', $sequence++, $this->password);
     1470                                    $symkey.= pack('H*', sha1($temp));
     1471                                }
     1472                                $symkey = substr($symkey, 0, 32);
     1473                                $symiv = str_repeat("\0", 16);
    14371474                        }
    1438                         $symkey = substr($symkey, 0, 32);
    1439                         $crypto = new AES();
    1440                 }
     1475                }
     1476
     1477                $privateLength = trim(preg_replace('#Private-Lines: (\d+)#', '$1', $key[$offset++]));
     1478                $private = base64_decode(implode('', array_map('trim', array_slice($key, $offset, $privateLength))));
    14411479
    14421480                if ($encryption != 'none') {
    14431481                    $crypto->setKey($symkey);
     1482                    $crypto->setIV($symiv);
    14441483                    $crypto->disablePadding();
    14451484                    $private = $crypto->decrypt($private);
  • security-ninja/trunk/vendor/phpseclib/phpseclib/phpseclib/System/SSH/Agent.php

    r2253355 r2705835  
    235235     * be requested when a channel is opened
    236236     *
    237      * @param Net_SSH2 $ssh
    238237     * @return bool
    239238     * @access public
    240239     */
    241     function startSSHForwarding($ssh)
     240    function startSSHForwarding()
    242241    {
    243242        if ($this->forward_status == self::FORWARD_NONE) {
Note: See TracChangeset for help on using the changeset viewer.