This is a discussion on Image Validation within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Not long ago when password security on our web site accidentally got turned off our web site was hacked by ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Not long ago when password security on our web site accidentally got turned off our web site was hacked by using a security hole in osCommerce. The hacker uploaded a PHP file to our server by choosing it instead of an image file for one of the categories on our web site using categories maintenance in the admin section. When the "image" was then displayed it loaded the hack onto our server. If osCommerce validated image files like it should then the hacker would never have been able to hack the site. While osCommerce has the ability to restrict the file types for uploads built in, for some reason it was not used to prevent invalid file types from being uploaded as images in category and product maintenance and in manufacturer maintenance. This simple modification fixes this security flaw by requiring that the image files chosen for categories, products or manufacturers be one of the four types of image files that can universally be displayed by web browsers. Both instructions and completed PHP files are included in the download. More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Anti Robot Registration Validation 1.0 + images | michael_s | New osCommerce Contributions | 0 | 01-21-2007 07:11 AM |
| Validation in admin | chitta_rn | osCMax v2 Customization/Mods | 0 | 02-17-2006 06:17 AM |
| AUTHORIZE.NET VALIDATION FIELDS-HELP | whazzy | osCMax v1.7 Discussion | 0 | 03-28-2005 06:52 AM |
| Email validation issue | webguy262 | osCommerce 2.2 Installation Help | 0 | 06-24-2004 10:20 AM |
| Zip code files/validation | Skidude | osCommerce 2.2 Modification Help | 0 | 09-19-2003 07:54 AM |