Forums / General Questions / Products deleted from DB

Products deleted from DB

Locked

Views: 1,093

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
5 Jun 2008, 8:10 PM
#1
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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?

Ellie Armsby

6 Jun 2008, 10:56 AM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

6 Jun 2008, 11:44 AM
#3
earmsby avatar

earmsby

Zen Follower

Join Date:
Oct 2006
Location:
Worcester, MA
Posts:
451
Plugin Contributions:
0

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.

Ellie Armsby

6 Jun 2008, 11:23 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Products deleted from DB

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

Vger

10 Jul 2008, 1:27 PM
#5
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

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?

10 Jul 2008, 2:04 PM
#6
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Location:
AZ
Posts:
1,890
Plugin Contributions:
0

Re: Products deleted from DB

DPM:

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

10 Jul 2008, 2:07 PM
#7
dpm avatar

dpm

Zen Follower

Join Date:
Mar 2008
Posts:
262
Plugin Contributions:
0

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.