-
Notifications
You must be signed in to change notification settings - Fork 2
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 #128 from Invertus/SL-195/security-fixes
SL-195/Validator security fixes
- Loading branch information
Showing
296 changed files
with
2,453 additions
and
844 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Apache 2.2 | ||
<IfModule !mod_authz_core.c> | ||
Order deny,allow | ||
Deny from all | ||
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$"> | ||
Allow from all | ||
</Files> | ||
</IfModule> | ||
# Apache 2.4 | ||
<IfModule mod_authz_core.c> | ||
Require all denied | ||
<Files ~ "(?i)^.*\.(jpg|jpeg|gif|png|bmp|tiff|svg|pdf|mov|mpeg|mp4|avi|mpg|wma|flv|webm|ico|webp|woff|woff2|ttf|eot|otf|css|js)$"> | ||
Require all granted | ||
</Files> | ||
</IfModule> |
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
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
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
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
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 |
---|---|---|
|
@@ -16,35 +16,16 @@ | |
*versions in the future. If you wish to customize PrestaShop for your | ||
*needs please refer to http://www.prestashop.com for more information. | ||
* | ||
{** | ||
*NOTICE OF LICENSE | ||
* | ||
*This source file is subject to the Open Software License (OSL 3.0) | ||
*that is bundled with this package in the file LICENSE.txt. | ||
*It is also available through the world-wide-web at this URL: | ||
*http://opensource.org/licenses/osl-3.0.php | ||
*If you did not receive a copy of the license and are unable to | ||
*obtain it through the world-wide-web, please send an email | ||
*to [email protected] so we can send you a copy immediately. | ||
* | ||
*DISCLAIMER | ||
* | ||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer | ||
*versions in the future. If you wish to customize PrestaShop for your | ||
*needs please refer to http://www.prestashop.com for more information. | ||
* | ||
*@author INVERTUS UAB www.invertus.eu <[email protected]> | ||
*@copyright SIX Payment Services | ||
*@license SIX Payment Services | ||
*} | ||
*/ | ||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); | ||
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); | ||
|
||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); | ||
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); | ||
|
||
header("Cache-Control: no-store, no-cache, must-revalidate"); | ||
header("Cache-Control: post-check=0, pre-check=0", false); | ||
header("Pragma: no-cache"); | ||
header('Cache-Control: no-store, no-cache, must-revalidate'); | ||
header('Cache-Control: post-check=0, pre-check=0', false); | ||
header('Pragma: no-cache'); | ||
|
||
header("Location: ../"); | ||
header('Location: ../'); | ||
exit; |
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
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
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
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 |
---|---|---|
|
@@ -16,14 +16,18 @@ | |
*versions in the future. If you wish to customize PrestaShop for your | ||
*needs please refer to http://www.prestashop.com for more information. | ||
* | ||
* @author INVERTUS UAB www.invertus.eu <[email protected]> | ||
* @copyright SIX Payment Services | ||
* @license SIX Payment Services | ||
*@author INVERTUS UAB www.invertus.eu <[email protected]> | ||
*@copyright SIX Payment Services | ||
*@license SIX Payment Services | ||
*/ | ||
|
||
use Invertus\SaferPay\Config\SaferPayConfig; | ||
use PrestaShop\PrestaShop\Core\Checkout\TermsAndConditions; | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
class SaferPayOfficialHostedIframeModuleFrontController extends ModuleFrontController | ||
{ | ||
const FILENAME = 'hostedIframe'; | ||
|
@@ -42,7 +46,7 @@ public function initContent() | |
'credit_card_front_url' => "{$this->module->getPathUri()}views/img/example-card/credit-card-front.png", | ||
'credit_card_back_url' => "{$this->module->getPathUri()}views/img/example-card/credit-card-back.png", | ||
'tos_cms' => SaferPayConfig::isVersionAbove177() ? $this->getDefaultTermsAndConditions() : null, | ||
'saferpay_selected_card' => $selectedCard | ||
'saferpay_selected_card' => $selectedCard, | ||
]); | ||
|
||
if (SaferPayConfig::isVersion17()) { | ||
|
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
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 |
---|---|---|
|
@@ -16,9 +16,9 @@ | |
*versions in the future. If you wish to customize PrestaShop for your | ||
*needs please refer to http://www.prestashop.com for more information. | ||
* | ||
* @author INVERTUS UAB www.invertus.eu <[email protected]> | ||
* @copyright SIX Payment Services | ||
* @license SIX Payment Services | ||
*@author INVERTUS UAB www.invertus.eu <[email protected]> | ||
*@copyright SIX Payment Services | ||
*@license SIX Payment Services | ||
*/ | ||
|
||
use Invertus\SaferPay\Config\SaferPayConfig; | ||
|
@@ -27,6 +27,10 @@ | |
use Invertus\SaferPay\Repository\SaferPayOrderRepository; | ||
use Invertus\SaferPay\Service\TransactionFlow\SaferPayTransactionRefundAssertion; | ||
|
||
if (!defined('_PS_VERSION_')) { | ||
exit; | ||
} | ||
|
||
class SaferPayOfficialPendingNotifyModuleFrontController extends AbstractSaferPayController | ||
{ | ||
const FILENAME = 'pendingNotify'; | ||
|
@@ -95,7 +99,7 @@ private function handleCapturedRefund($orderRefundId) | |
|
||
$order = new Order($orderRefund->id_order); | ||
|
||
if ((int)$orderAssert->refunded_amount === (int)$orderAssert->amount) { | ||
if ((int) $orderAssert->refunded_amount === (int) $orderAssert->amount) { | ||
$saferPayOrder = new SaferPayOrder($orderRefund->id_saferpay_order); | ||
$saferPayOrder->refunded = 1; | ||
$saferPayOrder->save(); | ||
|
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
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
Oops, something went wrong.