Skip to content

Commit 653cf6f

Browse files
authored
Merge pull request #450 from bigcommerce/fix/CVE-2023-49162
fix: CVE-2023-49162 debug logs being exposed
2 parents 0904550 + 918df3b commit 653cf6f

14 files changed

+248
-78
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [5.0.7]
4+
5+
### Fixed
6+
- Fix CVE-2023-49162
7+
38
## [5.0.6]
49

510
### Changed
@@ -1909,7 +1914,8 @@
19091914
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
19101915

19111916

1912-
[5.0.5]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.5...5.0.6
1917+
[5.0.7]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.6...5.0.7
1918+
[5.0.6]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.5...5.0.6
19131919
[5.0.5]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.4...5.0.5
19141920
[5.0.4]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.3...5.0.4
19151921
[5.0.3]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/5.0.2...5.0.3

bigcommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: BigCommerce for WordPress
44
Description: Scale your ecommerce business with WordPress on the front-end and BigCommerce on the back end. Free up server resources from things like catalog management, processing payments, and managing fulfillment logistics.
55
Author: BigCommerce
6-
Version: 5.0.6
6+
Version: 5.0.7
77
Author URI: https://www.bigcommerce.com/wordpress
88
Requires PHP: 7.4.0
99
Text Domain: bigcommerce

build-timestamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '9.18.11.13.2023');
2+
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '11.48.12.14.2023');

src/BigCommerce/Logging/Error_Log.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private function init_log_dir() {
153153
* @param $directory_path
154154
*/
155155
private function write_htaccess( $directory_path ) {
156-
$htaccess_file = fopen( $directory_path . ".htaccess", "a+" );
156+
$htaccess_file = fopen( $directory_path . "/.htaccess", "a+" );
157157

158158
$rulles = <<<HTACCESS
159159
# BigCommerce Plugin Rule

src/BigCommerce/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace BigCommerce;
55

66
class Plugin {
7-
const VERSION = '5.0.6';
7+
const VERSION = '5.0.7';
88

99
protected static $_instance;
1010

vendor/autoload.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
// autoload.php @generated by Composer
44

5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
trigger_error(
18+
$err,
19+
E_USER_ERROR
20+
);
21+
}
22+
523
require_once __DIR__ . '/composer/autoload_real.php';
624

725
return ComposerAutoloaderInite3b7bc6dcf7f80d1326d7975fb9f5e3f::getLoader();

0 commit comments

Comments
 (0)