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...Enumerating users in DNNEnumerating users in DNN
Previous
 
Next
New Post
5/24/2011 9:09 AM
 
Hello All,

I recently noticed that when I am logged into a DNN site, and when I click on my profile, I see the following URL

http://www.dotnetnuke.com/UserProfile...

I have replaced my userid with 999999 as you can see.  However, if I change the values to real world values, I can see the username (only) of all the users on the site., ie 999998, 999997, 999996, 999995, 999994.  You do see an error if the selected value does not exist of course.

With 5 - 10 mins scripting, anyone can harvest all the sites usernames and corresponding UserIds.

I presume there is an argument that knowing the username only does not compromise ones security, but surely it does give away something that would be better kept secret?

I am also presuming that encrypting the userid in that URL would break some other dependencies, but shouldn't this publicly visible userid / username combo be something to eliminate.

Sorry if this has been discussed many times before - I am just curious to hear your views on this

thanks 

Mark



Mark Breen Ireland 1987 BMW R80 g/s
 
New Post
5/24/2011 11:49 AM
 
Mark, I've had a quick look and dont see the username on the screen - the user profile template by default using the display name - so in my case shows "cathal connolly" rather than my username. Please also be aware that there are different levels of security on profile property fields (i.e. public/registered users/admin) so you are not going to see as much information on other profiles as your own (when you're logged in). As to whether or not showing usernames is wise (even though i don't see us doing it), I instinctively think it's better not to - however many sites use vanity urls where the username is within the url (e.g. facebook/stackoverflow) etc, without having any real issues.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
6/7/2011 1:11 PM
 
Hello Cathal,

Thanks for your detailed reply.  You are right of course, we are only displaying Display Names, sorry for worrying you about Usernames.  

I agree that what the user can catch from the Display Name is limited.

In any code that I build, where I am forced to pass a value in the URL, I encrypt it, and while I am still not 100% happy about passing that value, at least it is encrypted.

IMHO, another benefit of the encryption is that it cannot be simply enumerated, whereas with a numeric value, we can start at 1 and work up.

May I ask two further questions (Not Urgent BTW):

1) Would it be worthwhile encrypting the UserId in the URL - or would that bring too many complications to justify it?
2) Why do we need to include the UserId in the URL at all?

Thanks again for your response, and sorry for the false alarm re usernames.

See you in Hamburg

Mark


Mark Breen Ireland 1987 BMW R80 g/s
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Enumerating users in DNNEnumerating users in DNN


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