Reputation: 20011
I am using asp.net webform website which is using 4.5 framework and vunrability scanner show viewstate as Unencrypted __VIEWSTATE parameter
Even though i am using machine key it still flags it
<machineKey validationKey="xxxxxxxxxxxx" decryptionKey="xxxxxxxxxxxx" validation="SHA1" decryption="AES" />
Is this how viewstate can be encrypted in asp.net webform 4.5
Upvotes: 3
Views: 11120
Reputation: 35544
You can set the ViewState encryption in the pages
node under system.web
of the Web.Config.
<system.web>
<pages viewStateEncryptionMode="Always" />
</system.web>
Upvotes: 5