Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
techs Offline
Member
 
Posts: 41
Join Date: Oct 2006
Angry Possible Major Security Issue Here !!!! - 14-02-2007, 09:26 PM

I created a user under the registered group and then another user under another group TEST.

I then created some departments under the default tempate and others under TEST template group.

I login under user in registered and only see departments i should see under registered until i do this.

http://support.mydomain.com/index.ph...ist&group=TEST

Once I do the above and try to submit a ticket I can then see the other departments in another group while i am logged in as a user that is not a member of TEST.

Did I miss something in the configuration or is this an issue?
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,679
Join Date: Aug 2006
Location: Mumbai, India
15-02-2007, 04:35 PM

You need to change the Template Group setting enabling "Restrict Users Group" setting under:
Admin CP > Templates > Manage Groups > templategroup > Settings > Default User Groups > Restrict Users Group > Yes



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
techs Offline
Member
 
Posts: 41
Join Date: Oct 2006
18-02-2007, 12:49 PM

The setting above doesn't fix the issue. Did you try what I suggested?

This is a security hole and needs attention!!!
   
Reply With Quote
  (#4) Old
keliix06 Offline
New Member
 
Posts: 29
Join Date: May 2005
19-02-2007, 04:03 AM

Even if you can see a different group I have a hard time seeing how that is a security issue, let alone a major one. Minor inconvenience at most.

Are you sure the user you are testing with is not a part of a group that has access to the template group you don't want them to have access to?
   
Reply With Quote
  (#5) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 345
Join Date: Feb 2007
Location: Lyon, France
Exclamation 08-06-2007, 09:45 AM

Bringing back this topic as i was doing the same test.

This is a critical security hole as ANY user seems to be able to change template with just handling the ?group=<newgroup>. There's currently no checks on the templatechange.

The only way to restrict some content folder/subfolder (downloads, kb - note: i'm not talking about widget) to specific customers are through templates but then if anyone can change freely the template...

Can anyone confirm this is a "bug" and not a missconfiguration?


Edit: if you change the template before loging in, then when you try to log in you'll get denied. the hack comes when you log in the default section then change template using the url GET paremeter.


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 08-06-2007 at 10:31 AM.
   
Reply With Quote
  (#6) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 345
Join Date: Feb 2007
Location: Lyon, France
Thumbs up A fix! It's fix! - 12-06-2007, 11:26 AM

This is not an other "bump" but the opposite

Here is a fix i've done.

If the user logged in try to access to a template where he doesn't have access , the system will disconnect his session.
I'm not 100% sure that i work with the good variables as there's no code documentation for the part i'm playing with ($_swift) but it seems to work ...

The following part is based on easymod writing rules


Quote:
#
#-----[ OPEN ]---------------------------------------------
#
index.php

#
#-----[ FIND ]---------------------------------------------
# around line 68
PHP Code:
 $loginshare->loadPermissions(); // Loads up the permissions for active user group 

#
#-----[ AFTER, ADD ]---------------------------------------
#
PHP Code:
 
    
// ======= GROUP ACCESS RIGHT CHECK =======
    
if ($_SWIFT["user"]["loggedin"])  
     {
        
// Verify that the loaded group is allowed
        
$groupok=false;
        foreach (
$_SWIFT["tgroupcache"] as $key=>$val)
        {
            if (
$val["regusergroupid"] == $_SWIFT["user"]["usergroupid"] && !empty($_SWIFT["user"]["usergroupid"]) && $_SWIFT["tgroup"]["tgroupid"] == $val["tgroupid"])
            {
                
// Ok group allowed
                
$groupok=true;
                break;
 
            }
        }
        if (!
$groupok
        {
            
// Closing session
            
$logoutresult $loginshare->logout();
 
            
// Reset Template Group
            
$cookie->parseCookie("client");
            
$cookie->addCookie("client""groupid"false);
            
$cookie->buildCookie("client"true);
 
            require_once (
"./includes/functions_html.php");   
 
            
printRedirect($_SWIFT["language"]["loggingout"], "index.php?logoutresult=".urlencode($logoutresult), true);
            exit;
        }
     } 
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


Any comment, fix, insult is welcome

Greetings,
Antoine

Edit: hmmm, i should not use "$_SWIFT["language"]["loggingout"]" as the phrase but a new one... but well... i you want... do it yourself


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 12-06-2007 at 11:41 AM.
   
Reply With Quote
Reply

Tags
major

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
chat fuction with IE 7 issue ltb Presales Questions 1 10-11-2006 07:37 AM
3.00.90 Customer Information issue thurmma SupportSuite, eSupport and LiveResponse 2 10-08-2006 03:34 PM
AJAX issue in Search Etc... [HALF WAY THERE] brooky SupportSuite, eSupport and LiveResponse 1 25-01-2006 08:20 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46