简体   繁体   English

如何加密 Telerik Rad 编辑器视图状态?

[英]How do I encrypt the Telerik Rad Editor viewstate?

The viewstate or application's pages are already encrypted but looking at the Burp output of the response from a POST to the Telerik.UI.DialogHandler (ImageMananger) it seems the Telerik view state in the response appears not to be. The viewstate or application's pages are already encrypted but looking at the Burp output of the response from a POST to the Telerik.UI.DialogHandler (ImageMananger) it seems the Telerik view state in the response appears not to be. See attached image.见附图。

Burp output打嗝 output

We've generated and specified the DialogParametersEncryptionKey, ConfigurationEncryptionKey, and ConfigurationHashKey keys in the site level web.config as described in article https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/security . We've generated and specified the DialogParametersEncryptionKey, ConfigurationEncryptionKey, and ConfigurationHashKey keys in the site level web.config as described in article https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/functionality/dialogs/security . This didn't change the viewstate.这并没有改变视图状态。

The machine key in IIS is set for auto-generation. IIS 中的机器密钥设置为自动生成。

I'm only assuming the Telerik viewstate can be encrypted because what I've read seems to imply that, but I haven't found a clear example so I'm not sure.我只是假设 Telerik 视图状态可以加密,因为我读过的内容似乎暗示了这一点,但我还没有找到一个明确的例子,所以我不确定。

Can you please change the TargetFramework of the application to 4.5 or above and test again:您能否将应用程序的 TargetFramework 更改为 4.5 或更高版本并再次测试:

>  <compilation debug="false" targetFramework="4.8" />
>     <httpRuntime targetFramework="4.8" />
>     <pages viewStateEncryptionMode="Always" enableViewStateMac="true">
>         <controls>
>             <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
>         </controls>
>     </pages>
>     <httpHandlers>

It is also a must to set viewStateEncryptionMode="Always" enableViewStateMac="true" in the page directive or the web.config.还必须在页面指令或 web.config 中设置 viewStateEncryptionMode="Always" enableViewStateMac="true"。

Check out this product forum thread for more information: https://www.telerik.com/forums/can-the-rad-editor-viewstate-be-encrypted .查看此产品论坛主题以获取更多信息: https://www.telerik.com/forums/can-the-rad-editor-viewstate-be-encrypted

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM