Possible OpenCart Security Issue
59 posts
• Page 1 of 3 • 1, 2, 3
Possible OpenCart Security Issue
I have just become aware of a security problem with OpenCart 1.5.x and all previous versions.
The fix is here:
http://code.google.com/p/opencart/source/detail?r=577
you need to replace your library cache file.
system/library/cache.php
with
So far all it does is overwrite files in your site with blank ones.
I'm going to release a version 1.5.1.2 with the fix included.
sorry about this guys. I'm really kicking myself for not finding this sooner.
The fix is here:
http://code.google.com/p/opencart/source/detail?r=577
you need to replace your library cache file.
system/library/cache.php
with
So far all it does is overwrite files in your site with blank ones.
I'm going to release a version 1.5.1.2 with the fix included.
sorry about this guys. I'm really kicking myself for not finding this sooner.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5185
- Joined: Fri Nov 03, 2006 10:57 am
Re: OpenCart Security Issue
Maybe I doesn't understand correctly but is this also needed for the version 1.4.9.x and lower?
- extigo
- Posts: 172
- Joined: Thu Dec 09, 2010 9:04 am
Re: OpenCart Security Issue
yes.
i have been testing this hack though and can;t seem to pull it off.
i'm still testing to see what has actually happened.
i have been testing this hack though and can;t seem to pull it off.
i'm still testing to see what has actually happened.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5185
- Joined: Fri Nov 03, 2006 10:57 am
Re: OpenCart Security Issue
Daniel wrote:I'm going to release a version 1.5.1.2 with the fix included.
So, I can still use my 1.5.1.1 if using this fix, the cache.php ?
Thanks.
- mkh
- Posts: 29
- Joined: Thu Jun 23, 2011 5:55 pm
Re: OpenCart Security Issue
ok possible false alarm.
i just checked the code and their is no way this could happen.
it was reported here:
http://vickigroup.wordpress.com/2011/09 ... -versions/
they reported it today.
can anyone else please try to see if they can get this hack to work.
i just checked the code and their is no way this could happen.
it was reported here:
http://vickigroup.wordpress.com/2011/09 ... -versions/
they reported it today.
can anyone else please try to see if they can get this hack to work.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5185
- Joined: Fri Nov 03, 2006 10:57 am
Re: Possible OpenCart Security Issue
I can see where they are coming from with the unsanitized data, but it shouldn't actually work, and I can't get it to replicate. That said, it is possible for someone to fill your cache folder with loads of useless files. Say for example I put country_id=1.1.1.1.1.1.1.1 That would still make a cache file for country id 1 but the wrong cache name. This should be stemmed to just 1 using (int) like in the query in the localisation/zone model file

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4639
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Possible OpenCart Security Issue
regardless I don't think the problem is going to be in the cache file itself, but in other files that call it using unsanitized data.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
- Xsecrets
- Posts: 5042
- Joined: Sat Oct 24, 2009 7:51 pm
- Location: FL US
Re: Possible OpenCart Security Issue
I couldn't get it to work either, though I suppose that for this particular file you should sanitize the get by calling it with an int which would kill the attack vector, and then for good measure you could check to make sure data is actually returned before you call the cache set.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
- Xsecrets
- Posts: 5042
- Joined: Sat Oct 24, 2009 7:51 pm
- Location: FL US
Re: Possible OpenCart Security Issue
It very much works and allows you to overwrite files and take the site down. I've tested it on on one live web server running a default(ish) install of 1.5.1.1.
-

grgr - Posts: 834
- Joined: Mon Mar 28, 2011 8:08 am
Re: Possible OpenCart Security Issue
So whats it gonna be ?
Update the cache.php file or not ?
Update the cache.php file or not ?
-

dony_b - Posts: 233
- Joined: Wed Aug 18, 2010 1:56 pm
- Location: Boston, MA
Re: Possible OpenCart Security Issue
There's no reason you can't update the cache file, but it should be the data input that's sanitized IMO

Better Product SEO URL's - Perfectly structured product links
Better Category SEO URL's - Give subcategories the same SEO keyword
SEO URL's Route Editor - Fix all of your index.php links

-

JAY6390 - Posts: 4639
- Joined: Wed May 26, 2010 3:47 pm
- Location: United Kingdom
Re: Possible OpenCart Security Issue
grgr wrote:It very much works and allows you to overwrite files and take the site down. I've tested it on on one live web server running a default(ish) install of 1.5.1.1.
can you explain exactly how you managed to make it work, because as reported it very much does not work. If you don't want to post in in the open please PM me.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
- Xsecrets
- Posts: 5042
- Joined: Sat Oct 24, 2009 7:51 pm
- Location: FL US
Re: Possible OpenCart Security Issue
grgr wrote:It very much works and allows you to overwrite files and take the site down. I've tested it on on one live web server running a default(ish) install of 1.5.1.1.
can u you pm me this hack aswell?
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5185
- Joined: Fri Nov 03, 2006 10:57 am
Re: Possible OpenCart Security Issue
I was able to get it to write files with additional testing, but I could not make it overwrite files. On my setup the %00 killed it, but from other claims I'm guessing it works on some configurations.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
- Xsecrets
- Posts: 5042
- Joined: Sat Oct 24, 2009 7:51 pm
- Location: FL US
Re: Possible OpenCart Security Issue
i got it to work. i did not use (int) on some of the cache names when selecting the country_id.
OpenCart®
Project Owner & Developer.
OpenCart commercial support now available!
Project Owner & Developer.
OpenCart commercial support now available!
-

Daniel - Administrator
- Posts: 5185
- Joined: Fri Nov 03, 2006 10:57 am
Re: Possible OpenCart Security Issue
JAY6390 wrote:There's no reason you can't update the cache file, but it should be the data input that's sanitized IMO
what exactly do you mean by that ?
thank you
-

wolfsteritory - Posts: 81
- Joined: Sat Jan 31, 2009 6:08 pm
Re: Possible OpenCart Security Issue
What about 1.4.9.x versions? does this fix apply for that as well?
FlexiHost NZ http://www.flexihost.co.nz
- FlexiHost
- Posts: 42
- Joined: Mon Mar 01, 2010 10:13 pm
- Location: Christchurch, New Zealand
Re: Possible OpenCart Security Issue
FlexiHost wrote:What about 1.4.9.x versions? does this fix apply for that as well?
As far as I know, this is meant for EVERY versions...
v. 1.4.9.6 & v. 1.5.1.1
- Joxe
- Posts: 204
- Joined: Tue Apr 27, 2010 10:12 pm
Re: Possible OpenCart Security Issue
Yes, the /system/library/cache.php file from 1.5.1.2 works on 1.4.x versions.
-

Johnathan - Global Moderator
- Posts: 2955
- Joined: Thu Dec 17, 2009 7:08 pm
59 posts
• Page 1 of 3 • 1, 2, 3
Return to News & Announcements
Who is online
Users browsing this forum: MaxD and 18 guests





























