Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Auction Product Type : security leak found at tinythumb.php

    Goodmorning all.

    I have a question. I recently installed the Auction Product Type. But now my hostingcompany told me that there is a huge security leak at tinythumb.php.

    Do you happen to know how I can solve this?

    Best Regards,

    Sabine
    Merlins Cave

  2. #2
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Without much further information from the host, I did a brief review of the file and there are a few settings towards the top that may play a factor having to do with gathering information "offsite"... one of the default settings doesn't match a later "discussion" of being more secure. This includes the use of the cache directory which is created on the fly. Personally not entirely sure the importance of the actions taken by this file, but there are likely security improvements that can be made.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,826
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    tinythumb.php is the timthumb image re-sizer script. Spend a little while reading the results of a google search for "timthumb exploit" to see why you shouldn't use it. timthumb has not been allowed to be bundled with a WordPress theme, from the official WordPress Theme Directory or ThemeForest, since about 2011 because of security vulnerabilities with the script.
    Mike
    AEIIA - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Auction Product Type : security leak found at tinythumb.php

    I think the fix is pretty simple:

    1. /admin/auctions_manager.php
    line 231 is:
    Code:
                    <td  class="dataTableContent"><?php echo zen_image(DIR_WS_ADMIN . 'images/auction_manager/tinythumb.php?src=' . DIR_WS_CATALOG_IMAGES . $auctions->fields['products_image'] . '&h=50&zc=0'); ?></td>
    replace that with:
    Code:
    
                    <td  class="dataTableContent"><?php echo zen_image(DIR_WS_CATALOG_IMAGES . $auctions->fields['products_image'], $auctions->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT);


    2. And then delete the entire /admin/images/auction_manager/ folder (which includes the old cached images and the tiny_thumb.php file).



    If you find the images are now too large on the screen, you could replace SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT above with 50,50 instead.



    I've pushed a new release with ONLY this change in it: https://www.zen-cart.com/downloads.php?do=file&id=45
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Thank you all :) :)

  6. #6
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Thank you drByte, I have changed the code :)

  7. #7
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Quote Originally Posted by LadyoftheCave View Post
    Thank you drByte, I have changed the code :)
    Hi DrByte, I have find out that after changing the code. I cannot go to Catalog - Auctionmanager anymore. Then I receive a message that this page is not available,..

    Best Regards,

  8. #8
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Auction Product Type : security leak found at tinythumb.php

    I think you've made an error. When I tested it after making those changes I was able to access the page without issue.

    Might also be worth looking into your logs: http://www.zen-cart.com/content.php?124-blank-page
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Quote Originally Posted by DrByte View Post
    I think you've made an error. When I tested it after making those changes I was able to access the page without issue.

    Might also be worth looking into your logs: http://www.zen-cart.com/content.php?124-blank-page
    Ok, I will try again :)

  10. #10
    Join Date
    Jan 2016
    Location
    Netherlands
    Posts
    150
    Plugin Contributions
    0

    Default Re: Auction Product Type : security leak found at tinythumb.php

    Hi drByte,

    I have found the problem, The ?></td>at the end was missing :) Thank you..

 

 

Similar Threads

  1. Auction Product Type
    By gusuval in forum All Other Contributions/Addons
    Replies: 739
    Last Post: 18 May 2024, 04:02 PM
  2. v154 Auction Product Type : Page not found
    By LadyoftheCave in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 16 May 2016, 08:58 PM
  3. Auction Product Type: Can't add a product of the type.
    By sw0rdz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2009, 02:11 AM
  4. Auction Product Type
    By chinthana in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Jun 2009, 10:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR