Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

$4.95 Windows Hosting at Webhost4life.com
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?
Previous Previous
 
Next Next
New Post 6/4/2008 9:12 AM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Hi Iadalang,

Implementing a custom authentication system that is fully secure, in my opinion, is a task of greater difficulty than adding a new DNN authentication mode.  So if you're having great difficulty with the latter, then the former might not be a good idea.  If you decide to press ahead anyway, you'll need to copy the files in the directory I mentioned in my previous post, add the new mode (I believe under Host/Authentication, although I've always just made the entry directly in the database), and modify the files (login.ascx and login.ascx.vb mostly) to deal with the technical requirements (hashing, challenge tokens, etc).  As always, the devil is in the details.

SSL is not mandatory for ANY authentication setup.  It is merely a broadly accepted and robust solution to transport-level secure communications.  Roll-your-own password transmission will always be less than or equally secure to it, and will virtually always be the former.  Lots of very smart people have looked very hard at TLS/SSL, and chances are that it will stand up well to any ad-hoc pasted-script custom scheme.  For example, a challenge-token setup might prevent evesdropping, but does not address server identify verification.  For this, you might implement some form of PKI and a trust authority of some sort.  By the time you've dealt with all of these issues, you will have essentially implemented SSL all over again.

A custom authentication setup is, however, a great way to learn about internet security!

Not all DNN sites authenticate using SSL.  Those that do not are vulnerable to eavesdropping attacks.

Have you considered using the LiveID provider?  Or Active Directory?

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 6/5/2008 2:48 AM
User is offline iadalang
81 posts
10th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Thanks, Brandon. Your response was very enlightening.

>Implementing a custom authentication system that is fully secure, in my opinion, is a task of greater difficulty than adding a new DNN authentication mode.

OK, how about asking the DNN core team to do it? At least it will take care of the "no SSL" scenario to some extent. And I've seen many sites not using SSL but which implement these techniques. From what you're saying it looks like all these sites might be better off with SSL?

>...you'll need to copy the files in the directory I mentioned in my previous post, add the new mode ...I've always just made the entry directly in the database

It looks like you've done this kind of thing before. Can you unleash the devil (aka details)?

>Not all DNN sites authenticate using SSL.  Those that do not are vulnerable to eavesdropping attacks.

So shouldn't there have been a warning somewhere on the DNN site in big bold letters : ALWAYS USE SSL/LIVEId/AD/CARDSPACE WITH DNN IF YOU CARE ABOUT SECURITY?

>Have you considered using the LiveID provider?  Or Active Directory?

Yeah, sure and why not? But first I need your response to this post :

http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/232764/scope/posts/Default.aspx

 

 
New Post 6/5/2008 8:05 AM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Hi Iadalang,

Although you're free to try and get any new feature implemented into the core, I suspect that it is exceedingly unlikely that such a feature would be incorporated.  To my knowledge, you are the only one who has ever desired such an option.  However, I in no way speak for the core team, do don't let me dissuade you!

Although I have developed custom authentication modules for DNN, I have not attempted to replicate SSL/TLS in the framework.  Those are the details to which I referred -- and the challenge in implementing them rest with you!

It is up to each webmaster to evaluate the risk of an eavesdropping attack against the cost of penetration.  I'd tend to agree with you that DNN should come with a warning against plaintext transmission of passwords.

Based upon your other thread where you indicate that there will only be two accounts on the system (1 admin and 1 host), you will almost certainly want to self-SSL (assuming you're running on your own server).  You could have generated, installed, and added root-trust to the certificate in less time than it took us to have this conversation.  If you do not control your own server, stick with LiveId (or see if your hosting company provides a shared certificate).

Although I have little direct development experience with the LiveId provider, I'll respond to your concerns in that thread.

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post 6/6/2008 5:30 AM
User is offline iadalang
81 posts
10th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Terrific, Brandon. I owe you more than a beer I wonder if you're part of the security team at DNN. You might have noticed that all my threads in the past few days were concerns about DNN security, and I'm glad your responses have narrowed down many of those concerns. Of course, I'm still not convinced about the "back button" problem which I've raised in the other thread to which you have chimed in too, so please don't mind continuing to repond to that thread, 'cause I wish to "close" that issue too ASAP and get on with life...

From your responses, I believe that this current thread will also be "closed" soon unless someone else chirps in. But before that, just two last questions :

1. You mentioned about SelfSSL available as a feature in the IIS resource toolkit. I'd like to try it out at least on my local webserver, but when I went to the download site, it looks like I'll need at least IIS6. What if I or my host has only IIS5 or IIS5.1? There's a note on the download site - NOTE: Although the IIS 6.0 Resource Kit Tools will install on both Windows Server 2003 and Windows XP Professional, not all the tools will function correctly on Windows XP Professional. Well, I hope at least SelfSSL will function correctly in WinXP (for local testing purposes). What's your opinion?


2. You said that you've developed custom authentication modules for DNN. I don't mean to poke, but may I know  how they function and what issues they address? Are they "for sale" too?

 
New Post 6/6/2008 9:59 AM
User is offline Brandon Haynes
701 posts
brandonhaynes.org
7th Ranked


Re: Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password? 

Hi Iadalang,

I have successfully used SelfSSL (with MS Commerce Server) on an XP dev machine with IIS5.1, so I know it will work there.  No hosting company will be running under XP, and I would be surprised to find one still using w2k (although I'm sure they exist).  Regardless, SelfSSL just generates a certificate, and this certificate should be usable in pretty much any version of IIS.  You'll have to deal with root trust issues on client computers (on a per-computer basis), but since you will only be having two accounts, this may or may not be a problem. 

Many hosting providers offer free shared SSL.  Have you considered this option?  You can read more from Alec here: http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryID/1501/Default.aspx

My custom authentication experience with DNN is mostly related to authentication coordination between DNN and a legacy system not running under .NET forms authentication.  Although I cannot release much in the way of details, if you look through some of my previous posts I do discuss it peripherally in the context of implementing a custom membership provider. 

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can we use the JS MD5/SHA1 encryption algorithm to encrypt clear text password?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ASP.NET Web Hosting for $3.95
3 Month FREE ASP.NET Hosting! FREE Setup! DNN Support! FREE Domain Name! FREE Components! Host multiple websites on 1 plan! 30 Days Money Back Guarantee!
www.dailyrazor.com
Cestus Websites
DotNetNuke websites en services in Nederland. Cestus Websites levert websites, projectmanagent, skins, modules, training en gespecialiseerde hosting op basis van het CMS DotNetNuke.
www.dotnetnuke-websites.nl
FREE Skins, Modules & Control Panel!
Choose how much you want to pay on our Skins, Modules, Containers and Control Panel - Starting from FREE!
www.dnngroup.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP