How to decode the ASP.NET EventValidation and ViewState?
相关问题
- Carriage Return (ASCII chr 13) is missing from tex
- How to store image outside of the website's ro
- 'System.Threading.ThreadAbortException' in
- Request.PathInfo issues and XSS attacks
- How to dynamically load partial view Via jquery aj
相关文章
- asp.net HiddenField控件扩展问题
- asp.net HiddenField控件扩展问题
- Asp.Net网站无法写入错误日志,测试站点可以,正是站点不行
- asp.net mvc 重定向到vue hash字符串丢失
- FormsAuthenticationTicket expires too soon
- “Dynamic operations can only be performed in homog
- What is the best way to create a lock from a web a
- Add to htmlAttributes for custom ActionLink helper
I answered a similar question recently, Getting values from viewstate using JQuery?.
Basically, by default
ViewState
is just Base64-encoded, so you can decode it as long as the administrator hasn't configured the site to encrypt it. Quoting from my previous answer:That link provides an extremely thorough and clear introduction to
ViewState
.As for Event Validation, I'm unsure whether it's Base64-encoded or if it just looks like Base64 (I can't find a conclusive, authoritative reference). This Rexiology article might help though.
I needed to decode ViewStates recently and found this tool useful: View State decoder
Create a simple windows app and use
Convert.FromBase64(str)
to decodeViewState
data if it is not encrypted.Note: GridView causes encryption.
I'm not sure about EventValidation, but you can decode ViewState by using Fritz Onion's ViewState Decoder.