Plugin Directory

Changeset 1487677


Ignore:
Timestamp:
09/01/2016 05:11:12 AM (10 years ago)
Author:
osexcel
Message:

6.5.9

  • Improved Add IP function to cleanup IP title to enhance security, credits to 'Plugin Vulnerabilities'
Location:
ose-firewall/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ose-firewall/trunk/classes/App/Model/ManageipsModel.php

    r1446915 r1487677  
    9595            $referer_id = $this->addReferer();
    9696            $varValues = array(
    97                 'name' => $name,
     97                'name' => oseFirewall::cleanupVar ($name),
    9898                'datetime' => date('Y-m-d h:i:s'),
    9999                'score' => 0,
  • ose-firewall/trunk/classes/Library/oseFirewallBase.php

    r1464525 r1487677  
    7979            return true;
    8080        }
    81         else 
     81        else
    8282        {
    8383            return false;
    84         } 
     84        }
    8585    }
    8686    public function loadBackendFunctions()
     
    118118            return false;
    119119        }
    120        
     120
    121121        $dbReady = oseFirewallBase :: isAdvanceSettingConfigDBReady();
    122122        if($dbReady == false){
     
    124124        }else{
    125125            return true;
    126         } 
     126        }
    127127    }
    128128    public static function isAdvanceSettingConfigDBReady()
     
    166166    }
    167167    private function  isAdvanceSettingConfigEnable(){
    168         return $this->checkOseConfig ('adRules', 'advscan'); 
     168        return $this->checkOseConfig ('adRules', 'advscan');
    169169    }
    170170    public static function getLocaleString(){
     
    174174            $lang = 'en_US';
    175175        }
    176        
     176
    177177        return $lang;
    178178    }
     
    180180    {
    181181        if (defined('OSE_OEM_LANG_TAG') && OSE_OEM_LANG_TAG =='') {
    182             $lang = self::getLocaleString(); 
     182            $lang = self::getLocaleString();
    183183        }
    184184        else if (defined('OSE_OEM_LANG_TAG')  && OSE_OEM_LANG_TAG !='')
    185185        {
    186             $lang = OSE_OEM_LANG_TAG; 
     186            $lang = OSE_OEM_LANG_TAG;
    187187        }
    188188        else {
     
    196196        $oseDB2 = self::getDBO();
    197197        $data = $oseDB2->isTableExists('#__osefirewall_backupath');
    198         if (!empty($data)) 
    199         {
    200             self::checkVSTypeTable (); 
     198        if (!empty($data))
     199        {
     200            self::checkVSTypeTable ();
    201201            $data = $oseDB2->isTableExists('#__osefirewall_vspatterns');
    202202            $oseDB2->closeDBO();
     
    213213            echo '<span class="label label-warning"><i class="glyphicon glyphicon-remove"></i> Warning: Firewall Outdated</span>&nbsp;&nbsp;<button class="btn btn-danger btn-xs fx-button" id="fixSignature" name="fixSignature" onClick="updateSignature(\'#rulesetsTable\')">Fix It</button>';
    214214            if (OSE_CMS!='joomla')
    215             {   
     215            {
    216216                echo '<script type="text/javascript">document.getElementById("fixSignature").click();</script>';
    217217            }
     
    225225        $oseDB2 = self::getDBO();
    226226        $query = "SELECT COUNT(id) AS count FROM `#__osefirewall_basicrules`;";
    227         $oseDB2->setQuery($query); 
     227        $oseDB2->setQuery($query);
    228228        $count = $oseDB2->loadResult();
    229229        return ($count['count']);
    230230    }
    231     // Version 3.4.0 Table checking; 
     231    // Version 3.4.0 Table checking;
    232232    private static function checkVSTypeTable () {
    233233        $oseDB2 = self::getDBO();
     
    246246                if ( $result['count2']>0 && $oseDB2->isTableExists('#__osefirewall_vspatterns'))
    247247                {
    248                     $queries = array (); 
     248                    $queries = array ();
    249249                    $queries[] = "SET FOREIGN_KEY_CHECKS = 0";
    250250                    $queries[] = "DROP TABLE IF EXISTS `#__osefirewall_files` ";
     
    257257                        $oseDB2->setQuery($query);
    258258                        $oseDB2->query ();
    259                     } 
     259                    }
    260260                }
    261                 return false; 
    262             }
    263         }   
     261                return false;
     262            }
     263        }
    264264    }
    265265    public static function getGeoIPState()
     
    445445        self::runController ('LoginController', 'index');
    446446    }
    447     public static function subscription () 
     447    public static function subscription ()
    448448    {
    449449        self::runController ('SubscriptionController', 'index');
    450450    }
    451     public static function cronjobs () 
     451    public static function cronjobs ()
    452452    {
    453453        self::runController ('CronjobsController', 'index');
     
    457457        self::runController ('PermconfigController', 'index');
    458458    }
    459     public static function clamav () 
     459    public static function clamav ()
    460460    {
    461461        $app = self::runApp();
    462462        $app->runController('clamav', 'index');
    463463    }
    464     public static function apiconfig () 
     464    public static function apiconfig ()
    465465    {
    466466        $app = self::runApp();
     
    511511    public function getDebugMode()
    512512    {
    513         return $this->checkOseConfig ('debugMode', 'scan'); 
     513        return $this->checkOseConfig ('debugMode', 'scan');
    514514    }
    515515
     
    525525        }
    526526        else {
    527             $host = explode(":", $dbConfig->host); 
     527            $host = explode(":", $dbConfig->host);
    528528            $dbo = new PDO("mysql:unix_socket=".$host[1].";dbname=".$dbConfig->db, $dbConfig->user, $dbConfig->password);
    529529        }
     
    540540            $stmt = $dbo->query ("SELECT `value` FROM `".$dbConfig->prefix."ose_secConfig` WHERE `key` = '".$key."' AND `type` = '".$type."'");
    541541            if (!empty($stmt))
    542             {   
     542            {
    543543                $stmt->setFetchMode(PDO::FETCH_OBJ);
    544544                $result = $stmt->fetch();
     
    581581        }
    582582        return $return;
    583     }   
     583    }
    584584    public function comparePHPVersion () {
    585585        return (version_compare(PHP_VERSION, '5.3.0') >= 0)?true:false;
     
    587587    public function runReport () {
    588588        oseFirewall::callLibClass('audit', 'audit');
    589         $audit = new oseFirewallAudit (); 
     589        $audit = new oseFirewallAudit ();
    590590        $audit -> runReport();
    591591    }
    592592    public static function getTime () {
    593         self::loadDateClass(); 
     593        self::loadDateClass();
    594594        $oseDatetime = new oseDatetime();
    595595        $oseDatetime->setFormat("Y-m-d H:i:s");
    596596        $time = $oseDatetime->getDateTime();
    597         return $time; 
     597        return $time;
    598598    }
    599599    public static function enhanceSysSecurity () {
    600600        oseFirewall::callLibClass('audit', 'audit');
    601         $audit = new oseFirewallAudit (); 
    602         $audit -> enhanceSysSecurity(); 
     601        $audit = new oseFirewallAudit ();
     602        $audit -> enhanceSysSecurity();
    603603    }
    604604    public static function getConfiguration($type)
     
    611611        $db->closeDBO ();
    612612        if (!empty($results))
    613         {   
     613        {
    614614            foreach ($results as $result)
    615615            {
     
    10171017        $oseDB2->query();
    10181018    }
     1019    public static function cleanupVar ($var) {
     1020            return str_replace(array('"', "'", '<', '>'), "", $var);
     1021    }
    10191022}
  • ose-firewall/trunk/ose_firewall_badge.php

    r1486767 r1487677  
    44   Description: Plugin For Showing Centrora Security Badge
    55   Author: Centrora Security
    6    Version: 6.5.8
     6   Version: 6.5.9
    77*/ 
    88//include(dirname(__FILE__).'/includes/oseBadgeWidget.php');
  • ose-firewall/trunk/ose_wordpress_firewall.php

    r1486767 r1487677  
    55Description: Centrora Security (previously OSE Firewall) - A WordPress Security Firewall plugin created by Centrora. Protect your WordPress site by identify any malicious codes, spam, virus, SQL injection, and security vulnerabilities.
    66Author: Centrora (Previously ProWeb)
    7 Version: 6.5.8
     7Version: 6.5.9
    88Author URI: http://www.centrora.com/
    99*/
  • ose-firewall/trunk/readme.txt

    r1486767 r1487677  
    66Requires at least: 3.7
    77Tested up to: 4.5.2
    8 Stable tag: 6.5.8
     8Stable tag: 6.5.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    164164
    165165== Changelog ==
     166
     167= 6.5.9 =
     168* Improved Add IP function to cleanup IP title to enhance security, credits to 'Plugin Vulnerabilities'
    166169
    167170= 6.5.8 =
Note: See TracChangeset for help on using the changeset viewer.