Subrion CMS Support Forums   Follow Subrion on Twitter Join Us on Facebook

Go Back   Subrion CMS Support Forums > Common Information > Announcements

Announcements Latest news about Subrion Content Management System improvements, releases and patches. Follow our announcements here. You can also read here more information about our Classifieds Scripts.

Reply

 

LinkBack Thread Tools Display Modes
Old 06-17-2011   #1 (permalink)
Administrator
 
Vasily B.'s Avatar
 
Join Date: Feb 2008
Location: Kyrgyzstan, Bishkek
Posts: 510
Vasily B. is on a distinguished road
Default Subrion 2.0 Vulnerability

Greetings,

Recently some of our member websites were hacked. All Subrion 2.0 versions are affected. Please apply the fix ASAP or you can contact our tech support and the guys will take care of it for you.

Steps to exclude logging in vulnerability error:

You should include these statement to /includes/classes/ia.core.users.php file

PHP Code:
$user preg_replace('/[^a-zA-Z0-9._-]/'''$user); 
right before this statement:

PHP Code:
$row $this->iaDb->row('*', ($uid == "`username` = '$user' AND `password` = '$pass'" "`id`='{$uid}'"), 0null'accounts'); 
the statement above is placed in "getAuth" php function as a first instruction,
the line number you will find this statement is 346.

In other words, you should make the first above statement a first instruction of function getAuth.

So, finishing these steps the function text has to be like this:

PHP Code:
function getAuth($uid$user ''$pass '')
{
$user preg_replace"/[^a-zA-Z0-9._-]/"''$user);
$row $this->iaDb->row('*', ($uid == "`username` = '$user' AND `password` = '$pass'" "`id`='{$uid}'"), 0null'accounts');
... 
Please accept our apologizes.
__________________
Auto classifieds script, Best Articles Script, Web Directory Software, Realty Classifieds Script,
eLitius Affiliate Tracking Script - Open Source Affiliate Script, Free Directory Script - Best Free Directory Script
Follow Surbion CMS news and updates on Subrion Twitter
Vasily B. is offline   Reply With Quote
Old 07-28-2011   #2 (permalink)
Member
 
Join Date: Nov 2007
Posts: 32
starnetwork is on a distinguished road
Default Re: Subrion 2.0 Vulnerability

Hi,
when I add this code, users can't login to the admin panel.

Best Regards,
Star Netowrk.
starnetwork is offline   Reply With Quote
Old 08-01-2011   #3 (permalink)
Subrion Tech Support
 
Join Date: Sep 2010
Posts: 5
Janur J. is on a distinguished road
Default Re: Subrion 2.0 Vulnerability

Quote:
Originally Posted by starnetwork View Post
Hi,
when I add this code, users can't login to the admin panel.
a bit strange.
can this particular user log in to front side? it is an important question, since the script has common authorization mechanism for both admin and front sides.

please provide with the appropriate ticket at Intelliants LLC - Powered by Kayako Fusion [beta] Help Desk Software
Janur J. is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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



All times are GMT -6. The time now is 04:42 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0