Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-2408

Implement security patch for unpatched WP security issue (June 2018)

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Should have Should have
    • 1.22.0
    • None
    • 4
    • Security
    • Sprint #46

      An unpatched wordpress security issue was made public.

      There exists a patch we could do on our own theme's functions.php file (aka, without touching wordpress).

      add_filter( 'wp_update_attachment_metadata', 'rips_unlink_tempfix' );
      
      function rips_unlink_tempfix( $data ) {
          if( isset($data['thumb']) ) {
              $data['thumb'] = basename($data['thumb']);
          }
      
          return $data;
      }
      

      We need to test that to see that it does not break something with our wp-stateless or with anything else in our site.

      If stateless is not broken (images uploading, images thumbnails getting created etc), then we can deploy it via our own master-theme

       

            atheodor Angelos Theodorakopoulos (Inactive)
            kkokkoro Konstantinos Kokkorogiannis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: