osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

POST exploit ?

This is a discussion on POST exploit ? within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; I am still using 2.0.3 RC4, I haven't had time to set up a new store under 2.2, but I ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 03-02-2010, 08:17 PM
Member
 
Join Date: Jan 2009
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jmelson is on a distinguished road
Default POST exploit ?

I am still using 2.0.3 RC4, I haven't had time to set up a new store under 2.2, but I have tried to perform all the security changes that have been recommended.

In the last couple days, I have observed my mail server sending out a bunch of spam, and finally traced it to somebody using an http POST transfer to .../catalog/images/yahoo/index.php

My quick fix was to rename the yahoo directory to a random string, as I don't use the Yahoo interface. Eventually, the spammer will figure out another php script that he can pull the same stunt on.

Does anyone know exactly what is going on here, and how to prevent POST operations from being performed like this? I assume I have a security weakness somewhere in my system, but I'm not an expert in this stuff.

Thanks,

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 03-02-2010, 10:03 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 16,522
Thanks: 149
Thanked 652 Times in 558 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: POST exploit ?

There is no such version 2.0.3 RC4 of osCMax.

You are either running 2.0 RC4 or 2.0.3 Stable. Please confirm the version you are actually running.

If RC4 there are exploits that need to be fixed. The images/yahoo folder is NOT part of osCMax, so delete it.

Next, look for any other php files in your images folder and delete them. They are not part of osCMax.
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 03-03-2010, 08:38 AM
Member
 
Join Date: Jan 2009
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jmelson is on a distinguished road
Default Re: POST exploit ?

Quote:
Originally Posted by michael_s View Post
There is no such version 2.0.3 RC4 of osCMax.
Well, server information says 2.0.3, but I distinctly remember using a special version that allowed you to run with register_globals off. I am running with register_globals off, but maybe I updated to 2.0.3 because it also could run with that setting off.

Anyway, I *THINK* I have found the problem, not osCMax at all except that the only reason I have php is for the web store. There is another php setting, allow_url_fopen that was on by default. it appears to not be required by osCMax, and permits users to inject arbitrary external files into php scripts when they are called up. I have set this to off, but can't tell for sure whether this has fixed the problem as the spammers are still trying to use the now deleted files.
Anyway, this appears to be a pretty dangerous option to have on by default.

Thanks for the info,

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 03-03-2010, 09:38 AM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 16,522
Thanks: 149
Thanked 652 Times in 558 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: POST exploit ?

Quote:
Well, server information says 2.0.3, but I distinctly remember using a special version that allowed you to run with register_globals off. I am running with register_globals off, but maybe I updated to 2.0.3 because it also could run with that setting off.
2.0.3 has no issues running with globals off. Now, was this a clean install or did you upgrade a live site from a previous version?

Check to see if you have this in your admin/includes/application_top.php:
r169 - oscmax2 - Project Hosting on Google Code
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 03-03-2010, 08:09 PM
Member
 
Join Date: Jan 2009
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jmelson is on a distinguished road
Default Re: POST exploit ?

I must have had 2.0, then went to the RC4 version so I could turn register_globals off, and then must have upgraded to 2.0.3
So, I'm pretty sure it was an upgrade, not a clean install. I certainly did not re-build the store manually.
Yes, I have that version of application_top.php, at least judging from the time stamp at the beginning of the file.

Anyway, the hackers are not accomplishing anything now, as all their POST commands are pinting to files that don't exist. I don't know when, or if, they will catch on to this.

Thanks,

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

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 Security Update - Arbitrary Upload Exploit michael_s Announcement Discussions 16 09-29-2008 09:25 AM
Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0 michael_s New osCommerce Contributions 0 04-18-2008 04:40 AM
Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0 michael_s New osCommerce Contributions 1 04-10-2008 01:21 PM
Product post adding extra character to post dragonkeeper1973 osCMax v2 Customization/Mods 1 02-02-2007 09:59 AM
Possible security exploit brendanl79 osCMax v2 Customization/Mods 0 10-13-2006 03:11 PM


All times are GMT -8. The time now is 07:39 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2010 osCmax
Inactive Reminders By Icora Web Design