|
|
|
|
|
by toraobo
2310 days ago
|
|
> Due to the use of static keys, an authenticated attacker can trick the server into deserializing maliciously crafted ViewState data. Many years ago I was shocked that ASP.net will deserialize arbitrary (potentially unsafe) objects from the client and relies on signatures to ensure that parameters sent by the client were in fact round-tripped via HTTP POST from the same server. How is __VIEWSTATE not a horrible idea??? |
|
__VIEWSTATE should be as secure as JSON Web Tokens, unless you manage to leak the secret (or as in this case, you use a shared one for all customers.)
I don't know why exactly did they choose to (de)serialize executable code, instead of using an XML or similar format, but similar choices were made (and later changed) with frameworks/libraries for other languages, so they are not the only one.