osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Re: Security Patch

This is a discussion on Re: Security Patch within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Originally Posted by bdneuman you just put the variable in application_top to make the initial definition? Actually I would not ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #11  
Old 03-22-2005, 01:39 PM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by bdneuman
you just put the variable in application_top to make the initial definition?
Actually I would not add it to application_top myself, but I don't really know osCMax so application_top might be the best file to add it to. (so maybe Michael can make this clear for you after all )

(I would add it to configure_bts.php, but I'm not sure if osCMax even has a configure_bts file, and for safety application_top is at least as good of course).

If you set the variables to '', the script will be safer because it won't be possible to inject malicious code into variables anymore (assuming normal flow).

Quote:
Do you remove any of the variables from the various templates files then?
No.

(just to be clear, I would use it as an addition to msasek's fix, so not i.s.o.)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #12  
Old 03-23-2005, 04:29 PM
Member
 
Join Date: Nov 2004
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
goaskmom
Default

Couple of questions here. I have a couple of stores. One running MAX 1.5 and one running MAX 1.7. I'm all fixed on the 1.7 one. The 1.5 version, I noticed that in some of the template folders, there is no popup.tpl.php file, but only the main_page.tpl.php file. Do I just update what's there and not worry about anything else?

Also, I'm in a good or bad habit of copying and renaming all files before I change anything, so I always have a copy of the original. If I rename main_page.tpl.php to mainpageorig.old, and then fix the main_page.tpl.php file, am I okay, or am I still very vulnerable because the actual code that's being exploited is still on my server under a different name? So, I guess the question is, is this security risk in the actual code, or is it linked to the filename as well?

Am I okay having the original, renamed, and the modified version still on my server?

I asked Mom and she didn't know.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #13  
Old 03-24-2005, 12:12 AM
Member
 
Join Date: Jan 2004
Location: Netherlands
Posts: 71
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
paulM
Default

Quote:
Originally Posted by swdave
//Protection application_top
$javascript = '';
$content = '';
$content_template = '';
$boxLink = '';
etc...
good idea by itself, but it doesn't work (at least not with a standard BTS version), because the above sets the variables and that causes the script to preform actions which it shouldn't. So (allthough it might not really be neccessary if you've done msasek's fix and the .htaccess fix) I would add:
Code:
unset($javascript,$content,$content_template,$boxLink);
to application_top instead. This destroys the variables and thus any malicious code inside it too.
( anyone knows any more vars to add to the above list?)

I would like to repeat this one:
Quote:
Originally Posted by swdave
.httaccess in templates dir

<Files *.php>
Order Deny,Allow
Deny from all
</Files>
it really increases security a lot (especially because register_globals has to be enabled for osC unfortunately)

@goaskmom: about the differences between MAX versions I don't know anything. I would just do a search for $javascript and $content_template inside the whole templates (sub)folders if I were you, and make sure the "basename fixes" are applied to all instances you find.

Unfixed renamed files on the server of course can allways be a security risk, allthough it's very unlikely these would/could be exploited (who knows the names of these files?), I would not take the risk on a live store.

Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #14  
Old 03-25-2005, 06:01 AM
Lurker
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
danberlyoung
Default We were HACKED! Apply the patch please!

We have an osC shop set up and have BTS installed. We were hacked by the "SpyKids from Brazil" No real damage done but scared the heck out of us.

Anybody else get hit?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
osCMax 2.0RC2 Security Patch/Update 051112 wilde-uk osCMax v2 Installation issues 5 04-12-2006 07:45 PM
Blank default page after did the security patch alphaque osCMax v2 Installation issues 6 03-27-2006 02:35 AM
Security Patch osCMax 2.0RC2 warrenthewindmill osCMax v1.7 Discussion 2 12-04-2005 10:50 AM
osCMax 2.0RC2 Security Patch/Update 051112 michael_s osCMax v2 Announcements 0 11-27-2005 10:12 AM
Security patch killed pop-up function bjrafferty osCMax v1.7 Discussion 2 03-24-2005 01:13 PM


All times are GMT -8. The time now is 08:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax