Skip to content

Commit

Permalink
Merge tag 'v19.4.8' into 20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingmana committed Oct 20, 2020
2 parents 7974e12 + cd4c896 commit 090ea91
Show file tree
Hide file tree
Showing 14 changed files with 71 additions and 31 deletions.
14 changes: 13 additions & 1 deletion .github/changelog/version_19.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@


## v19.4.8 - unreleased
## v19.4.9 - unreleased


## v19.4.8 - 2020-10-20

CVE-2020-15244 RCE via PHP Object injection via SOAP Requests
#1250 removed use of travisCI
#1236 Adds missing meta tags to prevent SUPEE-11295 related warnings from Magereport
#991 Migrate to new frontend cookie name (session namespace) (#990)
#1266 Add ddev based development setup to Readme
#1247 Fix call_user_func_array arguments for PHP 8
#1242 update mcrypt related explanation in Readme
#1184 Add php-74 to static tests



Expand Down
10 changes: 9 additions & 1 deletion .github/changelog/version_20.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@



## v20.0.4 - unreleased
## v20.0.5 - unreleased


## v20.0.4 - 2020-10-20

merged changes from v19.4.8
including
CVE-2020-15244 RCE via PHP Object injection via SOAP Requests


## v20.0.3 - 2020-09-15

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/static-code-analyses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
max-parallel: 5
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.0', '7.1', '7.2', '7.3']
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4']
steps:
- uses: actions/checkout@v1
- name: Setup PHP
Expand All @@ -39,7 +39,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4', '8.0']
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v1
- name: Setup PHP
Expand All @@ -54,7 +54,7 @@ jobs:
run: php -v
- name: Check .php files
continue-on-error: true
run: '! find . -not \( -path ./.phpstorm.meta.php -prune \) -not \( -path ./lib/PEAR -prune \) -not \( -path ./lib/phpseclib -prune \) -not \( -path ./lib/Zend -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'
run: '! find . -not \( -path ./.phpstorm.meta.php -prune \) -type f -name "*.php" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'
- name: Check .phtml files
continue-on-error: true
run: '! find app/design -type f -name "*.phtml" -exec php -d error_reporting=32767 -l {} \; 2>&1 1> /dev/null | grep "^"'
Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ git add -A && git commit
- PHP 7.0+ (PHP 7.3 and OpenSSL extension strongly recommended)
- MySQL 5.6+ (8.0+ Recommended)

If using php 7.2+ then mcrypt needs to be disabled in php.ini or pecl to fallback on mcryptcompat and phpseclib. mcrypt is deprecated from 7.2+ onwards.

## Translations

There are some new or changed tranlations, if you want add them to your locale pack please check:
Expand All @@ -75,6 +77,13 @@ You can add additional meta files in this directory to cover your own project fi
[PhpStorm advanced metadata](https://www.jetbrains.com/help/phpstorm/ide-advanced-metadata.html)
for more information.

## Development Environment with ddev
- Install [ddev](https://ddev.com/get-started/)
- Clone the repository as described in Installation -> Using Git
- Create a ddev config using ```$ ddev config``` the defaults should be good for you
- Open .ddev/config.yaml and change the php version to 7.2
- Navigate to https://magento-lts.ddev.site

## Removed Modules

- Phoenix_Moneybookers
Expand Down Expand Up @@ -242,4 +251,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public static function getOpenMageVersionInfo()
return array(
'major' => '20',
'minor' => '0',
'patch' => '3',
'patch' => '4',
'stability' => '', // beta,alpha,rc
'number' => '', // 1,2,3,0.3.7,x.7.z.92 @see https://semver.org/#spec-item-9
);
Expand Down
4 changes: 4 additions & 0 deletions app/code/core/Mage/Catalog/Model/Product/Attribute/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ public function remove($attribute)
$this->_fault('can_not_delete');
}

if (!$model->getIsUserDefined()) {
$this->_fault('can_not_delete');
}

try {
$model->delete();
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ protected function _afterLoad()

foreach ($this as $product) {
if ($product->isRecurring() && $profile = $product->getRecurringProfile()) {
$product->setRecurringProfile(unserialize($profile));
$product->setRecurringProfile(Mage::helper('core/unserializeArray')->unserialize($profile));
}
}

Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Controller/Front/Action.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Mage_Core_Controller_Front_Action extends Mage_Core_Controller_Varien_Acti
/**
* Session namespace to refer in other places
*/
const SESSION_NAMESPACE = 'frontend';
const SESSION_NAMESPACE = 'om_frontend';

/**
* Add secret key to url config path
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/Model/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ protected function _generateAction($node, $parent)
}

$this->_translateLayoutNode($node, $args);
call_user_func_array(array($block, $method), $args);
call_user_func_array(array($block, $method), array_values($args));
}

Varien_Profiler::stop($_profilerKey);
Expand Down
27 changes: 25 additions & 2 deletions app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,22 @@ public function start($sessionName = null)
$cookieParams['domain'] = $cookie->getDomain();
}

call_user_func_array('session_set_cookie_params', $cookieParams);
call_user_func_array('session_set_cookie_params', array_values($cookieParams));

if (!empty($sessionName)) {
$this->setSessionName($sessionName);
}

// Migrate old cookie from 'frontend'
if ($sessionName === \Mage_Core_Controller_Front_Action::SESSION_NAMESPACE
&& $cookie->get('frontend')
&& ! $cookie->get(\Mage_Core_Controller_Front_Action::SESSION_NAMESPACE)
) {
$frontendValue = $cookie->get('frontend');
$_COOKIE[\Mage_Core_Controller_Front_Action::SESSION_NAMESPACE] = $frontendValue;
$cookie->set(Mage_Core_Controller_Front_Action::SESSION_NAMESPACE, $frontendValue);
$cookie->delete('frontend');
}
}
// potential custom logic for session id (ex. switching between hosts)
$this->setSessionId();

Expand All @@ -143,6 +153,19 @@ public function start($sessionName = null)
$secureCookieName = $sessionName . '_cid';
if (isset($_SESSION[self::SECURE_COOKIE_CHECK_KEY])) {
$cookieValue = $cookie->get($secureCookieName);

// Migrate old cookie from 'frontend'
if ( ! $cookieValue
&& $sessionName === \Mage_Core_Controller_Front_Action::SESSION_NAMESPACE
&& $cookie->get('frontend_cid')
&& ! $cookie->get($secureCookieName)
) {
$frontendValue = $cookie->get('frontend_cid');
$_COOKIE[$secureCookieName] = $frontendValue;
$cookie->set($secureCookieName, $frontendValue);
$cookie->delete('frontend_cid');
}

if (!is_string($cookieValue) || $_SESSION[self::SECURE_COOKIE_CHECK_KEY] !== md5($cookieValue)) {
session_regenerate_id(false);
$sessionHosts = $this->getSessionHosts();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<title><?php echo Mage::helper('adminhtml')->__('Log into OpenMage LTS Admin Page'); ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />
Expand Down
1 change: 1 addition & 0 deletions app/design/adminhtml/default/openmage/template/login.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<title><?php echo Mage::helper('adminhtml')->__('Log into OpenMage LTS Admin Page') ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<title><?php echo Mage::helper('adminhtml')->__('Reset a Password'); ?></title>
<link type="text/css" rel="stylesheet" href="<?php echo $this->getSkinUrl('login.css') ?>" media="all" />
<link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />
Expand Down

0 comments on commit 090ea91

Please sign in to comment.