🔥 HOT: Changeset/ - High Quality

Changeset 3281235


Ignore:
Timestamp:
04/24/2025 07:20:00 PM (8 months ago)
Author:
devloper00
Message:

Fix vulnérability

Location:
media-library-downloader/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • media-library-downloader/trunk/includes/class-main.php

    r2796173 r3281235  
    4545
    4646            // Prevent non authorized user to make action
    47             if ( !is_user_logged_in() && !is_admin() ) :
    48                 return;
     47            if ( !current_user_can('upload_files') ) :
     48                wp_send_json_error('Unauthorized access', 403);
     49                wp_die();
    4950            endif;
    5051
  • media-library-downloader/trunk/media-library-downloader.php

    r3226210 r3281235  
    44 * Plugin URI:        https://wordpress.org/plugins/media-library-downloader/
    55 * Description:       Download multiple media library files in one click !
    6  * Version:           1.3.1
     6 * Version:           1.3.2
    77 * Tags:              library, media, files, download, downloader, WordPress
    88 * Requires at least: 5.0 or higher
    99 * Requires PHP:      5.6
    1010 * Tested up to:      6.6.1
    11  * Stable tag:        1.3.1
     11 * Stable tag:        1.3.2
    1212 * Author:            M . Code
    1313 * License:           GPL v2 or later
  • media-library-downloader/trunk/readme.txt

    r3141339 r3281235  
    2929== Changelog ==
    3030
     31= 1.3.2 =
     32* Fix vulnerabilities regarding access control
     33
    3134= 1.3.1 =
    3235* Fix bug where download button where disabled
Note: See TracChangeset for help on using the changeset viewer.