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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Machinekey changed - do I have a concern?Machinekey changed - do I have a concern?
Previous
 
Next
New Post
6/18/2011 8:25 AM
 
Yesterday, we applied the recently released MS patchs to a server with DNN 5.06.02 installed and functioning. 
When the server came back up, the DNN login screen would work, but no one could not log in.

On investigation, I discovered the Machinekey had changed.  I reset it to our old values and everything is fine.

Question: As the machinekey changed some way, do I have a security concern of some kind?  Would any upgrade process change the key, or any other process be able to change the key - or, am I the subject of a hack attempt?  Any pointers on where to look are appreciated.

Thanks
 
New Post
6/18/2011 1:09 PM
 
From what you have said, it seems the machinekey setting in your web.config did not change, and your encrypted user data in your database did not change since the old machinekey works?

If so, it seems like the process worked...  Your encrypted user info was protected while the system was upgraded.  Machinekey follows DATA; connectstrings and db userids and db passwords follow the DATABASE by name.

A new machinekey likely was needed to install/test a new db, and then your old data 'copied' to the new db.  Restoring a db brings the old key.  They could never know or find your old key (w/o access to web.config) so they couldn't change it back...

From Microsoft:

The following steps include references to generating keys for the <machineKey> element. There are a variety of ways to generate key values, and the approaches for doing so are described in the .NET Framework documentation. For more information about configuring view state validation for a network of Web services, see the .NET Framework reference documentation for the <machineKey> element.

  1. Generate a validation key. You can use the autogenerate functionality provided by the .NET Framework or you can create the key some other way. Do not use the AutoGenerate option when setting the validationKey attribute.
  2. Generate a decryption key. For the decryption key, you can create an explicit value or set decryptionKey to AutoGenerate.
  3. Open the Web.config file and set the <machineKey> element. You must specify the validation key, decryption key, and the type of encryption used for validation of data. The following example illustrates the entries you must provide (these example values are not valid; avoid copying these entries into your configuration files): <machineKey validationKey="53ab8bv3ebc93bb826a7b3v37b903a9d5d4a0" decryptionKey="26165b97a9d5d4a0" validation="SHA1"/>
Bob
 
New Post
6/18/2011 1:15 PM
 
Bob,

Thanks for the response.  My machinekey did in fact change in web.config.



I had to manually reset it back to the original key to allow users to log in.

My main concern is if someone could change that key without the knowledge of being a server or DNN admin.



Thanks,

Charles

 
New Post
6/18/2011 1:30 PM
 
OK...  That is scary...  Who has/had access to upload or change it?  I would check with whoever did your patches..., maybe change host passwords anyway...

Bob
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Machinekey changed - do I have a concern?Machinekey changed - do I have a concern?


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