Plugin Directory

Changeset 2948908


Ignore:
Timestamp:
08/07/2023 08:52:05 PM (2 years ago)
Author:
grimmdude
Message:

4.9 - Address file deletion vulnerability.

Location:
all-in-one-favicon/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-favicon/trunk/all-in-one-favicon.php

    r2225093 r2948908  
    77 * Plugin URI: http://www.techotronic.de/plugins/all-in-one-favicon/
    88 * Description: All in one Favicon management. Easily add a Favicon to your site and the WordPress admin pages. Complete with upload functionality. Supports all three Favicon types (ico,png,gif)
    9  * Version: 4.7
     9 * Version: 4.8
    1010 * Author: Arne Franken
    1111 * Author URI: https://appsumo.com/tools/wordpress/?utm_source=sumo&utm_medium=wp-widget&utm_campaign=all-in-one-favicon
     
    2424
    2525// define constants
    26 define('AIOFAVICON_VERSION', '4.7');
     26define('AIOFAVICON_VERSION', '4.8');
    2727
    2828if (!defined('AIOFAVICON_PLUGIN_BASENAME')) {
  • all-in-one-favicon/trunk/includes/aio-favicon-backend.php

    r2223136 r2948908  
    364364  function deleteFile($faviconName) {
    365365    $url = $this->aioFaviconSettings[$faviconName];
     366
     367    // Sanitize the file path
     368    $url = str_replace(['../', '..'], '', $url);
     369
    366370    if ($url != '') {
    367371      $uploads = wp_upload_dir();
  • all-in-one-favicon/trunk/readme.txt

    r2764244 r2948908  
    9393
    9494== Changelog ==
     95= 4.8 (2023-08-07) =
     96* Address file deletion vulnerability.
    9597
    9698= 4.7 (2018-07-23) =
Note: See TracChangeset for help on using the changeset viewer.