forked from coral-erm/coral
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Coral-erm/master
Sync with master
- Loading branch information
Showing
26 changed files
with
397 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE `SFXProvider` CHANGE `SFXProvider` `sfxProvider` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT; | ||
ALTER TABLE `Expression` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
management/install/SECURITY-Enforce-redirect-to-login-page.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/user.php b/user.php | ||
index eb895d0..76963cf 100644 | ||
--- a/user.php | ||
+++ b/user.php | ||
@@ -56,6 +56,7 @@ $sessionID = $util->getSessionCookie(); | ||
$authURL = $util->getCORALURL() . "auth/" . $addURL . htmlentities($_SERVER['REQUEST_URI']); | ||
header('Location: ' . $authURL, true); | ||
|
||
+ exit; //PREVENT SECURITY HOLE | ||
} | ||
|
||
|
||
@@ -105,6 +106,7 @@ if ($loginID){ | ||
//if the user doesn't exist in database we need to redirect them to a page to give instructions on how to be added | ||
if ($user->privilegeID == ""){ | ||
header('Location: not_available.php'); | ||
+ exit; //PREVENT SECURITY HOLE | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
The following file contains notes on specific upgrades. For full instructions on how to run an upgrade, refer to the technical documentation available at http://coral-erm.org | ||
|
||
************************************************************************************************** | ||
**** | ||
**** | ||
**** UPGRADING FROM CORAL MANAGEMENT VERSION 1.0 TO 1.1 | ||
**** | ||
**** | ||
************************************************************************************************** | ||
|
||
This upgrade contains coding and database structure changes. | ||
|
||
To install this upgrade, simply run the file install/upgrade_1.1.sql into MySQL located in the install directory. The database changes will be run immediatly. | ||
|
||
This release includes translatability of the module. French translation is provided | ||
|
||
This version is the last one released as a single module. Next versions will be able from https://github.com/Coral-erm/Coral, the ndlibersa repository is deprecated. | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
organizations/install/SECURITY-Enforce-redirect-to-login-page.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/user.php b/user.php | ||
index 3d612e4..edba9d9 100644 | ||
--- a/user.php | ||
+++ b/user.php | ||
@@ -58,6 +58,7 @@ if ($config->settings->authModule == 'Y'){ | ||
$authURL = $util->getCORALURL() . "auth/" . $addURL . htmlentities($_SERVER['REQUEST_URI']); | ||
header('Location: ' . $authURL, true); | ||
|
||
+ exit; //PREVENT SECURITY HOLE | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
DROP TABLE IF EXISTS 'Country'; | ||
DROP TABLE IF EXISTS 'State'; | ||
|
||
UPDATE 'ContactRoleProfile' SET default_storage_engine = MyISAM AUTO_INCREMENT = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
ALTER TABLE `IssueLog` ADD `issueLogTypeID` INT NULL AFTER `organizationID` ; | ||
ALTER TABLE `IssueLog` CHANGE `issueDate` `issueStartDate` DATE NULL DEFAULT NULL ; | ||
ALTER TABLE `IssueLog` ADD `issueEndDate` DATE NULL AFTER `issueStartDate` ; | ||
CREATE INDEX `issueLogTypeId` ON `IssueLog` (`issueLogTypeID` ) ; | ||
|
||
CREATE TABLE IF NOT EXISTS `IssueLogType` ( | ||
`issueLogTypeID` int(11) NOT NULL auto_increment, | ||
`shortName` varchar(50) default NULL, | ||
PRIMARY KEY (`issueLogTypeID`), | ||
UNIQUE KEY `issueLogTypeID` (`issueLogTypeID`) | ||
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; | ||
|
||
|
||
--ALTER DATABASE `_DATABASE_NAME_` CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `Alias` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `AliasType` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `Contact` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `ContactRole` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `ContactRoleProfile` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `ExternalLogin` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `ExternalLoginType` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `IssueLog` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `IssueLogType` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `Organization` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `OrganizationHierarchy` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `OrganizationRole` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `OrganizationRoleProfile` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `Privilege` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; | ||
ALTER TABLE `User` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
resources/install/SECURITY-Enforce-redirect-to-login-page.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/user.php b/user.php | ||
index 3bbbad6..1a4111c 100644 | ||
--- a/user.php | ||
+++ b/user.php | ||
@@ -53,6 +53,7 @@ if ($config->settings->authModule == 'Y'){ | ||
$authURL = $util->getCORALURL() . "auth/" . $addURL . htmlentities($_SERVER['REQUEST_URI']); | ||
header('Location: ' . $authURL, true); | ||
|
||
+ exit; //PREVENT SECURITY HOLE | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.