Skip to content

Commit

Permalink
Fix for Authenticated (Author+) Full Path Disclosure vulnerability in…
Browse files Browse the repository at this point in the history
… error messages. Props @netc4t
  • Loading branch information
uglyrobot committed Sep 6, 2024
1 parent d2d9c6e commit 85b24d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: uglyrobot, jdailey, andtrev
Tags: increase file size limit, increase upload limit, max upload file size, post max size, upload limit, file upload, files uploader, ftp, video uploader, AJAX
Requires at least: 5.3
Tested up to: 6.4
Stable tag: 2.1.2
Tested up to: 6.6.1
Stable tag: 2.1.3
Requires PHP: 5.6
License: GPLv2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -106,6 +106,10 @@ No. [Infinite Uploads](https://wordpress.org/plugins/infinite-uploads/) is an op

== Changelog ==

2.1.3 - 2024-9-6
----------------------------------------------------------------------
- Fix for Authenticated (Author+) Full Path Disclosure vulnerability in error messages. Props @netc4t

2.1.2 - 2023-10-25
----------------------------------------------------------------------
- Minor security improvement for dismissing the review notice (CSRF).
Expand Down
12 changes: 6 additions & 6 deletions tuxedo_big_file_uploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: Big File Uploads
* Description: Enable large file uploads in the built-in WordPress media uploader via multipart uploads, and set maximum upload file size to any value based on user role. Uploads can be as large as available disk space allows.
* Version: 2.1.2
* Version: 2.1.3
* Author: Infinite Uploads
* Author URI: https://infiniteuploads.com/?utm_source=bfu_plugin&utm_medium=plugin&utm_campaign=bfu_plugin&utm_content=meta
* Network: true
Expand All @@ -24,7 +24,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright 2021 UglyRobot, LLC
* Copyright 2021-2024 UglyRobot, LLC
*
* @package BigFileUploads
* @version 2.0
Expand All @@ -34,7 +34,7 @@
die();
}

define( 'BIG_FILE_UPLOADS_VERSION', '2.1.2' );
define( 'BIG_FILE_UPLOADS_VERSION', '2.1.3' );

/**
* Big File Uploads manager class.
Expand Down Expand Up @@ -175,7 +175,7 @@ public function filter_plupload_settings( $plupload_settings ) {
} else {
$default_chunk = $max_chunk / KB_IN_BYTES;
}
//define( 'BIG_FILE_UPLOADS_CHUNK_SIZE_KB', 512 );//TODO remove

if ( ! defined( 'BIG_FILE_UPLOADS_CHUNK_SIZE_KB' ) ) {
define( 'BIG_FILE_UPLOADS_CHUNK_SIZE_KB', $default_chunk );
}
Expand Down Expand Up @@ -598,7 +598,7 @@ public function ajax_chunk_receiver() {
array(
'success' => false,
'data' => array(
'message' => sprintf( __( 'There was an error opening the temp file %s for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' ), esc_html( $filePath ) ),
'message' => __( 'There was an error opening the temp file for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' ),
'filename' => esc_html( $fileName ),
),
)
Expand All @@ -617,7 +617,7 @@ public function ajax_chunk_receiver() {
__( '“%s” has failed to upload.' ),
esc_html( $fileName )
),
sprintf( __( 'There was an error opening the temp file %s for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' ), esc_html( $filePath ) )
__( 'There was an error opening the temp file for writing. Available temp directory space may be exceeded or the temp file was cleaned up before the upload completed.', 'tuxedo-big-file-uploads' )
);
exit;
}
Expand Down

0 comments on commit 85b24d8

Please sign in to comment.