Changeset 1921717
- Timestamp:
- 08/08/2018 03:27:49 PM (8 years ago)
- Location:
- ose-firewall/trunk
- Files:
-
- 4 edited
-
assets/config/define.php (modified) (1 diff)
-
classes/Library/oseFirewallBase.php (modified) (1 diff)
-
ose_firewall_badge.php (modified) (1 diff)
-
ose_wordpress_firewall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ose-firewall/trunk/assets/config/define.php
r1821941 r1921717 51 51 define("BACKUP_API_SERVER","https://backup-api.centrora.com/"); 52 52 define("VSSCAN_API_SERVER","https://vsscan-api.centrora.com/"); 53 define('VIRUS_PATTERN_DOWNLOAD_URL',"https://update-api .centrora.com/download/updateVSPattern?domain=".$_SERVER['HTTP_HOST']);54 define("FIREWALL_PATTERN_DOWNLOAD_URL","https://update-api .centrora.com/download/updateFWPattern&update=0&domain=".$_SERVER['HTTP_HOST']);55 define("FIREWALL_PATTERN_UPDATE_DOWNLOAD_URL","https://update-api .centrora.com/download/updateFWPattern&update=1&domain=".$_SERVER['HTTP_HOST']);56 define("GET_VIRUS_PATTERN_VERSION_URL","https://update-api .centrora.com/version/getVSPatternVersion");57 define("GET_FIREWALL_PATTERN_VERSION_URL","https://update-api .centrora.com/version/getFWPatternVersion");53 define('VIRUS_PATTERN_DOWNLOAD_URL',"https://update-api-dev.centrora.com/download/updateVSPattern?domain=".$_SERVER['HTTP_HOST']); 54 define("FIREWALL_PATTERN_DOWNLOAD_URL","https://update-api-dev.centrora.com/download/updateFWPattern&update=0&domain=".$_SERVER['HTTP_HOST']); 55 define("FIREWALL_PATTERN_UPDATE_DOWNLOAD_URL","https://update-api-dev.centrora.com/download/updateFWPattern&update=1&domain=".$_SERVER['HTTP_HOST']); 56 define("GET_VIRUS_PATTERN_VERSION_URL","https://update-api-dev.centrora.com/version/getVSPatternVersion"); 57 define("GET_FIREWALL_PATTERN_VERSION_URL","https://update-api-dev.centrora.com/version/getFWPatternVersion"); 58 58 define("BACKUP_API","https://backup-api.centrora.com/"); 59 59 define("ACCOUNT_API","https://account-api.centrora.com/"); 60 define("UPDATE_API","https://update-api .centrora.com/");61 define("DOWNLOAD_CORE_FILES","https://update-api .centrora.com/download/getCoreFile");60 define("UPDATE_API","https://update-api-dev.centrora.com/"); 61 define("DOWNLOAD_CORE_FILES","https://update-api-dev.centrora.com/download/getCoreFile"); 62 62 } 63 63 define('FIREWALL_VERSION_CHECK_THRESHOLD',1); //1 hour -
ose-firewall/trunk/classes/Library/oseFirewallBase.php
r1844703 r1921717 2063 2063 public function checkPermissions() 2064 2064 { 2065 if(oseFirewallBase::isSuite()) { 2066 $permissions = substr(sprintf('%o', fileperms(OSE_CONTENTFOLDER)), -3); 2067 $user = substr($permissions, 0, 1); 2068 $group = substr($permissions, 1, 1); 2069 $other = substr($permissions, 2, 1); 2070 $msg = "mkdir " . OSE_WEBLOGFOLDER . "; mkdir " . OSE_WEBLOG_BACKUPFOLDER . "; chmod -R 0777 " . OSE_WEBLOGFOLDER . "<br/>; chmod -R 0777 " . OSE_WEBLOG_BACKUPFOLDER; 2071 if (($user == 7) && ($group >= 5) && ($other >= 5)) { 2072 $this->permission = true; 2073 $this->makeDirectories(); 2074 if (file_exists(OSE_WEBLOG_BACKUPFOLDER) && file_exists(OSE_WEBLOGFOLDER) && $this->checkWebLogBackupFolderPermission() && $this->checkWebLogFolderPermission()) { 2075 return $this->prepareSuccessMessage('The folder has appropriate folder permissions'); 2076 } else { 2077 return oseFirewallBase::prepareErrorMessage("The folders do not appropriate permissions, please run the following commands : <br/>" . $msg); 2078 } 2079 } else { 2080 $change_perm = chmod(OSE_CONTENTFOLDER, 0755); 2081 if ($change_perm == true) { 2082 $this->permission = true; 2083 $this->makeDirectories(); 2084 if (file_exists(OSE_WEBLOG_BACKUPFOLDER) && file_exists(OSE_WEBLOGFOLDER) && $this->checkWebLogBackupFolderPermission() && $this->checkWebLogFolderPermission()) { 2085 return $this->prepareSuccessMessage('The folder has appropriate folder permissions'); 2086 } else { 2087 return oseFirewallBase::prepareErrorMessage("The folders do not appropriate permissions, please run the following commands : <br/>" . $msg); 2088 } 2089 } else { 2090 $this->permission = false; 2091 $msg = "mkdir " . OSE_CONTENTFOLDER . "; chmod 0755 " . OSE_CONTENTFOLDER . "<br/> ; mkdir " . OSE_WEBLOGFOLDER . "; mkdir " . OSE_WEBLOG_BACKUPFOLDER . "; chmod -R 0777 " . OSE_WEBLOGFOLDER . "<br/>; chmod -R 0777 " . OSE_WEBLOG_BACKUPFOLDER; 2092 return oseFirewallBase::prepareErrorMessage("The folders do not appropriate permissions, please run the following commands : <br/>" . $msg); 2093 } 2094 } 2095 }else{ 2096 return $this->prepareSuccessMessage('The folder has appropriate folder permissions'); 2097 } 2098 } 2099 2100 2101 2065 oseFirewall::callLibClass('fwscannerv7','fwscannerv7'); 2066 $fwscannerv7 = new oseFirewallScannerV7(); 2067 return $fwscannerv7->checkPermissions(); 2068 } 2102 2069 } 2103 2070 -
ose-firewall/trunk/ose_firewall_badge.php
r1900946 r1921717 4 4 Description: Plugin For Showing Centrora Security Badge 5 5 Author: Centrora Security 6 Version: 7.4. 36 Version: 7.4.4 7 7 */ 8 8 include(dirname(__FILE__).'/includes/oseBadgeWidget.php'); -
ose-firewall/trunk/ose_wordpress_firewall.php
r1900946 r1921717 5 5 Description: 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. 6 6 Author: Centrora (Previously ProWeb) 7 Version: 7.4. 37 Version: 7.4.4 8 8 Author URI: http://www.centrora.com/ 9 9 */
Note: See TracChangeset
for help on using the changeset viewer.