Skip to content

Commit

Permalink
LUGG-1217 Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
jrearick committed Dec 2, 2020
2 parents ecf5593 + 2c8fa33 commit ed1b9d8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Drupal 7.75, 2020-11-26
-----------------------
- Fixed security issues:
- SA-CORE-2020-013

Drupal 7.74, 2020-11-17
-----------------------
- Fixed security issues:
Expand Down
7 changes: 6 additions & 1 deletion LUGGAGE_CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ How to read this changelog:

The LUGG- prefix refers to JIRA issue numbers; the # prefix refers to GitHub issue numbers.

Luggage 3.6.16, 2020-12-02
Drupal 7.75, 2020-11-25
-------------------------
- LUGG-1217 - Drupal 7.75 SA-CORE-2020-013

Luggage 3.6.15, 2020-11-18
Drupal 7.74, 2020-11-18
-------------------------
- LUGG-1216 - Drupal 7.74 SA-CORE-2020-007
- LUGG-1216 - Drupal 7.74 SA-CORE-2020-012

Luggage 3.6.14, 2020-09-16
Drupal 7.73, 2020-09-16
Expand Down
2 changes: 1 addition & 1 deletion LUGGAGE_VERSION.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

$version = "3.6.15";
$version = "3.6.16";
2 changes: 1 addition & 1 deletion includes/bootstrap.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* The current system version.
*/
define('VERSION', '7.74');
define('VERSION', '7.75');

/**
* Core API compatibility.
Expand Down
8 changes: 4 additions & 4 deletions modules/system/system.tar.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1788,7 +1788,7 @@ class Archive_Tar

// ----- Extract the properties
$v_header['filename'] = rtrim($v_data['filename'], "\0");
if ($this->_maliciousFilename($v_header['filename'])) {
if ($this->_isMaliciousFilename($v_header['filename'])) {
$this->_error(
'Malicious .tar detected, file "' . $v_header['filename'] .
'" will not install in desired directory tree'
Expand Down Expand Up @@ -1858,9 +1858,9 @@ class Archive_Tar
*
* @return bool
*/
private function _maliciousFilename($file)
private function _isMaliciousFilename($file)
{
if (strpos($file, 'phar://') === 0) {
if (strpos($file, '://') !== false) {
return true;
}
if (strpos($file, '../') !== false || strpos($file, '..\\') !== false) {
Expand Down Expand Up @@ -1896,7 +1896,7 @@ class Archive_Tar

$v_filename = rtrim(substr($v_filename, 0, $v_filesize), "\0");
$v_header['filename'] = $v_filename;
if ($this->_maliciousFilename($v_filename)) {
if ($this->_isMaliciousFilename($v_filename)) {
$this->_error(
'Malicious .tar detected, file "' . $v_filename .
'" will not install in desired directory tree'
Expand Down

0 comments on commit ed1b9d8

Please sign in to comment.