osCmax v2.5 User Manual
Results 1 to 5 of 5

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 ...

      
  1. #1
    Active Member
    Join Date
    Jan 2009
    Posts
    107
    Rep Power
    4


    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

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  3. #3
    Active Member
    Join Date
    Jan 2009
    Posts
    107
    Rep Power
    4


    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

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: POST exploit ?

    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


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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 Documentation

  5. #5
    Active Member
    Join Date
    Jan 2009
    Posts
    107
    Rep Power
    4


    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

Similar Threads

  1. osCMax Security Update - Arbitrary Upload Exploit
    By michael_s in forum Announcement Discussions
    Replies: 16
    Last Post: 09-29-2008, 09:25 AM
  2. Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-18-2008, 04:40 AM
  3. Canada Post Automated Labels 2.0 AND Canada Post Shipping Module 4.0
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 04-10-2008, 01:21 PM
  4. Product post adding extra character to post
    By dragonkeeper1973 in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 02-02-2007, 09:59 AM
  5. Possible security exploit
    By brendanl79 in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 10-13-2006, 03:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •