Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Huge issue with child portals and session terminationHuge issue with child portals and session termination
Previous
 
Next
New Post
2/8/2009 5:54 PM
 

Ok, here's the story:

We have one portal: www.respect-network.org, which has a child portal www.respect-network.org/smile/

I have Mediant 3d Gallery and DNN360 Flash plaer installed on the child portal.

When registered users (except for the host account) log in, their session gets terminated after they have visited one of those modules....

I think it has to do with the way the modules get their content:

1. point to the iframe (mediant 3d carousel)  located in the "Desktopmodules" folder...

or

2. link to a flash file (DNN360 carousel)  using the full url (http://) and not mentioning the subdomain.

It only happens on child portals and the host account (because it has access to all portals) is not bothered....

 

Mediant does recognize this problem and don't know a solution (they say it is a DNN core bug)...

How difficult can it be to have a fancy 3D gallery displayed on a child portal behind a login?

Who will save my portal?!

 
New Post
2/8/2009 7:54 PM
 

It is not a bug, it is behaviour by design.

if a user moves between portals dotnetnuke automatically detects this and logs the user out i.e. user "john" on portal 1 is not necessarily the same user as user "john" on portal 2. This is done by detecting a change in path from the portal i.e. from portals/1 to portals/2. In your case it sounds like the module is accessing a .net mapped extension such as .aspx in desktopmodules - this is detected as a change of portal. It's easy to fix, all the module has to do is ensure that it passes the portalid as part of the path e.g. desktopmodules/somemodule/somepage.aspx?portalid=1 .

(Note: you might think that we could allow any requests to desktopmodules to not log you out, but in that case a user of one portal might be able to access content of a module that had only been installed for another portal.)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/8/2009 9:52 PM
 

Although I have given this same answer many times in the past, it just occured to me while reading it put this way that anyone could add the portalId parameter to the external page querystring and bypass this security feature.  It would be hard to exploit, but it seems the potential is there.

 


DotNetNuke Modules from Snapsis.com
 
New Post
2/10/2009 3:37 PM
 

John, you're correct, but in cases like this the aspx security is the responsibility of the module not dotnetnuke. When this type of scheme is used in core modules, such as createthumbnail.aspx (to create image thumbnails), during the security audits I check that the module retrieves the userid to ensure that the user has correct rights (and also other checks such as valid extensions, file sizes, portal space requirements etc.). In general I discourage additional endpoints such as aspx, as additional endpoints often offer additional attack vectors and as they do not live under dotnetnuke's security model as effectively they are often easier to exploit i.e. a hacker can try site.com/desktopmodules/somepage.aspx but can't invoke site.com/desktopmodules/somepage.ascx directly, without having module access.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/15/2009 9:05 AM
 

But it is weird that you install a module on a child portal and the session is terminated!

I still do not have a solution, because according to the programmers of these modules, it is a core issue, not a module issue.

pffff...

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Huge issue with child portals and session terminationHuge issue with child portals and session termination


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out