Skip to content

Commit

Permalink
v1.0!!!!!
Browse files Browse the repository at this point in the history
-v1.0.
-Fixed vulnerable HRProprietary document root. 
-HRC2 now checks for the existence of an index file and creates one if it is missing. 
-HRC2 now replaces an existing HRProprietary index file daily.
-Converting compressed archive files from any format to .zip resulted in deeply.... deeply nested paths. The desired operation was still completed, but access to the files within the new archive was inconvinient. These issues have been fixed by adding "-j" to the zip shell_exec command resulting in the archiver junking the paths of the target files during re-compression.
  • Loading branch information
zelon88 authored Feb 18, 2017
1 parent 2eca097 commit 4adc2ef
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cloudCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@
@rmdir($delFile); } }
@rmdir($safedir2); }
elseif (in_array($extension,$arrayzipo) ) {
shell_exec("zip -r $safedir4 $safedir2");
shell_exec("zip -r -j $safedir4 $safedir2");
@copy($safedir4, $newPathname); }
if (file_exists($safedir4) ) {
@chmod($safedir4, 0755);
Expand Down
2 changes: 1 addition & 1 deletion compatibilityCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/*
HRCLOUD2 VERSION INFORMATION
THIS VERSION : v0.9.9.9.9.9
THIS VERSION : v1.0
WRITTEN ON : 2/16/2017
*/

Expand Down
4 changes: 4 additions & 0 deletions securityCore.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
@chgrp($InstLoc.'/Screenshots', 'www-data');
@@chgrp($UserConfig, 'www-data');

// / The following code purges old index.html files from the HRProprietary directory directory daily.
if (!file_exists('/var/www/html/HRProprietary/index.html') or filemtime('/var/www/html/HRProprietary/index.html') >= 86400) {
copy ('index.html', '/var/www/html/HRProprietary/index.html'); }

// / Secutity related processing.
$SaltHash = hash('ripemd160',$Date.$Salts.$UserIDRAW);
if (isset($_POST['YUMMYSaltHash'])) {
Expand Down
2 changes: 1 addition & 1 deletion versionInfo.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
// / This file contains the current HRCloud2 version for auto-update purposes.
// /
$Version = 'v0.9.9.9.9.9';
$Version = 'v1.0';

0 comments on commit 4adc2ef

Please sign in to comment.