Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Products deleted from DB

    Hi,

    I just had an issue with my client's zen cart store where somehow all the categories , products and product descriptions were deleted. Actually not all were deleted, there were 3 products left and 2 categories.

    My host said it was an SQL injection but I was pretty sure that ZC is locked down pretty well against that kind of thing. The host is restoring the DB as I type but I'm not sure what I can do to keep this from happening again.

    I am on ZC v. 1.3.8a, php v. 5.2.5 and MySQL 5.0.54.

    Any thoughts?

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Products deleted from DB

    I'm not saying it wasn't an sql injection, but I've never come across an sql injection that just wipes products and categories from a database.

    My best advice is to let your hosts restore from their backup and then wait and see if it happens again.

    Provided that you have renamed the Zen Cart 'admin' folder and protected it with .htaccess protection as well as the Zen Cart admin login then your site should be fully secure.

    Vger

  3. #3
    Join Date
    Oct 2006
    Location
    Worcester, MA
    Posts
    454
    Plugin Contributions
    0

    Default Re: Products deleted from DB

    Thanks. That's what I thought too. Seemed weird that just a few tables would be effected. It also seemed very coincidental that it happened to be the tables that my client was working with at the time it happened! :)

    My theory is that my client (who tends to click before she thinks), somehow deleted all her categories and products in fell swoop.

  4. #4
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: Products deleted from DB

    Beware of clients with "twitchy finger" syndrome :-D

    Vger

  5. #5
    Join Date
    Mar 2008
    Posts
    268
    Plugin Contributions
    0

    Default Re: Products deleted from DB

    I've had the same thing happen to me twice now where all the categories and products were wiped out. This time round the backups havn't been done and my host is saying they also don't have any backups. Does this mean im basically screwed?

  6. #6
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: Products deleted from DB

    Quote Originally Posted by DPM View Post
    I've had the same thing happen to me twice now where all the categories and products were wiped out. This time round the backups havn't been done and my host is saying they also don't have any backups. Does this mean im basically screwed?
    Do you keep older copies of your db backups? Try using one of those if you do.

    Tina

  7. #7
    Join Date
    Mar 2008
    Posts
    268
    Plugin Contributions
    0

    Default Re: Products deleted from DB

    We thought we'd set it up to automatically update but all the update files are empty so we basically have nothing.

 

 

Similar Threads

  1. how to prevent image from being deleted when a product is deleted?
    By denniszc in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 7 Mar 2013, 03:01 PM
  2. deleted zones from zen_zones
    By mentose457 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 14
    Last Post: 31 Jan 2012, 07:46 AM
  3. Has problem with deleted products in NEW PRODUCTS been resolved?
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 May 2009, 10:13 AM
  4. HTML deleted from banners
    By dkessler in forum Basic Configuration
    Replies: 17
    Last Post: 8 Oct 2008, 04:47 AM
  5. Help!! I deleted a table from my db
    By royalgemsnz in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 6 Oct 2006, 08:37 AM

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