This is a discussion on Re: Security Patch within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, I just recieved an email asking me to patch up the BTS files by replacing certain code, and i ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I just recieved an email asking me to patch up the BTS files by replacing certain code, and i realised that my code was a bit different from the one listed... code found in my oscmax --> e.g. <?php if ($javascript) { require(DIR_WS_JAVASCRIPT . $javascript); } ?> code that was supposed to be replaced --> e.g. <?php if ($_javascript) { require(DIR_WS__JAVASCRIPT . $_javascript); } ?> Should i be replacing the code since i couldnt find any code the resembles that except for the one i showed? or should i remove the underscore? |
|
#2
| ||||
| ||||
| Hi, Give it a try and replace them. It should not matter. If you run into problems, come back and let me know.
__________________ Michael Sasek osCMax Developer osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
|
#3
| |||
| |||
| ok thanks mate! |
|
#4
| |||
| |||
| Hi msasek, thanks for the security update! I'm not sure how the exploit exactly works, but would you agree that this vulnerability would not have existed if register_globals would be off? (and the script would have been register_globals off compatible of course) Paul |
|
#5
| |||
| |||
| msasek: Can you give me an idea of how this code can be exploited? I have and continue to modify my site w/ contrib's as well as my own tweaks (including added javascripts). I would just like to have an idea of what to look out for to avoid unknowingly opening up another security leak as I am editing the code. Thanks in advance for the info. |
|
#6
| |||
| |||
| Quote:
I'm not sure why the OSC team did not make MS2 register_globals OFF compatible (or better yet require that it be off). It is actually not that difficult to do. Not to bash the team or anything, but over the years it has become pretty apparent that security is not among their top concerns. |
|
#7
| |||
| |||
| I recommend you put an .htaccess file in the templates directory to deny direct access to any php files and then define in application_top any variables used by the template code. //Protection application_top $javascript = ''; $content = ''; $content_template = ''; $boxLink = ''; etc... .httaccess in templates dir <Files *.php> Order Deny,Allow Deny from all </Files> |
|
#8
| |||
| |||
| Quote:
|
|
#9
| |||
| |||
| Quote:
Also it seems wise to add the .htaccess file (as above) to most other osC folders that don't need direct access too. |
|
#10
| |||
| |||
| Quote:
|
| Thread Tools | |
| |
| ||||
| 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 |